0 Replies Latest reply on Feb 17, 2009 11:01 AM by dscottp

    how to exclude the 'Header' element from my Soap Client requ

    dscottp

      Hi guys,

      I'm working with a Web Service breaks when you have an empty header element. I won't be able to get the service fixed unfortunately.

      Is there any way I can exclude the empty header from my request?

      Basically, the JbossWS client is generating the envelope:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:something">
       <soapenv:Header/>
       <soapenv:Body>
       <urn:something>
       <foo>bar</foo>
       </urn:something>
       </soapenv:Body>
      </soapenv:Envelope>
      


      and I would like to generate this instead:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:something">
       <soapenv:Body>
       <urn:something>
       <foo>bar</foo>
       </urn:something>
       </soapenv:Body>
      </soapenv:Envelope>