0 Replies Latest reply on Mar 18, 2010 10:51 AM by radek.r

    CDATA and envelope format sensitivity

    radek.r Level 1



      I am using standard LiveCycle component/service "WebService" in LiveCycle process to call a Web service.
      In SOAP response is CDATA section with xml document that I need to work with.


      In Web-service component properties is section "CDATA list" which should parse all CDATA sections of soap-response to a list variable.
      It works well if the service returns (A)-type response format (see below), but doesn't parse anything for (B)-type.


      So - can WebService component parse CDATA section from generic soap/xml format or does it require (A)-like format ?


      A) works well
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <invokeResponse xmlns="http://adobe.com/idp/services">
               <doc xsi:type="ns1:XML" xmlns:ns1="http://adobe.com/idp/services">
                      <![CDATA[<?xml version="1.0"?>
               <foo>Hello world</foo>


      B) does not work
      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <ns1:someMethod SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="yyy">
               <return xsi:type="xsd:string">
                  <?xml version="1.0" encoding="UTF-8"?>
                  <response id="0" xsi:noNamespaceSchemaLocation="loc.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">