Hi,
I have a servlet that receives SOAPMessages like the following:
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:gimmeQuote xmlns:ns1="urn:TEST3">
<x xsi:type="xsd:string">av1</x>
<y xsi:type="xsd:string">bv1</y>
</ns1:gimmeQuote>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I extract the content of the SOAPBody ie the following:
<ns1:gimmeQuote xmlns:ns1="urn:TEST3">
<x xsi:type="xsd:string">av1</x>
<y xsi:type="xsd:string">bv1</y>
</ns1:gimmeQuote>
for later processing, but when I try to parse it i get errors about xsi
not being bound:
The prefix "xsi" for attribute "xsi:type" is not bound.
Is there any generic way of adding namespace declarations to each element
where they are used without manually going in and adding the namespace
declarations.
Thanx in advance,
Michael