Hi,
I have a SoapEnvelope object that needs to be sent to a
web service.
The reason I am not using something like the
SoapHttpClientProtocol to invoke a method is becase I am
using a toolkit that creates the SoapEnvelope for me.
I do not want to call Invoke() with a method name (even
using Microsoft.Web.Services.Messaging.SoapClient) is
because the SoapEnvelope already contains the method and
params for it.
I just need to somehow send that envelope over HTTP to
the web service and get a response back.
Is there any clean way of doing this?
Thanks
Hari
BruceJohnson - 31 Dec 2003 18:39 GMT
I believe you can send a fully formatted SOAP envelope using the
System.Web.HttpRequest class. The trick is in setting the headers
correctly. The content-type needs to be "text/xml". The method is
"POST". The SoapAction needs to be the namespace associated with the web
service. The SoapAction header is added manually like the following:
req.Headers.Add ("SOAPAction: http://tempuri.org/service";);
HTH
Bruce Johnson
http://www.ObjectSharp.com/Bruce
Tia - 20 Nov 2005 15:31 GMT
START YOUR OWN E-MAIL BUSINESS TODAY and TAKE ADVANTAGE OF THE FOLLOWING:
1.ALL CUSTOMERS PAY YOU IN CASH!!!
2. TOP PART-TIME OWNERS HAVE EARNED $5,000+ IN ONE MONTH!
3. TOP FULL-TIME OWNERS HAVE EARNED $10,000+ IN ONE MONTH!
4. YOU WILL SELL A PRODUCT WHICH COSTS NOTHING TO PRODUCE!
5. YOUR MAIN OVERHEAD IS YOUR TIME!
6. YOUR START UP COSTS ARE LESS THAN $25
7. YOU HAVE MORE THAN 40 MILLION POTENTIAL CUSTOMERS
For additional information please E-mail me at saita@dodo.com.au
=====================================================
New Software that finds leads for YOU for F.R.E.E.!!!!!
http://www.contactthem.com/cgi-bin/at.cgi?a=316161
---
MAF Anti-Spam ID: 20051113184547I1n0UmZ7