PDA

Click to See Complete Forum and Search --> : Exchanging XML-files with webserver


watermeloene
Jun 28th, 2007, 09:05 AM
Hello,

I have to make a windowsapplication in vb.NET 2005. The application sends an XML-document to the server and the server returns another XML-file.
It sounds quite simple and it probably is, but I can't figure it out.
Can somebody please tell me how I should do this? I've heard about WinInet and HttpRequest but I've never created an application with it. The only thing I have to send to the server is the username, password and the file.

Thanks in advance.

superbovine
Jun 28th, 2007, 01:38 PM
A web service would be easier and more appropriate
for the situation.

http://samples.gotdotnet.com/quickstart/aspplus/doc/webservicesintro.aspx
http://msdn2.microsoft.com/en-us/library/w3h45ebk.aspx

With a web service you can simple add the service as a web reference into your vb windows app, and exchange data by calling the function in the web service.


A web service is in crud terms a web page that uses the soap protocol to exchange data with a client.

http://en.wikipedia.org/wiki/Web_service

that is much better than the way you described.

There is plenty of example on google and the forums I would guess.

watermeloene
Jun 29th, 2007, 06:14 AM
Maybe I've explained it not quite right. I'm the client who's sending a XML and expects a XML in return. I have nothing to do with the serverside of the application.
The only thing I know that I need to send a file, password and username to a file called file.request which is located on a server on the internet.