Debugging Web Services in Visual Studio

北城余情 提交于 2020-01-14 06:50:33

问题


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?


回答1:


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.




回答2:


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..




回答3:


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.




回答4:


SoapUI is your friend, here.




回答5:


You could use fiddler or the WCF tracing tool: http://msdn.microsoft.com/en-us/library/aa702726.aspx



来源:https://stackoverflow.com/questions/1482845/debugging-web-services-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!