What is the best and most comprehensive SOAP library available for a non-serving request

My google-fu does not give very promising results for the SOAP library in java, they are mainly intended for setting up SOAP services where I need to contact such a service.

I understand that SOAP is just a matter of constructing and parsing XML, but ideally, I would like objects to be displayed and processed transparently.

So far I have looked at Apache Axis and X-Fire (now Apache CXF), and both seem to work more with SOAP services than with SOAP services.

Can someone lead me to any gem for working with SOAP or have personal experience with SOAP services in Java.

+7
source share
2 answers

You can use a JAX-WS implementation to request a SOAP service, such as Project Kenai or the default version included in JDK 6+.

This article provides an example of setting up a SOAP client (as opposed to a server) using the standard. Given WSDL, you should use standard tools for client . This is another example.

+4
source

The structures you mentioned produce the client code.
For example. for CXF How to create a client
They not only deploy a web service. They also provide client code for their use!
The idea is that you run the appropriate automatic tool ( wsdl2java for CXF or wsimport , which comes with Java for jax-ws) to analyze the WSDL service, and client stubs and necessary artifacts will be created to communicate with the web service.
Then in your code, you use client stubs to communicate with the web service, while marshalling / unmarshalling from XML to java types is transparently handled by the framework.
There is also JAX-WS that you can look at, and if you want something simple, you can use SAAJ to send soap messages directly to the endpoint of the web service.
Within the framework that you mentioned, you should look at the parts that relate to the generation and consumption of client web services

+4
source

All Articles