开发者

Recommended library for building soap webservice client in Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

I'm tryi开发者_如何学运维ng to access a soap webservice from a jsp page. I need something simple and lightweight as this is a mockup.

Thanks in advance.


If you have Java 6 or newer, you could use the built-in JAX-WS implementation. Sun has a guide on how to use it to build services. It appears that the client implementation is in Part 2.

Although they show how to generate the webservices client using the NetBeans IDE, you can also use the wsimport command-line client to do it, which is in the Java bin folder.

I believe the Eclipse SoapUI plugin can also generate JAX-WS web service artifacts.


I think Apache CXF and its ability to code generation could be the easier way in Java. Were you to use Groovy and GSP, you could use GroovyWS, which relies upon CXF under the hood, and allows litteraly no-brainer call to web-services (which is by the way possible in most of the cases thanks to support for scripting languages of JVM).


While Java6 has a built-in webservice implementation, it is, in my opinion, overly complex and hard to use. My preference would be for Spring-WS, which is leightweight and easier to use.


u can use spring's functionality. look at the section "17.5.2. Accessing web services using JAX-RPC" @ http://static.springsource.org/spring/docs/2.5.6/reference/remoting.html.

Or if you are not using spring, then generate stubs using the tooling provided by ur Java EE SDK to invoke the service


I would use JAX-WS.


For web-service, I suggest Apache's Axis2 Engine. It's opnesource, you've the source so that you can learn more....

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜