send xml file  
Author Message
Chirag vm





PostPosted: XML and the .NET Framework, send xml file Top

hi to all

i have one problem regarding to send xml file

i want to send xml file on port 80 thru web service

i am new in vb.net and asp.net so dont know how to send file

it urgent if have any example so please give me




.NET Development26  
 
 
Martin Honnen





PostPosted: XML and the .NET Framework, send xml file Top

Can you tell us more details Do you want to make a HTTP connection to port 80 Do you want to send a SOAP message or do you want to make a simple HTTP POST request with the XML as the HTTP request body

If you simply want to make a HTTP request and send the XML then with .NET there is not really much XML specific to the solution, look into System.Net.WebRequest/System.Net.HttpWebRequest and the corresponding WebResponse/HttpWebResponse.



 
 
Chirag vm





PostPosted: XML and the .NET Framework, send xml file Top

thanks to reply

when xml file is generate i also increpted with soap

and send file as httprequest

but i dont know about code (how to generate code for sending file )

i want to send file with webservice if file exist so send file

plese help it urgent



 
 
Martin Honnen





PostPosted: XML and the .NET Framework, send xml file Top

WebClient has an UploadFile method that might already do what you want.