Reputation: 282
I am getting the SOAPHeader by using stub._getServiceClient().getLastOperationContext().getMessageContext("In").getEnvelope().getHeader()
Then i need to parse the value of particullar element inside it, Searched lot but i'm getting null.
i have tried soapHeader.getAttribute(QName)
soapHeader.examineAllHeaderBlocks()
etc. and after getting the Iterator i'm not able to get the text of particullar element inside header.
Upvotes: 0
Views: 220
Reputation: 889
You need to create 2 classes, a HeaderHandler
and a HeaderHandlerResolver
at that point in your IDE for your client you can right click and click new webservice client
and point to the wsdl url. Take a look at this http://www.javadb.com/using-a-message-handler-to-alter-the-soap-header-in-a-web-service-client/
Upvotes: 1