Hi,
I've got an InputStream containing a soap envelope.
When I use StAXSOAPModelBuilder to create a SOAPEnvelope object, some extra strings (xmlns="") are added in the resulting envelope!!!
What's the problem here?
The code is pretty simple:
// InputStream soapStream contains the envelope as a stream
javax.xml.stream.XMLInputFactory xmlif = javax.xml.stream.XMLInputFactory.newInstance();
javax.xml.stream.XMLStreamReader xmlr = xmlif.createXMLStreamReader(soapStream);
StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(xmlr,null);
SOAPEnvelope newEnvelope = builder.getSOAPEnvelope
();
My InputStream contains something like this:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header>
<soapenv:Body>
<DmpPatientRequest xmlns="http://dmp/search/types
">
<access xmlns="">Acces normal</access>
</DmpPatientRequest>
</soapenv:Body>
</soapenv:Envelope>
But in the resulting SOAPEnvelope I get:
...
<access xmlns="" xmlns="">Acces normal</access>
...
What is hapening here?
- [Axis0.94] Duplicated xmlns="" added by StAXSOAP... Gaël Pouzerate
- RE: [Axis0.94] Duplicated xmlns="" added by... sajith
- Re: [Axis0.94] Duplicated xmlns="" adde... Xinjun Chen
- Re: [Axis0.94] Duplicated xmlns="" ... Gaël Pouzerate
- Re: [Axis0.94] Duplicated xmlns="&qu... Xinjun Chen
- Re: [Axis0.94] Duplicated xmlns=&quo... Xinjun Chen
- Re: [Axis2] [Axis2 0.94] Duplica... Eran Chinthaka