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 / October 2006

Tip: Looking for answers? Try searching our database.

How to add namespaces in SoapEnvelope (Soap12)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anbu - 23 Oct 2006 07:01 GMT
Hi All,

I need to redirect the SoapEnvelope received from another web service. This
service sends the message in Soap12 format. But when i load the content into
another soapenvelope using se.LoadXML, the new object becomes Soap11 and
unusable.
I tried another option to respond to the call using the XMLdocument object,
by setting loading the data into a xmldoc and loading the details into
soapenvelope's body. But this option will not load the xmlnamespaces defined
in the earlier soapenvelope.

how to include the namespace in the new soap envelope, as in the
previous envelope?

I need to include the following namespaces

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=http://www.w3.org/2001/XMLSchema

TIA,
Pablo Cibraro [MVP] - 23 Oct 2006 15:20 GMT
Hi,

Did you try to use the SoapEnvelope constructor that receives the Soap
version ?.

SoapEnvelope sp = new
SoapEnvelope(System.Web.Services.Protocols.SoapProtocolVersion.Soap12);

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

> Hi All,
>
[quoted text clipped - 20 lines]
>
> TIA,

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.