Apache flex &引用;默认解码器无法解码结果";

Apache flex &引用;默认解码器无法解码结果";,apache-flex,mxml,httpservice,actionresult,Apache Flex,Mxml,Httpservice,Actionresult,这是文件- MXML: \n”; $connections=mysql\u connect(“…”); mysql_选择_数据库(“…”); $name=$_POST['name']; $score=$_POST['score']; $query=“插入hs(名称、分数)值(“$name”,“$score”)”; mysql\u查询($query); ?> 信息发送成功创建并执行上述查询。但“结果”事件会出现“默认解码器无法解码结果”错误。此代码对您有何意义 <mx:HTTPServic

这是文件-

MXML:

\n”;
$connections=mysql\u connect(“…”);
mysql_选择_数据库(“…”);
$name=$_POST['name'];
$score=$_POST['score'];
$query=“插入hs(名称、分数)值(“$name”,“$score”)”;
mysql\u查询($query);
?>

信息发送成功创建并执行上述查询。但“结果”事件会出现“默认解码器无法解码结果”错误。

此代码对您有何意义

<mx:HTTPService id="scoreService" url="http://" method="POST" fault="mx.controls.Alert.show(event.fault.faultString)" result="mx.controls.Alert.show(event.result.toString())">
    <s:request xmlns="">
        <name>myName</name>
        <score>myScore</score>
    </s:request>
</mx:HTTPService>

我的名字
我的核心

您看到了吗?在客户端/服务器端,您有什么不同吗?

这段代码对您来说意味着什么

<mx:HTTPService id="scoreService" url="http://" method="POST" fault="mx.controls.Alert.show(event.fault.faultString)" result="mx.controls.Alert.show(event.result.toString())">
    <s:request xmlns="">
        <name>myName</name>
        <score>myScore</score>
    </s:request>
</mx:HTTPService>

我的名字
我的核心

你看到了吗,客户端/服务器端有什么不同吗?

我有变量-{name}{score}事实上,它确实会将数据发布到我的数据库中。因此,它确实会通过在数据库中插入一行来执行我需要的操作…你的url真的有效吗?你在Apache、Tomcat或IIS上吗?你有日志来查看它们吗?你能用flex中使用的参数通过浏览器显示你的服务输出吗?请问,它在一个到一个位置是否有
字符串p、 好的,我看到它没有,返回的URL完全不同,我知道问题出在哪里了,thnx!我有变量-{name}{score}事实上,它确实会将数据发布到我的数据库中。因此,它确实会通过在数据库中插入一行来执行我需要的操作…你的url真的有效吗?你在Apache、Tomcat或IIS上吗?你有日志来查看它们吗?你能用flex中使用的参数通过浏览器显示你的服务输出吗?请问,它在一个到一个位置是否有
字符串p、 好的,我看它没有,返回的URL是完全不同的,我知道现在的问题是什么,thnx!
<mx:HTTPService id="scoreService" url="http://" method="POST" fault="mx.controls.Alert.show(event.fault.faultString)" result="mx.controls.Alert.show(event.result.toString())">
    <s:request xmlns="">
        <name>myName</name>
        <score>myScore</score>
    </s:request>
</mx:HTTPService>