Actually, I can pass simply assigning xml strings to arguments and returning.
However I am not sure whether Axis is adding one more xml layer in
returnining result values. Confusion came from this! To get result 
from Axis, I use this;
-----------------------------------------------------------------------------
SOAPBody soapBody = sresponse.getSOAPBody();
SOAPBodyElement node =
(SOAPBodyElement)soapBody.getFirstChild().getFirstChild();
msg = node.getValue();
-----------------------------------------------------------------------------
But Sun's J2EE tutorial has the following sample code. Notice that 
there is one extra layer in Axis return objects! Of course QName
qualified does not work on Axis. I am concerned about compatibility
with others!
-----------------------------------------------------------------------------
QName bodyName = new QName("http://ws.apache.org/axis2/xsd";, 
                                "mymethod", "m"); 
...
SOAPBody soapBody = sresponse.getSOAPBody();
Iterator iterator = soapBody.getChildElements(bodyName);
bodyElement = (SOAPBodyElement)iterator.next();
msg = bodyElement.getValue();
-----------------------------------------------------------------------------

Kind regards,

        



sumedha rubasinghe-2 wrote:
> 
> Hi Joe,
> Good to hear that you got it working!!!
> Are you referring to passing a String (which is an XML) to a method in
> POJO
> & getting a return String (which is also a XML) ?
> 

-- 
View this message in context: 
http://www.nabble.com/Running-SAAJ-problem-tf3937707.html#a11223090
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to