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 <[email protected]> wrote:
> SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
>
> OMElement crmAuthenticationTokenOMElement = factory
> .createOMElement(new QName(
> "serviceUrl",
> "serviceName"));
>
> On Tue, Aug 2, 2011 at 3:41 PM, Denise Wu <[email protected]> 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 <[email protected]> wrote:
>> > Hi Denise,
>> >
>> > If it is OMElement, you can just say obj.toString().
>> >
>> > Thanks,
>> > Swapna Soni.
>> >
>> > -----Original Message-----
>> > From: Denise Wu [mailto:[email protected]]
>> > Sent: Tuesday, August 02, 2011 3:01 PM
>> > To: [email protected]
>> > 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 <[email protected]>
>> > wrote:
>> >>
>> >> checkout testskillshome.com for xml to string conversion
>> >>
>> >> On Tue, Aug 2, 2011 at 2:56 PM, Denise Wu <[email protected]> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> How to convert the input object of a webservice method into its xml
>> >>> string representation?
>> >>> Thank you,
>> >>>
>> >>> Denise.
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: [email protected]
>> >>> For additional commands, e-mail: [email protected]
>> >>>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Wadienil.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>>
>>
>>
>> --
>> Wadienil.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
--
Wadienil.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]