BASIC Q - WSDL2Java generated code & SOAP Header

A

asptyson

Hi,

Apologies if the following is off topic.

I am writing an application that will be deployed into WAS 6.0. The
application will need to consume a SOAP based webservice. I have been
supplied with the WSDL defining the services, and have used the IBM
WSDL2Java utility to generate Java stub classes. All of the XSD defined
elements that appear in the body of the SOAP message have generated
classes. However, this service uses the SOAP header for additional
information - and there are no generated classes for the header
elements.

Considering the following simplified example SOAP request.

<soap:envelope>
<soap:header>
<header:foo/>
</soap:header>
<soap:body>
<body:bar>
<body:blah/>
</body:bar>
</soap:body>
</soap:envelope>

In this case the header namespace element (foo) is defined in a
separate XSD from the body namespace elements (bar and blah). The tool
has only generated stub classes for bar and blah. Further there does
not apper to be any way to access the javax.xml.soap.* APIs in the
generated code base to set header info (assuming that the IBM generated
codebase uses SAAJ).

I need to be access the header info , and I am sure that there must be
something that I am doing wrong

I would appreciate any tips that anyone might have.

Thanks and regards,
Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top