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

Tip: Looking for answers? Try searching our database.

I'm having a problem creating SOAP header in a .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yelena - 05 Jan 2006 20:19 GMT
I'm having a problem creating SOAP header in a .NET

The required SOAP header looks like this:

<s11:Header>
<MessageID
s11:mustUnderstand="1">uuid:18db2ad2-5bac-11da-a4ef-18db2ad1a4ef</MessageID>
</s11:Header>

But when I create a class derived from SoapHeader called MessageID
contained public member for the element I want to include, the
resulting SOAP fragment is this:

<s11:Header>
   <MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
     <messageID>string</messageID>
   </MessageID>
</s11:Header>

Since the element is contained within the parent MessageID, the request
fails.

Hope someone can advise me.
Thank you.
Yelena - 11 Jan 2006 18:54 GMT
Solution:

    [XmlRoot("MessageID",Namespace =
"http://schemas.xmlsoap.org/ws/2004/03/addressing")]
    public class MessageID: SoapHeader
    {
        [XmlTextAttribute]
        public string messageid;
    }

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



©2009 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.