2

I have a wsdl file with me now. Using cxf 's 'wsdl2java' command,i convert wsdl to java classes.

How I can have my own implementation classes for the interfaces generated after wsdl to java conversion.?BAsically I need to do the following: 1.convert wsdl to java classes. 2.Write implementation classes for the classes generated. 3.Inject cxf into this.(cxf.xml and web.xml for apache CXF) 4.Package it to a war.

I hardly see a tutorial/help for this bottom up approach(ir,wsdl to java conversion mechanism)

Can someone give some pointers for this?

sskumar86
  • 161
  • 1
  • 2
  • 13

1 Answers1

5

In order to create your own implementation of the web service you have to create a class(s) and implement the interface(s) generated from the WSDL file you have.

Here is full example of already created web service with Apache CXF and Maven using WSDL first approach. Just download sources, build it, deploy it, see how it works. It also contains all test with the client.

If you want to make only SOAP requests and see the response without java code you can use SOAP UI tool for that.

See also:

  1. http://camel.apache.org/tutorial-example-reportincident-part1.html
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143