Consuming in Java a .NET Web Service that requires a custom SOAP Header?

Here are the basic steps, assuming you're doing this on the client side.

Here are the basic steps, assuming you're doing this on the client side: Install a HandlerResolver on your service interface (service. SetHandlerResolver()) Override HandlerResolver.getHandlerChain() to insert your own implementation of SOAPHandler Implement SOAPHandler.handleMessage() to modify the SOAP header before it's sent out You can pass parameters to your handler through the request context: Map context = ((BindingProvider) port). GetRequestContext(); context.

Put("userName', "foo"); ... in handleMessage() you can get at the header like this: public boolean handleMessage(SOAPMessageContext context) { ... SOAPMessage msg = context.getMessage(); msg.getSoapHeader(); ... } Hope that helps. I'm guessing there's also a way to do this stuff with annotations as well.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions