Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Help "SOAP Response cannot be decoded. Raw response: "

Former Member
0 Kudos

Hi All

in my project i call a webservice for seeing server's process list.

But while running application every time, I get that error

[RPC Fault faultString="SOAP Response cannot be decoded. Raw response: "

faultCode="DecodingError" faultDetail="null"]

Here is my whole code

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >

<mx:Script>

<![CDATA[

import mx.controls.Alert;

import mx.rpc.events.FaultEvent;

import mx.rpc.events.ResultEvent;

import local.fitcons.*;

private function getResult(event:ResultEvent):void

{

tx.text=event.result.toString();

}

private function handleFault(event:FaultEvent):void

{

tx.text=event.fault.toString();

}

]]>

</mx:Script>

<mx:WebService

id="webService"

wsdl="http://fitduet.fitcons.local:50013?wsdl"

useProxy="false"

showBusyCursor="true">

<mx:operation

name="GetProcessList"

resultFormat="object"

fault="handleFault(event)"

result="getResult(event)">

</mx:operation>

</mx:WebService>

<mx:Panel title="Web Service Example" width="100%" height="260">

<mx:TextArea height="187" id="tx" width="100%"/>

<mx:ControlBar width="100%">

<mx:Button label="See the Result" click="webService.GetProcessList.send()"/>

</mx:ControlBar>

</mx:Panel>

</mx:Application>

Thanks...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

this error sounds to the WS response is not well-formed.

Have you tried consume the WS with another application? Also you can try to consume some WS of WSNavigator side of SAP WAS from you Flex APP.

Regards.

Fran

5 REPLIES 5

Former Member
0 Kudos

Hi,

this error sounds to the WS response is not well-formed.

Have you tried consume the WS with another application? Also you can try to consume some WS of WSNavigator side of SAP WAS from you Flex APP.

Regards.

Fran

0 Kudos

Thank you Francisco

that error was caused by my SAP WAS. I checked the WS and my problem was solved.

0 Kudos

Nothing mate, don't forget mark as answered

Regards

0 Kudos

Hi keklikhasan,

Can u please explain me in detail how to check the WS in SAP WAS..for the scenario

0 Kudos

Hi,

I'm facing same problem. Some WS works just fine like the one based on BAPI_VENDOR_GETDETAIL. However when I use BAPI_AP_ACC_GETOPENITEMS I get the encoding error message. I checked a million of time my request parameters and all seems Ok. Besides, The web service work like a charm in Infopath (I use it to test ws before implementing it in Flex). Anyone knows how to track the error? coud you please explain more how to check WS in SAP WAS?

Thank very much,

S.