AFAIK you have to modify the stub code and get headers from there. In
Axis2 1.2 there is an operation in the generated stub to get the last
operation context (and so the envelope object) but it didn't work for
me.

On 4/19/07, craig wickesser <[EMAIL PROTECTED]> wrote:
anyone???


On 4/18/07, craig wickesser <[EMAIL PROTECTED]> wrote:
> Hi...I have a client which I am using to access a web service  The
> code I have is...
>
>
>                 MyStub stub = new MyStub();
>                 HelloWorldDocument reqDoc =
HellWorldDocument.Factory.newInstance();
>                 reqDoc.setName("bob");
>
>
>                 HelloWorldResponseDocumnet resp = stub.SayHello(reqDoc);
>
>
> The SOAP XML response is in the following form...
>
>
>                 <soap12:Envelope ....>
>                   <soap12:Header>
>                     <ErrorResponse ....>
>                     </ErrorResponse>
>                     <UserInfo ...>
>                       <Id>string</Id>
>                       <DOB>string</DOB>
>                     </UserInfo>
>                   </soap12:Header>
>                   <soap12:Body>
>                     <HelloWorldResponse ....>
>                       .....
>                     </HelloWorldResponse>
>                   </soap12:Body>
>                 </soap12:Envelope>
>
>
> My issue is I need to get stuff from the UserInfo header....how can I
> get that?  Currently all I can get is the HelloWorldResponse from the
> "body".
>
> Thanks!
>
>
>
>
>
>
>
>
>
>
>
>




--
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to