Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 776
Ankit HTech Avatar asked Feb 28 '26 13:02

Ankit HTech


2 Answers

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.

like image 117
Pratik Avatar answered Mar 02 '26 03:03

Pratik


Some examples over here might help you: Apache CXF project

like image 34
Petter Nordlander Avatar answered Mar 02 '26 02:03

Petter Nordlander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!