Thanks. As I am using the stub generated from the WSDL, I would be setting only 
the 'lookRequestDoc' in your example. I guess the generated Stub does this on 
our behalf.
I tried stringToOm only on the String payload but am getting 'Not serializable' 
 exception.
Thanks



________________________________
From: McCoy, Daniel (HTSC) [mailto:[email protected]]
Sent: Friday, November 20, 2009 4:05 PM
To: [email protected]
Subject: RE: Consuming a Service that takes AnyType

Convert your request string to an OMElement. Let axis handle the OMElement 
instead of the string.


String XMLRequest = 
soapEnvelope+soapBody+lookRequestDoc.xmlText()+soapBodyClose+soapEnvClose;

OMElement elem = AXIOMUtil.stringToOM(XMLRequest);


Dan McCoy
Architect
Office of the CTO
8 Farms Springs
Farmington, CT 06032
(860) 409-8170
[email protected]<mailto:[email protected]>


________________________________
From: Meenakshisundaram, Pattabiraman 
[mailto:[email protected]]
Sent: Friday, November 20, 2009 3:56 PM
To: [email protected]
Subject: Consuming a Service that takes AnyType

Hi,
I am using the Stub generated by WSDL2Java for a Service that takes AnyType.
The Service is expecting a Xml content ( Not a String/escaped). When I invoke 
the service through XmlSpy, it works. I used TCP Monitor to see the content 
transferred and I see that the tags are not escaped.
Do not know how to do the same thing with the Generated Client. I am passing it 
as a String. It is not working. Moreover, I notice that only the '<' is 
escaped. The > goes unescaped.

Could anyone help me resolve this.

Thanks



************************************************************
This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential and/or privileged 
information.  If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited.  If you are 
not the intended recipient, please notify the sender immediately by return 
e-mail, delete this communication and destroy all copies.
************************************************************

Reply via email to