RE: Consuming a Service that takes AnyType
Thank you. It is worki9ng when I use the ServiceClient. Thanks From: McCoy, Daniel (HTSC) [mailto:daniel.mc...@htsco.com] Sent: Friday, November 20, 2009 4:05 PM To: axis-user@ws.apache.org 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 daniel.mc...@thehartford.com<mailto:daniel.mc...@thehartford.com> From: Meenakshisundaram, Pattabiraman [mailto:pattabiraman.meenakshisunda...@chartisinsurance.com] Sent: Friday, November 20, 2009 3:56 PM To: axis-user@ws.apache.org 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.
RE: Consuming a Service that takes AnyType
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:daniel.mc...@htsco.com] Sent: Friday, November 20, 2009 4:05 PM To: axis-user@ws.apache.org 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 daniel.mc...@thehartford.com<mailto:daniel.mc...@thehartford.com> From: Meenakshisundaram, Pattabiraman [mailto:pattabiraman.meenakshisunda...@chartisinsurance.com] Sent: Friday, November 20, 2009 3:56 PM To: axis-user@ws.apache.org 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.
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+soapEnvClos e; OMElement elem = AXIOMUtil.stringToOM(XMLRequest); Dan McCoy Architect Office of the CTO 8 Farms Springs Farmington, CT 06032 (860) 409-8170 daniel.mc...@thehartford.com <mailto:daniel.mc...@thehartford.com> From: Meenakshisundaram, Pattabiraman [mailto:pattabiraman.meenakshisunda...@chartisinsurance.com] Sent: Friday, November 20, 2009 3:56 PM To: axis-user@ws.apache.org 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.
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