<?xml version =“1.0”encoding =“UTF-8”?>
< S:Envelope xmlns:S =“http://schemas.xmlsoap.org/soap/envelope/”>
< S:Header />
< S:Body>
< ns2:deleteDataView xmlns:ns2 =“http://ws.$$$$$.@@@@@.#####”>
&LT;标识符&GT; 5℃/标识符GT; &LT; / NS2:deleteDataView&GT;</S:Body>
&LT; / S:信封&GT;
&lt;?xml version =“1.0”encoding =“UTF-8”?&gt; &lt; S:Envelope xmlns:S =“http://schemas.xmlsoap.org/soap/envelope/”&gt; &LT; S:车身&GT;
&lt; ns2:deleteDataViewResponse xmlns:ns2 =“http://ws.$$$$$.@@@@@.#####”&gt;
&lt; return&gt;错误:遇到错误,请稍后再试&lt; / return&amp; gt
&lt; / ns2:deleteDataViewResponse&gt; &LT; / S:车身&GT; &LT; / S:信封&GT;
我想在flex中读取SOAP响应,是某些 新 到FLEX,请帮助,即使是好的资源也能正常工作。< / p>
答案 0 :(得分:1)
处理SOAP响应
<mx:WebService
id="userRequest"
wsdl="http://www.gnpcb.org/esv/share/soap/index.php?wsdl">
<mx:operation name="doPassageQuery" resultFormat="object"
fault="mx.controls.Alert.show(event.fault.faultString)"
result="showResult(event)"/>
</mx:WebService>
在上面的代码中,您正在访问SOAP WebService,现在您的resultFormat是 Object
,结果函数是showResult()
private function showResult(e:ResultEvent):void
{
trace(e.result);
}
<强>资源强>