axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sameera Jayasoma <sameera.madus...@gmail.com>
Subject Re: web service clients and OMElement
Date Sun, 05 Apr 2009 05:29:27 GMT
Hi Ashish,

On Sat, Apr 4, 2009 at 11:16 AM, Ashish Sarna <ashish.sarna@thepsi.com>wrote:

>  Hello,
>
>
>
> I am new to Axis2. I was going through samples provided by Axis and read
> few other articles.
>
>
>
> When Axis2 service is build using AXIOM, all the methods need to follow a
> fix signature:
>
>
>
> OMElement methodName(OMElement)
>
>
>
> Or
>
>
>
> void methodName(OMElement)
>
>
>
> In services.xml, we specify the message receivers as
> RawXMLINOutMessageReceiver or RawXMLINOnlyMessageReceiver.
>
>
>
> My question is that how would a non-java client call the methods which
> accept an OMElement object reference? Is it like something that client
> passes a String (which is in XML format) and message receiver converts in
> into OMElement
>

Yes. Axis2 converts XML String into an OMElement and passes it to the
Service class. Actually it is the SOAPBuilder which converts  the input
stream to an SOAP Envelope, not the message receiver. Therefore non-java
clients have to send the request XML string in a manner which can be
understood by the service class.


Thanks.
Sameera

reference?
>
>
>
> Please help me understand this concept.
>
>
>
> Thanks.
>



-- 
Sameera Jayasoma
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://tech.jayasoma.org

Mime
View raw message