سؤال

I have developed JSON-RPC web service in Web2py. It operates on objects of classes which are defined by me. It accepts two objects and returns a result of custom defined type. I want to generate proxy classes to communicate with this web service. I know there are libraries to create proxy classes from WSDL but how can I do the same for JSON web services. Please suggest.

هل كانت مفيدة؟

المحلول

Many internets ago, there was a proposal for a WSDL-like specification for JSON-RPC (and similar protocols) called Service Mapping Description. (see also here).

Most of the links describing it are now defunct. Google returns some discussion group postings, but not much else. Dojo toolkit did a reasonable implementation of the client-side part of an implementation.

Server-side implementations are even rarer.

Good luck :-(

PS: json-rpc is super simple. What aweful endpoints are you dealing with that you need to auto-generate client-side proxies?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top