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

Summary: Auto generate Clinet code for SOAP header variables
Product: webservices Reporter: pcmreddy <pcmreddy>
Component: ClientAssignee: issues@webservices <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description pcmreddy 2007-05-22 21:29:29 UTC
Use case :

Generate Webservice using the following WSDL.
http://wsparam.strikeiron.com/emailverify_3_0?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.
Ex:
 email.LicenseInfo li = new email.LicenseInfo();
 email.UnregisteredUser uu = new email.UnregisteredUser();
 uu.setEmailAddress("requestor's email");
 li.setUnregisteredUser(uu);
 ((WSBindingProvider) port).setOutboundHeaders(new
email.ObjectFactory().createLicenseInfo(li));

See also 
http://www.netbeans.org/issues/show_bug.cgi?id=104470
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 http://ws.strikeiron.com/ZipInfo3?WSDL
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 michael.xu@ge.com.  Thank you.