已收到 Web 服务响应但未绑定到 event.result
我正确获得了 webservice(spring WebService) 响应,但 event.result 对象为 null。我可以在 event.message.body 变量中看到 SOAP 响应正文。
## 肥皂反应 ##
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/><SOAP-ENV:Body><getUserUserTasksResponse xmlns="http://ws.burr.com/BurWS/9_0">
<foundTasks>
<taskList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Task">
<description>Task1</description>
<estartDate>2011-03-29</estartDate>
<astartDate>2011-03-29</astartDate><
efinishDate>2011-03-29</efinishDate>
<afinishDate>2011-03-29</afinishDate>
<status>Start</status><
</taskList>
</getUserUserTasksResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I get the webservice(spring WebService) response properly ,but the event.result object is null.I can see the SOAP response body in the event.message.body variable.
## Soap Response ##
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/><SOAP-ENV:Body><getUserUserTasksResponse xmlns="http://ws.burr.com/BurWS/9_0">
<foundTasks>
<taskList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Task">
<description>Task1</description>
<estartDate>2011-03-29</estartDate>
<astartDate>2011-03-29</astartDate><
efinishDate>2011-03-29</efinishDate>
<afinishDate>2011-03-29</afinishDate>
<status>Start</status><
</taskList>
</getUserUserTasksResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能正在使用 resultFormat="object" 并且服务器返回无效响应。尝试设置 resultFormat="e4x",如果结果通过,那就是问题所在。
使用 soapUI 之类的东西来验证服务器响应 XML,因为 Spring 没有发送无效响应的问题,这会导致各种问题Flex 的问题。
Chances are that you're using resultFormat="object" and the server is returning a non-valid response. Try setting resultFormat="e4x", and if the result comes through, that's the problem.
Use something like soapUI to validate server response XML, as Spring has no problems sending out invalid responses, which causes all sorts of problems for Flex.