Namespace Prefix in Response Element child nodes

M

MowTin

In my .Net web service. I want to declare all the namespaces in my soap response element and have all the child elements use prefixes. I know how to use XmlNamespaceDeclarations but I don't know how to apply them to the response element.

I have: <soap:body>
<MyMethodResponse >
<MyElement xmlns="blah1">
<MyElement2 xmlns="blah2">
....

I want: <soap:body>
<MyMethodResponse xmlns:b1="blah1" xmlns:b2="blah2">
<b1:MyElement>
<b2:MyElement>
...

How do I do it?
 

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