SOAP and prefix namespace

Discussion in 'ASP .Net Web Services' started by roenick97, Nov 23, 2006.

  1. roenick97

    roenick97 Guest

    Using Visual Studio referencing a WSDL I can send this SOAP Message :

    <soap:Body>
    <message xmlns="http://www.mysite.com.types">
    <content>
    <element attribut="value" />
    </content >
    </message>
    </soap:Body>

    But how can I have the following?

    <soap:Body>
    <myType:message xmlns:myType="http://www.mysite.com.types">
    <myType:content>
    <myType:element attribut="value" />
    </myType:content >
    </myType:message>
    </soap:Body>

    I try to use
    [System.Xml.Serialization.XmlRoot()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="")]
    ...
    Without any result ...


    Thanks
     
    roenick97, Nov 23, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. heidi

    Tag prefix and namespace

    heidi, Nov 2, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    379
    heidi
    Nov 2, 2003
  2. =?Utf-8?B?c29tYXNsZWVw?=

    namespace prefix

    =?Utf-8?B?c29tYXNsZWVw?=, Jun 10, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    432
    =?Utf-8?B?c29tYXNsZWVw?=
    Jun 10, 2004
  3. Tim Tyler
    Replies:
    36
    Views:
    1,529
    Darryl L. Pierce
    Dec 10, 2004
  4. Chris  Chiasson
    Replies:
    6
    Views:
    654
    Richard Tobin
    Nov 14, 2006
  5. Replies:
    0
    Views:
    641
Loading...

Share This Page