Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

Sending a SoapEnvelope to a Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hari Menon - 31 Dec 2003 16:12 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.