当我通过 WCF 调用肥皂 WS 时,我得到空响应
我正在尝试创建肥皂网络服务的 WCF 使用者。
我已经创建了 Web 服务架构,该架构在请求中传递一个字符串参数并返回一个字符串响应,但是当我调用该服务时,我返回一个空响应。
我查看了正在发生的事情的 TCP 跟踪,一切看起来都正确,我执行了一个帖子并返回了一个 HTTP 200 响应,其中包含肥皂 XML。
我也使用 WebReference 尝试了同样的事情,并且按预期工作(具有相同的请求/200 响应模式),所以我有点难住了。
有没有一种方法可以插入 WCF 来查看为什么它认为没有响应,或者是否有其他路径可以进行调试?
谢谢
Im trying to create a WCF consumer of a soap webservice.
I have created the webservice schema which in the request passes a string argument and gets back a string response, however when i call the service i get back a null response.
Ive looked at the TCP trace of whats going on and everything looks correct, i perform a post and get back an HTTP 200 response with the soap XML contained within.
Ive also tried the same thing using a WebReference and that works as expected (With the same request/200 response pattern), so im kinda stumped.
Is there a way i can plug into WCF to see why it thinks its getting no response or is there some other path i can go down to debug this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了问题所在,我需要用以下内容来装饰合同,以使其能够确定如何解释肥皂响应
I found out what the issue was with this, I needed to decorate the Contract with the following to allow it to work out how to interpret the soap response