简体   繁体   中英

Create WCF Json/RESTful service client proxy

here is my question: Is there any tool to generate one service client proxy when the service is Rest/Json? the service is WCF, and one of the clients is WPF and i need this in order to create the tests with similar code than I test the classic Soap WCF services.

If not What is the best way to achieve this?

Thanks in advance

不,不仅仅是因为没有使用RESTful协议的元数据,例如您从SOAP获得WSDL。

If the service is WCF, you can use the svcutil.exe util to create a client even if you're using JSON or REST as the binding.

This thread has information on it: Client configuration to consume WCF JSON web service

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM