Dear all

I'm currently developing a client, which has to communicate with a webservice.  
This webservice is accessible through https, so we have to provide 
authentication.

I've generated the necessary classes with the codegen-plugin (as stated on the 
website).  So far, so good, I assume, because I can see a number of classes 
appear in my "generated" folder.  I've imported my application in Eclipse, and 
I can compile everything correctly.

When I simulate a request in SoapUI, the <soapenv:Envelope> XML contains 2 
parts, namely <soapenv:Header> and <soapenv:Body>.  In <soapenv:Header> there's 
a small part, which contains the authentication details for that particular 
webservice.

When I look in those generated files, there's actually an object 
"AuthenticationHeader", which corresponds to the values in the generated 
request from SoapUI.  The problem is, in my Interface and Serviceclass, there's 
not a single trace for AuthenticationHeader-objects.  Only in a class named 
ObjectFactory, which I don't need (an assumption based on the generated javadoc 
:)).

In the WSDL file, there's an element for that request called <part 
name="messagePart" element="import1:AuthenticationHeader".

Is there a way to send an AuthenticationHeader-instance with each message?  
I've already looked into Interceptors, but I don't think I need 1 of those 
(correct me if I'm wrong tho).

Please help :).

Reply via email to