Solved

Verifying uploaded document made the trip

Posted on 2013-05-29
1
239 Views
Last Modified: 2013-05-29
Environment:
Dot net web service
C# win form client

Experts,

I've got a windows app that allows users to save .pdf files and then upload them to a web service. How can I verify the document successfully uploaded? I've got control over the client and the web service.

Thanks!
0
Comment
Question by:lateapex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39206103
The service can return a true or false when it's done with the file saving.  

(pseudo code only)
<webMethod()>
public string SaveFile(byte[] filestream)
try
{
  savefile(filestream);
  return "true";
}
catch (Exception ex)
 {
   return ex.Message;
}  


anything other than "true" would be an error.

If you want double verification, just create a check method:

Client: ValidateFlie(filename);

Server:
public bool ValidateFile(string filename)
{
 string path = "c:\";
 if (System.IO.Exists(path + filename)
  return true;
 
return false;
}
0

Featured Post

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question