Home All Groups Group Topic Archive Search About
Author
14 Apr 2006 2:31 PM
TdarTdar
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

Author
14 Apr 2006 6:02 PM
clintonG
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
>
>
>
Are all your drivers up to date? click for free checkup

Author
17 Apr 2006 2:58 AM
Steven Cheng[MSFT]
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.

Bookmark and Share