Need namespace declaration in SOAP Envelope

Solution Unverified - Updated -

Issue

  • The location of our namespace prefix name changes during execution of service, but namespace values are same. The SOAP response does not have the namespace prefixes/values at the envelope level and all namespace values are in-lined in the response body. We need it in the Envelope because we have a stylesheet which expects to see it there. How can we solve this?
  • Response (actual):

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
       <soapenv:Header/>
       <soapenv:Body>
          <ns2:locateBenefits xmlns:ns2="http://www.somecompany.com/benefits/"/>
       </soapenv:Body>
    </soapenv:Envelope>
    
  • Response (desired):

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://www.somecompany.com/benefits/">
       <soapenv:Header/>
       <soapenv:Body>
          <ns2:locateBenefits/>
       </soapenv:Body>
    </soapenv:Envelope>
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.