<mx:HTTPService id="addWeb" resultFormat="object" result="Added(event)" fault="faultWeb(event)" showBusyCursor="true" method="GET" url="http://localhost/search/populate.php" useProxy="false">
<mx:request xmlns="">
<urlWeb>{urlW.text}</urlWeb>
</mx:request>
</mx:HTTPService>
<mx:Text id="query" x="10" y="425" text="Text" width="486" visible="false" height="30" fontWeight="bold" fontSize="16"/>
<mx:Button x="772" y="424" label="Add" click="addWeb.send();"/>
<mx:TextInput id="urlW" x="604" y="424" />
<mx:Label x="513" y="426" text="Add website" />
我正在传递一些随机的url作为参数,但是我得到了这种错误。
[RPC Fault faultString="Error #1096" faultCode="Client.CouldNotDecode" faultDetail="null"]
发布于 2009-06-03 16:55:45
<urlWeb>{urlW.text}</urlWeb>
这在Flex解析请求节点时是无效的。您需要使用数组、对象、字符串、数字或xml
<mx:String>{urlW.text}</mx:String>
https://stackoverflow.com/questions/944438
复制相似问题