I used the following code and it worked: SOAPFactory factory = OMAbstractFactory.getSOAP11Factory(); OMElement om = myAxisObiect.getOMElement(myAxisObiect.MY_QNAME, factory); System.out.println(" xml string --> " +om.toStringWithConsume());
Thanks On Tue, Aug 2, 2011 at 11:13 AM, bhima santosh <santosh.bh...@gmail.com> wrote: > SOAPFactory factory = OMAbstractFactory.getSOAP11Factory(); > > OMElement crmAuthenticationTokenOMElement = factory > .createOMElement(new QName( > "serviceUrl", > "serviceName")); > > On Tue, Aug 2, 2011 at 3:41 PM, Denise Wu <wadie...@gmail.com> wrote: >> >> Hi Swapna, >> >> I need for that to get the OMElement from the object. Axis2 offers the >> getOMElement(parentQName, factory) method. >> My question is how to know the parameters 'parentQName' and 'factory' >> values needed in my case. >> >> Thank you for your help, >> >> >> On Tue, Aug 2, 2011 at 10:38 AM, swapna soni <ss...@nisum.com> wrote: >> > Hi Denise, >> > >> > If it is OMElement, you can just say obj.toString(). >> > >> > Thanks, >> > Swapna Soni. >> > >> > -----Original Message----- >> > From: Denise Wu [mailto:wadie...@gmail.com] >> > Sent: Tuesday, August 02, 2011 3:01 PM >> > To: java-dev@axis.apache.org >> > Subject: Re: How to get xml string of axis2 object >> > >> > Yes, but that's not my question. >> > My question is about converting an axis2 object into its xml >> > representation. >> > >> > >> > >> > On Tue, Aug 2, 2011 at 10:28 AM, bhima santosh <santosh.bh...@gmail.com> >> > wrote: >> >> >> >> checkout testskillshome.com for xml to string conversion >> >> >> >> On Tue, Aug 2, 2011 at 2:56 PM, Denise Wu <wadie...@gmail.com> wrote: >> >>> >> >>> Hi, >> >>> >> >>> How to convert the input object of a webservice method into its xml >> >>> string representation? >> >>> Thank you, >> >>> >> >>> Denise. >> >>> >> >>> --------------------------------------------------------------------- >> >>> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org >> >>> For additional commands, e-mail: java-dev-h...@axis.apache.org >> >>> >> >> >> >> >> > >> > >> > >> > -- >> > Wadienil. >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org >> > For additional commands, e-mail: java-dev-h...@axis.apache.org >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org >> > For additional commands, e-mail: java-dev-h...@axis.apache.org >> > >> > >> >> >> >> -- >> Wadienil. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org >> For additional commands, e-mail: java-dev-h...@axis.apache.org >> > > -- Wadienil. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org