|
| Re: how to get SOAP Message while Request in WebService.. ? |
 |
Mon, 14 Apr 2008 11:05:18 -070 |
Hi
In your code the NullPointerException is expected as the message context is null
and not initialized before you call getMessage method on it.
You can use soap handlers (client/server side handlers) to add the headers to
the message before it is sent to the server.
Soap handler has methods like below in which you can add the headers.
/**
* Handles incoming web service requests and outgoing callback requests
*/
public boolean handleRequest(MessageContext mc)
{
System.out.println("Soap message is: \n " +
((SOAPMessageContext)mc).getMessage() + "\n");
return true;
}
More docs at http://e-docs.bea.com/wls/docs100/webserv_adv/handlers.html
|
| Post Reply
|
|
|
|
|
|
|
|
|
|