Hi Joe,
Quote : "Of course QName qualified does not work on Axis. I am concerned
about compatibility with others!"

Try something like the following code.
       SOAPBody soapBody = sresponse.getSOAPBody();
       QName bodyQName = new
QName("http://ws.apache.org/axis2/xsd","mymethodResponse";,
"m");
       Iterator childElements = soapBody.getChildElements(bodyQName);
       SOAPBodyElement element = (SOAPBodyElement)childElements.next();

You need to give correct value for localpart ("mymethodResponse").

----------------------------------------------------------------------------------------------------------
Quote : "However I am not sure whether Axis is adding one more xml layer in
returnining result values."

You can try accessing a simple .NET or any other WS using axis. It works
seamlessly.

/sumedha





On 6/21/07, Joe Nathan <[EMAIL PROTECTED]> wrote:


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