You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by May El-Barachi <sm...@yahoo.com> on 2003/05/17 01:09:58 UTC

Extracting information from a SOAP request

Hi guys:

I have a quick question about processing SOAP requests
message body:

I want to extract the name of the operation and the
parameters passed through a SOAP request, by a client.
After i get the SOAP body using:
Call call = (Call) service.createCall( *theportQN,
*theoperationname ); 
call.setReturnType(org.apache.axis.Constants.XSD_ANYTYPE);

Message m = c.getRequestMessage();
SOAPEnvelope en = m.getSOAPEnvelope(); 
SOAPBody body = en.getBody(); 

What should i do to extract the value of the ns1
element, as well as the input parameters passed for
this method?

Should i use getBodyElements, or getChildElements ?
And for the parameters, should i use
getAttributeValue?

Anyone has an idea?

May

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com