Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, this is probably a very noobish question, but I'll ask it anyway, becouse Im new at this :)...
Im developing a webservice that clients will use for uploading files to a share point server. Evrything works fine when Im testing this on the development server, but when I try to use this service from a local machine, I get a "file could not be found" exception. Now this is logical becouse this file does not exist on the dev server. Now what must I do so that this will work also on other machines, that are not eaven in the same network as the server that will host the service?

For example, when I run the service localy(on the dev server) and I input the path to the file(c:\test.pdf), the file is uploaded normaly, but when I run the service from another machine thrugh the web browser and provide the path for the local file residing on that machine (c:\localTest.pdf), service searches for the file on the dev server file system.

So the question is how to tell the web service to search the files from the machine that called the service?

Hope this makes my problem more readeble.

Thank you for your answer!
Posted
Updated 13-Aug-12 0:57am
v2

1 solution

A web service cannot search the local machine, that's not possible. Your issue is that you wrote code that assumed the server and client were the same, which is clearly not going to be the case. A web service can only answer requests, it cannot do anything proactive, like ask for something, and it sure cannot see the client machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900