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.
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
Problem reading child element without QNAME
Hi, I am consuming a third-party service that uses SOAP-ENC arraytypes. I rewrote the WSDL so that I could use XmlBeans. The service returns an array of Complex Type element with its attributes are of simple types. When I print the xmltext, it works fine but when I access the child element, I noticed that it is looking for a child element with QNAMEs. I had similar problem at the root of the response. The service was returning like this Then I modified the xml like below to work. I tried the same trick here but did not work. XMLText output: http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";> 25001 Lexington Insurance Company 19437 I get null when I access 'sName'. Could anyone provide me a solution to access this? Note: I thought this is related to xmlbeans and posted there but it seems the traffic is very low for me to get a response. Thanks in advance. Thanks
RE: Issue in WSDL2Java Generation
Thank you very much. It worked. From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 7:01 AM To: axis-user@ws.apache.org Subject: Re: Issue in WSDL2Java Generation this is a problem with your wsdl file. the header message should refer to an element not a type. and MyHeader should be an element not a complex type. thanks, Amila. On Tue, Nov 4, 2008 at 2:26 PM, Amila Suriarachchi <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: please log a jira. On Mon, Nov 3, 2008 at 2:44 PM, Meenakshisundaram, Pattabiraman <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: Hi, I have problem in using the generated stub as I am getting compilation error (param0 not defined) as shown below. I also understand that many others have asked but I could not see any solution. // add the children only if the parameter is not null if (param0!=null){ I am attaching the wsdl with this mail. Please note that I checked for WS-I compliance using SoapScope product and it complained only about the header and rest are fine. Please note that I had to rewrite this wsdl as it was using SOAP-ENC and XmlBeans was not generating the array elements as expected. Could anyone provide me the directions to resolve this? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Issue in WSDL2Java Generation
Hi, I have problem in using the generated stub as I am getting compilation error (param0 not defined) as shown below. I also understand that many others have asked but I could not see any solution. // add the children only if the parameter is not null if (param0!=null){ I am attaching the wsdl with this mail. Please note that I checked for WS-I compliance using SoapScope product and it complained only about the header and rest are fine. Please note that I had to rewrite this wsdl as it was using SOAP-ENC and XmlBeans was not generating the array elements as expected. Could anyone provide me the directions to resolve this? Thanks SentrySOAP_new.dll.wsdl Description: SentrySOAP_new.dll.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]