Apache Axis 2: how to get header?
- From: cdvr <codecraig@xxxxxxxxx>
- Date: 18 Apr 2007 19:45:41 -0700
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!
.
- Prev by Date: why does Sun JVM have a hard max mem limit of 93meg on 2gig pc with no setting modified?
- Next by Date: [J2EE]Context, ContextListener , SessionListener
- Previous by thread: why does Sun JVM have a hard max mem limit of 93meg on 2gig pc with no setting modified?
- Next by thread: [J2EE]Context, ContextListener , SessionListener
- Index(es):