3

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.

3 Answers 3

4

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.

Sign up to request clarification or add additional context in comments.

7 Comments

Can you explain further how to do so?
Sure... do you have apache axis installed?
I am having axis2 Code generator in my eclipse
if you have configured it in eclipse then its cool... you just need to import your wsdl file in your project.. right click on it and select WebServices option and in that click on "Generate JavaBean Skeleton" it will create Stub files for you
I downloaded wsdl from here qa.tritononline.com/HouseKeepingPortal/… and then I copy paste .wsdl file to my eclipse project and when I right clicked and select "Generate javabeans" is says No server can be found and WebServiceProject does not exist. Choose an existing project or use the preferences to configure a server runtime.
|
1

Some examples over here might help you: Apache CXF project

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.