views:

242

answers:

0

Hello I need to generate a Java Client. I tried wsdl2java from Apache CXF Project, it returns "a Null pointer exception" when I give it an http link to a wsdl file.

I also tried the Axis2 Codegen plugin for eclipse. It cannot generate a client stub and prints an error that it cannot resolve a relative path to an .xsd file. The provider of a web service claims that there's no need to download any schemes as they will be downloaded automatically.

So the final decision was to try and use a standart way of doing things in Eclipse and I suppose it is called a WTP project. I selected New->Web Service Client and then pointed to the WSDL file in the internet. This time there weren't any errors while code generation.

What do you think? There's an uncomptability with Axis2 code generation scheme? Do I have to use Axis-1 with such a web services provider?

Can you give me any links or the name of a good book how to work with web services clients when using Axis (WTP)? It differs a lot from what is generated while using AXIS2Codegen plugin for eclipse. There, everything is simple, but WTP generated a whole bunch of java files and I don't know how to use them in a meaningful way?