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.
author and deputy
posted 11 years ago
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.