在 Visual Studio 中调试 Web 服务
我正在尝试使用用 VB.NET 编写的示例 FedEx Web 服务代码来检索运费。
该呼叫返回了费率信息,但返回的费率太高,并且与其网站上显示的相同运输参数的费率不匹配。
如果我可以向他们提供 XML 数据(我认为是 SOAP 事务),他们的支持团队愿意调查差异,但我不知道如何解决这个问题。
有人可以帮忙吗?
I am trying to use sample FedEx Web Service code written in VB.NET to retrieve shipping rates.
The call returned rate information, but it returned rates that are way too high and do not match those shown on their web site for the same shipping parameters.
Their support team is willing to investigate the discrepancy if I can provide them the XML data, SOAP transaction I presume, but I do not know how to get at this.
Can someone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我过去曾使用 Fiddler 来监控 http 请求/响应。您可以尝试一下,但我建议您重新访问该示例以检查其逻辑。它可能像数据类型问题一样简单,或者只是在末尾缺少一些零,或者您可能发送了一些错误的参数。
I have used Fiddler in the past for monitoring http requests/responses. You may give this a try but i suggest you revisit the sample just to check it's logic. It could be as simple as a datatype issue or just missing some zeros at the end or you might be sending some wrong parameter.
我认为 Web service Studio 2.0 可以在这方面帮助您。给定 Web 服务的 SOAP 请求响应和 WSDL 绑定。
还有一个 codeplex 替代方案 甚至可以测试 WCF 服务.. 试试吧..
I think Web service Studio 2.0 can help you in this.. It can display XML & SOAP request responses and WSDL bindings of the given webservice.
And there is an codeplex alternative to test even WCF services .. Just give a try..
一种方法是使用 WireShark(免费下载,wireshark.org)嗅探连接。
由此,您可以查看客户端和服务器之间的整个事务,并查看它发送的内容。
One way to do this would be to just sniff the connection using WireShark (free download, wireshark.org).
From this, you could view the entire transaction between client and server, and see what it was sending.
SoapUI 是您的朋友。
SoapUI is your friend, here.
您可以使用 fiddler 或 WCF 跟踪工具:
http://msdn.microsoft.com/en-us/library/aa702726。 ASPX
You could use fiddler or the WCF tracing tool:
http://msdn.microsoft.com/en-us/library/aa702726.aspx