Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes add soap header method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "add soap header method" Watch "add soap header method" New topic

add soap header method

dale con
Ranch Hand

Joined: Apr 15, 2005
Posts: 93
Hi all

I've created a method that adds a soap header

I'm not sure what to put here - new SOAPHeaderElement (http://........)

Also i'm testing this using eclipse and the wtp tool. But can't see the header being created

Can anyone suggest how i test this to see the header?

Do i have to use something like MessageContext messagecontext = MessageContext.getCurrentContext(); ???

Thanks for any help

public static String addSOAPHeader(String token) throws Exception
Service service = new Service();

Call call = (Call)service.createCall();

SOAPHeaderElement tokenHeader = new



return token;
I agree. Here's the link:
subject: add soap header method
Similar Threads
How to add Cookie http header in the soap request
Custom Soap Header (org.apache.axis.message.SOAPHeaderElement)
Web service handler could not registered/called in client web service
web service context is null
Sign soap header with handler in WebSphere 6.1