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!
 
Ad

Advertisements


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

Top