Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webshpere WSDL2Java - SOAPHeader - HELP!!!

 
Bruce Christie
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic