What is the goal of CXF or Spring WS

I am new to using web services. I am trying to use a SOAP service. It is currently in a test environment. I did it

  • Use wsdl2java to create the wsdl that I copied to my domain folder.
  • Use the API to send requests and receive responses.

As for me, I need CXF or Spring WS to connect a service or whatever I have enough. I ask about it because I saw elsewhere, for example

What I am not getting is where I will generate the property when the environment switches from development to QA to production. And I need to use CXF or Spring WS or are these annotated classes (@WebServiceClient enough) to use SOAP service. Basically, how to connect to different endpoints.

Sorry if this is a rudimentary question. Thank.

+5
source share
1 answer

Spring-WS and Apache CXF are primarily useful for building web services. These are alternatives to the web services that ship with Java6.

You can use them to write clients, but there really isn’t much point if you are really not interested in the alternative API that they provide.

The standard JAX-WS artifacts generated wsdl2javashould be perfectly sufficient for what you need.

As for your second question regarding how to target different prod / QA endpoints, you should ask a separate question for this, with a complete example of what you have.

+5

All Articles