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 Pedro Oliveira <pe...@gmail.com> on 2011/08/03 03:50:32 UTC
How to access to header parameters ?
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