flex 3 server.error.request发送web服务
我有一个 .net Web 服务,我在 Flex 中调用它,然后我有一个表单,通过 Web 服务中的另一个方法将新帖子插入到表中。 但是当我尝试插入该方法时,flex 会生成错误:
[RPC 故障 failureString="HTTP 请求 错误” 错误代码=“服务器.错误.请求” failureDetail="错误: [IOErrorEvent 类型=“ioError”气泡= false 可取消=假事件阶段= 2 text="错误#2032:流错误。URL: http://localhost:xxxxx/xxxx/xxxx.asmx"]。 网址: http://localhost:xxxx/xxxx/xxxx.asmx"]
但该方法工作正常并且该帖子已添加到数据库中,因为我真的不知道 Flex 在做什么,或者尝试使用不同的 Web 服务调用相同的 URL 怎么样? ?
有谁知道吗
I have a .net webservice which I invoke in flex and then I have form where I insert a new post to the table through another method in the webservice.
But when I try to insert the method, flex generates an error:
[RPC Fault faultString="HTTP request
error"
faultCode="Server.Error.Request"
faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false
cancelable=false eventPhase=2
text="Error #2032: Stream Error. URL:
http://localhost:xxxxx/xxxx/xxxx.asmx"].
URL:
http://localhost:xxxx/xxxx/xxxx.asmx"]
But the method works fine and the post is added to the database. That's little confusing because I really don't know what Flex is doing. And how about having multiple methods in the .NET webservice, does it matter? Or trying to call the same URL with different webservice calls in flex.
Anyone who knows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将“http://localhost:xxxxx/xxxx/xxxx.asmx”复制并粘贴到您的浏览器并确保您可以查看该页面...
还要确保您的 wsdl 参数如下所示:
wsdl="http://localhost:xxxxx/xxxx/xxxx.asmx?wsdl"
copy and paste "http://localhost:xxxxx/xxxx/xxxx.asmx" into your browser and make sure you can view that page...
also make sure your wsdl parameter looks like this:
wsdl="http://localhost:xxxxx/xxxx/xxxx.asmx?wsdl"