开发者

.NET Web Service Local Testing

It's been a while since I've worke开发者_如何学JAVAd with web services in .NET (back around version 2.0), but I remember you used to be able to visit the services directly and there would e a magic testing form so you could simulate requests. That seems to have gone away. Is there a Web.config value I can use to turn it back on again? Did I dream the whole thing up?

This is a tough one to Google because most of the results are about testing web services. The answer here suggests what I'm talking about might have gone away in the transition from asmx to wcf.


That feature definitely doesn't exist in WCF. It might still exist in ASMX web services, but it's really not the technology of choice since WCF was introduced.

That said, might I recommend that you use WCF, and then an external tool to perform these operations? One such tool is WCF Storm, which allows you to specify the endpoint and then make calls and pass values to it.

There is also a "completely free" (their words, not mine) version called WCF Storm Lite, which has no fees associated with it, but with limited functionality (although it will still do exactly what you wish).


Use Wcf Test Client. All you have to do is to point it to a WSDL.


Regular SOAP services which accept simple parameters (native data types) can still be tested in this way. That hasn't changed. However, if your service accepts complex parameters then the form won't be presented. Nor would a form for a WCF service, but a WCF Test Client can be used for that.


a similar form exists in wcf. It appears when you add a service reference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜