Best way to send SOAP Messages to a Web Service by writing out XML

S

Softwaremaker

Hi Fellows,

I would like to post a SOAP Message to a listening Web Service. This SOAP
Message is hand-created by me (Please dont ask me why ;))

So, I intend to create the XML SOAP Message and then send it out *manually*
instead of using any proxy classes or Invoke methods.

An example would be to use the MSXML.XMLHTTP30 Classes, compose and write
the message, set the appropriate headers and post it.

I would like to use managed code in .NET now, what classes am I looking at
and what is the best way to do this ?

Any links, advice or pointers would be very much appreciated.
 
M

Martin Honnen

Softwaremaker wrote:

I would like to post a SOAP Message to a listening Web Service. This SOAP
Message is hand-created by me (Please dont ask me why ;))

So, I intend to create the XML SOAP Message and then send it out *manually*
instead of using any proxy classes or Invoke methods.

An example would be to use the MSXML.XMLHTTP30 Classes, compose and write
the message, set the appropriate headers and post it.

I would like to use managed code in .NET now, what classes am I looking at
and what is the best way to do this ?

Have a look at XmlWriter/XmlTextWriter in System.Xml to create the XML
(well SOAP) and write it to the RequestStream of a HttpWebRequest.
 
M

[MSFT]

Hello,

Does my reply answer your question? If you need more information, please
feel free to post here.

Luke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top