首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > java 5客户端框架相当任意定义的Web服务

java 5客户端框架相当任意定义的Web服务

资 源 简 介

Java 5 Client Framework for Fairly Arbitrarily Defined Web Services Framework for creating Java 5 clients for web services that use common designs with more or less strict definitions - such as XML over HTTP, JSON RPC etc. The framework uses a "declarative" style with the syntaxical advantages Java 5 gives. This example creates a client object for Google"s translation service: ``` // Service definition: public interface GoogleTranslate { @FadService( requestUrl = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair={0}&q={1}", responseEncoding = FadService.ResponseEncoding.JSON, responseSubhierarchy = "responseData.translatedText" ) public String translate(String languagePair, String text); } // Usage: GoogleTranslate googleTranslate = FadClient.create(GoogleTranslate.class); System.out.println("What does "rød grød med fløde" mean?"); System.out.

文 件 列 表

fadwsclient-1.00-beta
build.xml
fadwsclient.iml
production
test

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP