axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Oliveira <pedrocar...@gmail.com>
Subject How to access to header parameters ?
Date Wed, 03 Aug 2011 01:50:32 GMT
Hi,
I have a wsdl like this
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.customer.com/">
   <soapenv:Header>
      <ws:MyHeader>
         <!--Optional:-->
         <Credentials>
            <!--Optional:-->
            <password>Bar</password>
            <!--Optional:-->
            <userId>Foo</userId>
         </Credentials>
         <!--Optional:-->
         <Flags>
            <retry>?</retry>
         </Flags>
      </ws:MyHeader>
   </soapenv:Header>
   <soapenv:Body>
      <ws:notify>
         <!--Optional:-->
         <Id>?</Id>
         <!--Optional:-->
         <message>?</message>
         <!--Optional:-->
         <status>?</status>
      </ws:notify>
   </soapenv:Body>
</soapenv:Envelope>

I converted this wsdl to code by using wsdl2java and the skelatons were
generated but i don't have idea how I can read the parameters from MyHeader.
Any idea?

Regards

Mime
View raw message