1 Reply Latest reply on Oct 15, 2013 12:40 AM by ignaciohita

    Strange random soap decoding errors

    StefanvandeVooren

      We have an application which uses .NET and  Coldfusion webservices. The  .NET services always successfully returned the result in the Flex application. Th Coldfsion webservice not.

       

      Sometimes we got bellows error in Flex after invoking the Coldfusion service.

       

      Fault event in Flex

      WebService  destination="DefaultHTTP" wsdl="http://cf-acceptatie.thenextpage.nl/com/brightalley/course/LMSEModuleService.cfc?WSDL" channelSet="[ChannelSet direct_http_channel ]"]message: faultCode:DecodingError faultString:'SOAP Response cannot be decoded. Raw response: ' faultDetail:'null'faultString: SOAP Response cannot be decoded. Raw response: faultCode: DecodingErrorfaultDetail: nullrootCause: null

      null : [RPC Fault faultString="SOAP Response cannot be decoded. Raw response: " faultCode="DecodingError" faultDetail="null"]

       

      The strange thing is it happens maybe only 1 of 30 calls. First we thought it was a problem with the webserver or the network. However when we run a sniffer/proxy programme ‘Charles’ we see that that the webserver returns a correct result. It seems that Flex can not handle or decode this result?

       

      It looks the same problem is descried on http://www.mail-archive.com/search?q=Webservice+Random+Faults&l=flexcoders%40yahoogroups.c om

       

      Does anybody encounter the same problems or does anybody knows a solution?

       

      Thanks Stefan

       

       

      The request we make:

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

          <impl:SaveFormOption xmlns:impl="http://course.brightalley.com">

            <userId xsi:type="xsd:double">2223</userId>

            <moduleVersionId xsi:type="xsd:double">129</moduleVersionId>

            <formOptionId xsi:type="xsd:double">228</formOptionId>

            <formId xsi:type="xsd:double">56</formId>

            <mc1Selected xsi:type="xsd:double">0</mc1Selected>

            <mc2Selected xsi:type="xsd:double">1</mc2Selected>

            <mc3Selected xsi:type="xsd:double">0</mc3Selected>

            <mc4Selected xsi:type="xsd:double">0</mc4Selected>

            <openAnswer xsi:type="xsd:string"></openAnswer>

            <isCorrect xsi:type="xsd:double">0</isCorrect>

            <hash xsi:type="xsd:string">13ac70061a81edf22de5ae7bd0189f163c8cc76a</hash>

          </impl:SaveFormOption>

        </SOAP-ENV:Body>

      </SOAP-ENV:Envelope>

       

      The result from the webserver:

      <?xml version="1.0" encoding="utf-8"?><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">

      <soapenv:Body>

        <ns1:SaveFormOptionResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://course.brightalley.com">

         <SaveFormOptionReturn xsi:type="xsd:boolean">true</SaveFormOptionReturn>

        </ns1:SaveFormOptionResponse>

      </soapenv:Body>

      </soapenv:Envelope>