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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content