Announcement Announcement Module
Collapse
No announcement yet.
Drop unused namespaces from Response Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Drop unused namespaces from Response

    Hello everybody,

    the WebService response generated by Spring-WS always adds all namespaces that are known by the JAXB Context:

    Code:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <SOAP-ENV:Body>
          <ns2:MyResponse para1="123 xmlns:ns2="http://mycomp.com/myapp2" xmlns:ns3="http://mycomp.com/myapp3"/>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    You can see that ns3 is added to the response even though it is not used.

    Does anybody know a way how to drop unused namespaces from the response?

    Thanks for any advice,
    Christian

  • #2
    I am having the same issue as mentioned above. Does anyone know how to fix this?

    Comment

    Working...
    X