POJO and XML arguments

Hello,I am curious how I can pass XML string arguments to POJO methods and also get return strings in XML. It seems that POJO at least in Axis is not handling well!I am looking for simple ways to do this without using attachement methods.regards.
[274 byte] By [jonathancreeka] at [2007-11-27 8:13:53]
# 1

I found the source of problem. 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. 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 NOT SURE WHICH ONE

IS CORRECT?

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();

Regards,

jonathancreeka at 2007-7-12 19:58:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...