Results 1 to 2 of 2

Thread: Drop unused namespaces from Response

  1. #1
    Join Date
    Jun 2007
    Location
    Germany, Mannheim
    Posts
    28

    Default 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. #2
    Join Date
    Sep 2011
    Posts
    2

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •