Nagarajan
Nagarajan

Reputation: 432

how to generate the javasource from WSDL?

I have tried Axis2Code generator and Xfire for generating javasource code from WSDL, but it is not able to connect(stating Connection Refused), so is the case with SOAPUI.

But I am able to browse the same WSDL in my browser.

Is there anyother API which can help generate code from WSDL ?

kindly suggest

Upvotes: 2

Views: 32715

Answers (2)

sancho21
sancho21

Reputation: 3643

The simplest one is to use wsimport command provided by your JDK bin directory

wsimport -keep -verbose http://localhost:9000/helloWorld/v1?wsdl -p xjc.generated.hello -d outdir

Upvotes: 1

Abhishek bhutra
Abhishek bhutra

Reputation: 1422

U have to install jwsdp(java web service development pack). Then u can generate java source in many ways.either by ant target <wsdl2java> or directly by cammand line as xjc -wsdl <wsdlurl> -d <directory>.

Upvotes: 6

Related Questions