SOAP and prefix namespace

R

roenick97

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top