This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services and the fly likes SOAP HEader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP HEader" Watch "SOAP HEader" New topic


Pritesha Agrawala

Joined: Mar 28, 2008
Posts: 6
Hello EveryOne,

I am new to Web services. I created Web service that is working fine without SOAP header. Now i want to include Header. How i can do it. Please if possible then give me sample WSDL file and Code of it.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
The way to do it depends on the API you use. This simple WS client shows how to do it with SAAJ.
Pritesha Agrawala

Joined: Mar 28, 2008
Posts: 6
I am using Axis2.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
You should find plenty of examples in the AXIS2 distribution.

I was under the impression that AXIS, like most toolkits, handled header creation automatically - what are you missing?

I agree. Here's the link:
subject: SOAP HEader
It's not a secret anymore!