Kailash
Kailash

Reputation: 785

Spring WS wsdl to java

I'm looking to use some framework to help generate java client bindings based on wsdl's provided by the service provider.

There are options like Axis and CXF but I'm also looking at Spring-WS.

Although Spring-WS has great support to author the web service in the first place, it doesn't seem to have client side capabilities like wsdl to java generation (unless I am missing something).

Does that mean that Spring WS is not a good option for me?

Upvotes: 1

Views: 3054

Answers (1)

Biju Kunjummen
Biju Kunjummen

Reputation: 49935

You are right, it doesn't provide a mechanism to generate the client side bindings the way Axis or CXF do. However, since it promotes Message based webservices, it will be fairly easy to manually create an adapter around Spring WebserviceTemplate.

And to create the types from the wsdl, java already ships with the xjc tool which can now take in a wsdl(or schema) and generate the JAXB2 compliant java classes.

Upvotes: 2

Related Questions