Click here to Skip to main content
15,894,179 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have been given an URL by our client.
I need to send some data in XML format to this URL.

Anyone know how to do this?
Posted
Updated 17-May-10 23:22pm
v3
Comments
Rujj 21-Mar-18 1:16am    
have you got the solution, please share it

http://url.com/page.aspx?data="your xml goes here"
This will work only if your data is small because get method has its limitation. so if you want to send big data file then you should use post method.you can send the contents of xml file using any form elements i.e textarea,file,hiddenfiled
Hope this will help You
 
Share this answer
 
http://url.com/page.aspx?data="your xml goes here"
 
Share this answer
 
Comments
Dalek Dave 18-May-10 5:21am    
Terse
Arun Jacob 18-May-10 5:28am    
What if the xml data is big. In Ideal case xml have a good amount of data. In that case I think this won't work. Comments?
You'll need to know how the xml data should be passed - is the url a SOAP webservice? for example.
 
Share this answer
 
First of all try to read the contents of the XML file as string
then
string x = "http://www.Server.Com/aaa?Qstring=" & Server.URLEncode(XmlFileContent)

Response.Redirect(x);

happy life
 
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