开发者

Consuming WebServices in Java

We are building a开发者_如何学Go web-application and a significant portion of the project will be making real time calls from our servlets to some back end webservices. Some of these calls will be cached depending on the context. We will also have a reqiurement to handle incoming double byte character strings for languages such as Hebrew and CJK.

The platform this web application is in is Java.

What types of frameworks should i use for consuming and calling these web services? Axis 1/2? Does an ESB such as Mule give me some added features that will come in handy?

Clarification point: We will only be consuming webservices. We will not write and provide our own webservices.


Axis2 will work fine but I'd also consider Spring-WS. If this is a basic web service and you don't anticipate alot of consumers then I would shy away from ESBs and such (ESBs are great if you need them but don't force them if you don't need them).


I'd also suggest that you take a look at Apache CXF as well as Apache Axis2.


If you use Java 6 it has built-in support. I use IntelliJ to generate the needed classes from the WSDL (which in turn calls wsimport) - a recent client shipped in a 26 kb jar.


For your requirements an Web service implementation like Axis 2 should be good enough. Also there are other implementations like Spring web services too. Unless you need some serious service orchestration and service mash ups, an ESB will probably be an overkill.


Axis2 is good. You can deploy the WS and then, use the Eclipse wizard to generate the client.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜