08-11-2009 1:36 PM
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...
08-17-2009 3:35 PM
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
08-17-2009 3:35 PM
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
08-18-2009 12:56 PM
Thank you Francisco
that error was caused by my SAP WAS. I checked the WS and my problem was solved.
08-21-2009 9:31 AM
09-15-2010 5:54 AM
Hi keklikhasan,
Can u please explain me in detail how to check the WS in SAP WAS..for the scenario
12-30-2010 12:42 PM
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.