|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
asp.net 2 and xmlHi,
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 You need to consider an XML Web Service [1]
<%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/ [1] http://msdn.microsoft.com/webservices/ Show quoteHide quote "TdarTdar" <Tdar@noemail.nospam> wrote in message news:C9E971B9-30C0-447E-BFB5-66B3EA175F65@microsoft.com... > 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.
Other interesting topics
Session state IIS (Machine Key | Load Balanced Session)
New to ASP Is this AJAX? (Sort of "Off Topic") Convert New Lines to BRs Translating ID bound to label in detailsView to NAME basing on different datasource. Anyone care to help explain forms authentication in 2.0? hidden fields? asp.net 2.0 connectoin string (hopefully last question) Search engine software to integrate into ASP.NET site Invalid file name when printing Crystal Report |
|||||||||||||||||||||||