Once the patch submitted in http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13618 is integrated you will be happy to have all the complexTypes your WSDL contains generated... ;-)
This patch will prevent you from handling the header yourself, the portType will cache them for you and roundtrip them based on the WSDL. Sylvain. -----Original Message----- From: Bill Richards [mailto:brichards@;paycom.net] Sent: Monday, November 04, 2002 3:03 PM To: [EMAIL PROTECTED] Subject: SOAP Header Hello all, I used WSDL2Java to create my classes and stubs from a WSDL file. The service I am calling requires a certain header to be set. WSDL2Java creates a class for the header object, but I'm not sure how to add that object to the header. I found a way around it, by creating a SOAPHeaderElement, filling it in and calling call.addHeader(). This works, but I'm just wondering, is there a way to use the class that WSDL2Java created and add it to the header? If not, why was it generated in the first place. Not a critical question, just curious. Thanks. Bill This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.