Apache Axis namespace prefixes???

J

jimmelonis

I have a question about the generated nsX namespaces, e.g. ns1. I
guess put simply is there a way to change the Axis generated namespace
prefix?

i.e from:
<ns1:myDataWrapper xmlns:ns1="urn:myNamespace">
<ns1:myData>data</ns1:myData>
<ns1:myData2>data2</ns1:myData2>
</ns1:myDataWrapper>

to:
<newPrefix:myDataWrapper xmlns:newPrefix="urn:myNamespace">
<newPrefix:myData>data</newPrefix:myData>
<newPrefix:myData2>data2</newPrefix:myData2>
</newPrefix:myDataWrapper>

Somewhat a seperate question, is is possible in axis to return the
namespaces defined in the SOAP Envelope OR Body?

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body xmlns:newPrexix="urn:myNamespace">

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,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top