This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 104550 - Auto generate Clinet code for SOAP header variables
Summary: Auto generate Clinet code for SOAP header variables
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: issues@webservices
Depends on:
Reported: 2007-05-22 21:29 UTC by pcmreddy
Modified: 2010-07-28 15:48 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description pcmreddy 2007-05-22 21:29:29 UTC
Use case :

Generate Webservice using the following WSDL.

Now add this client to JSP page.
Observe code is not generated for SOAP header variables such as userid and passwd.

User needs to code this manually to access the webservice.

User needs to add the following code to generated client.
 email.LicenseInfo li = new email.LicenseInfo();
 email.UnregisteredUser uu = new email.UnregisteredUser();
 uu.setEmailAddress("requestor's email");
 ((WSBindingProvider) port).setOutboundHeaders(new

See also
Comment 1 Lukas Jungmann 2007-05-25 12:12:38 UTC
The WSDL on the given URL has been changed. Original one to be able to reproduce
this can be found at
Comment 2 Lukas Jungmann 2008-04-14 17:16:38 UTC
moving opened issues where TM != dev to TM=TBD
Comment 3 michaelxu 2010-07-28 15:48:44 UTC
I have encountered similar problem.  I am using NetBeans 6.9 to create a web service client using a third-party vendor WSDL.  The problem is the generated sources do not include variables in soap header and therefore the java web service client can not work.

If you know how to resolve the problem, please contact me at  Thank you.