You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wolfram Ditzer <di...@optel-informatik.de> on 2003/10/14 17:18:28 UTC

Create a SOAP header

Hello,

I search for a (short) way to create a SOAP header from a class which 
represents a data type.
The class itself was created by WSDL2Java.

 <soapenv:Header>
  <ns2:transaction xsi:type="ns1:transaction" 
xmlns:ns1="http://optel.test.de/schemas/interface/" 
xmlns:ns2="http://optel.test.de/interface">
   <value xsi:type="xsd:string">21857</value>
  </ns2:transaction>
 </soapenv:Header>
 <soapenv:Body>

I need a object from SOAPHeaderElement to put it into my client stub 
class via setHeader(...).

Thanks Wolfram