File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Webshpere WSDL2Java - SOAPHeader - HELP!!!

Bruce Christie

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 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.

Balaji Loganathan
author and deputy

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.
I agree. Here's the link:
subject: Webshpere WSDL2Java - SOAPHeader - HELP!!!
It's not a secret anymore!