Ankit HTech
Ankit HTech

Reputation: 1893

How to generate simple java class from WSDL?

I want to generate a simple java class from this WSDL url:

https://xyz.pqr.com/Portal/Service.svc?wsdl

How can I do this? I am looking for a tool which can generate the code.

Upvotes: 3

Views: 3893

Answers (3)

Petter Nordlander
Petter Nordlander

Reputation: 22279

Some examples over here might help you: Apache CXF project

Upvotes: 1

Pratik
Pratik

Reputation: 1541

You can use Apache Axis.

It comes with a tool i.e. WSDL2Java converter.

using below command.

wsdl2java.bat -uri [URL of WSDL file] (on Windows)

or

wsdl2java.sh -uri [URL of WSDL file] on Linux

Through this you can generate the Stub classes from WSDL.

Upvotes: 4

jwenting
jwenting

Reputation: 5663

Or just use the JDK documentation, from 1.6 on the JDK includes JAX-WS functionality as standard, including the tools to generate client stubs from WSDL using wsimport.

Upvotes: 0

Related Questions