aspose file tools*
The moose likes Web Services and the fly likes Webshpere WSDL2Java - SOAPHeader - HELP!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webshpere WSDL2Java - SOAPHeader - HELP!!!" Watch "Webshpere WSDL2Java - SOAPHeader - HELP!!!" New topic
Author

Webshpere WSDL2Java - SOAPHeader - HELP!!!

Bruce Christie
Greenhorn

Joined: Dec 03, 2003
Posts: 1
Hi There,
I have written a client application that talks to a web service. Up until this point I was using the axis-ant wsdl2java task in eclipse to build proxies. Everything was great. I was able to set a soapHeader value by casting the Port to a Stub and calling the setHeader() method. Done.

Then, I had to move my stuff into websphere and was required to use their version of wsdl2java ant task. It all worked pretty well except that I can't for the life of me figure out how to set the SOAPHeader. It seems that com.ibm.ws.webservices.engine.client.Stub has no setHeader() method.

I am pulling my hair out and would be indebted many beers to anyone who could help me out with this.

Thanks
Bruce
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
The listing 9of IBM tutorial shows using SOAPHeader for getting the soap header. Is it something similar for setting soapheader. Not sure whether that help you.

BTW Welcome to Javaranch.
 
Don't get me started about those stupid light bulbs.
 
subject: Webshpere WSDL2Java - SOAPHeader - HELP!!!