|
Here is another way
of doing it which I found convenient to use. Not sure if it is for better
or worse though:
class SomeClass
{
SomeMethod()
{
org.apache.axis.client.Service
myService = new org.apache.axis.client.Service; // Initialize service and call objects
normally
org.apache.axis.client.Call call = new
org.apache.axis.client.Call();
Handler responseHandler = new
CustomClientResponseHandler();
// This is call to set your custom client
handler
call.setClientHandlers(null,
responseHandler);
call.invoke(...);
}
}
public class
CustomClientResponseHandler extends BasicHandler {
// Function called before the response returns to Call object after
invoke
public void invoke(MessageContext msgContext) throws
AxisFault
{
String bodyXML =
msgContext.getMessage().getSOAPPart().getEnvelope().getBody().toString();
// Hand off to another program anyway you like. Don't
have to work with string,
// getBody() will return a SOAPBody object which extends
a SOAPElement object
// which extends a
SOAPNode
}
}
|
- Accessing 'raw' document body. Erich Oliphant
- RE: Accessing 'raw' document body. WALTERS,EUGENIO (HP-Boise,ex1)
- Re: Accessing 'raw' document body. Erich Oliphant
- Re: Accessing 'raw' document b... Sloan Seaman
- Re: Accessing 'raw' docume... Erich Oliphant
- Re: Accessing 'raw' d... Erich Oliphant
- Re: Accessing 'raw' d... Sloan Seaman
- Re: Accessing 'ra... Erich Oliphant
- RE: Accessing 'raw' document body. Naresh Bhatia
- RE: Accessing 'raw' document body. WALTERS,EUGENIO (HP-Boise,ex1)
- Re: Accessing 'raw' document body. Phil Bohnenkamp
- Re: Accessing 'raw' document body. Erich Oliphant
