asp.net 2 and xml

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have an web based asp.net 2 application, I need to send and receive
information using an encoded xml packet to another web server from within a
web page of our main webserver. I assume i need to make a dll to do so, but
would like some advice to make sure I get this correct. So, asking for some
advice.

So another words, my webpage has to open an HTTP connection and send an
xml structured code(i know how to format this) to another webserver and
recieve a response.


Tdar
 
Hi Tdar,

Thank you for posting.

Regarding on the sending XML based message in ASP.NET page, I think you can
consider using the HttpWebRequest component, this component is a .net
framework base class which support post binary data or text data to a
remote web service through HTTP protocol. In your page, you can construct a
XML message, use XmlDocument class or a pure string then write it in to a
HttpWebRequest component's RequestStream, after that, send request to the
remote url you want. Here are some web article or other threads discussing
on using HttpWebRequest to send data:


http://www.codeproject.com/csharp/HttpWebRequest_Response.asp

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=303518&SiteID=1

http://www.justin-cook.com/wp/2006/03/20/send-and-receive-xml-with-aspnet/

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top