При вызове метода вебсервиса возникает ошибка: RPC Fault faultString="Error #1085" faultCode="DecodingError" faultDetail="null".
Код сервиса:
class myService extends Services_Webservice
{
public function hello()
{
return 'myString';
}
}
Вызов сервиса:
<mx:WebService id="webService"
wsdl="http://localhost:8080/index.php?WSDL"
fault="Alert.show(event.fault.faultString), 'Error'">
<mx:operation name="hello"
resultFormat="object"
result="hello_result(event);"
fault="hello_fault(event);" >
</mx:operation>
</mx:WebService>
private function hello_result(evt:ResultEvent):void {
Alert.show( ObjectUtil.toString(evt.result) );
}
private function hello_fault(evt:FaultEvent):void {
Alert.show("Fault!!! " + evt.fault);
}
В чем засада?