Dan
Dan

Reputation: 67

Contract-First Web Services using CXF , Spring and JAX-WS

I am currently looking at redeveloping a web service that is currently written in .Net. I would like to port it across to Java using a CXF, Spring, Hibernate and Maven stack.

The WSDL for the service is already available and is well formed so I would like to reuse rather than redeveloping the interface. This will also mean that the clients will not require significant changes in order to use the new service.

I would like to use a JAX-WS type approach to developing the web service, similar to the Java-first approach at http://cxf.apache.org/docs/writing-a-service-with-spring.html. The only difference being that I would like to follow a contract-first approach and ensure that the exact WSDL is used.

Has anyone attempted this before? Are there any good guides online that I can refer to?

Upvotes: 4

Views: 5252

Answers (2)

Paulius Matulionis
Paulius Matulionis

Reputation: 23413

I am actually not seeing in your question what is stopping you from developing it with WSDL first approach.

Check my answer here, for the tutorials you need.

Upvotes: 2

TheWhiteRabbit
TheWhiteRabbit

Reputation: 15768

I guess its pretty straight forward (The WS stack part) 1.Create the Implementation stubs using WSDL (contract) 2.Create Client using WSDL * implement methods using your own logic and syntax both 1&2 is supported by CXF.

good guides here

and here

Upvotes: 0

Related Questions