Forcing Spring web services to add the xsd namespace to the response
Posted
by David Rabinowitz
on Stack Overflow
See other posts from Stack Overflow
or by David Rabinowitz
Published on 2010-05-11T18:19:43Z
Indexed on
2010/05/11
18:24 UTC
Read the original article
Hit count: 317
I'm using the Spring WS version 1.5.8. My response looks like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
...
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
However, my client (whom I integrate with) requires that I will add more namespace declerations in order for the parsing to succeed:
<?xml version="1.0" encoding="UTF-8"?>
<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>
...
</soapenv:Body>
</soapenv:Envelope>
How can I do it?
© Stack Overflow or respective owner