4

Using Eclipse, what's the best way to generate a web service class?

0

4 Answers 4

3

Here's a step-by-step instruction on how to generate a web service client in eclipse. Note that you'll need the Java EE distribution of Eclipse, and possibly install a JAX-WS implementation (if you don't want to use the one included in the jdk) first (though I think you can have eclipse do that for you).

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

Comments

2

Most IDE's provide this functionality out of the box. If you're using Netbeans, simply install the webservice plugin and create a new-file using ctrl+n and select New > Other > Web Services > Web Service Client

1 Comment

You should always use a wizzard that generate source code (like the one in IntelliJ, haven't tried that in Netbeans), since eventually you need to tweak it.
1

You can use Apache Axis to generate a Web Service Client. Here is a link that can help you out.

4 Comments

What i will write the web service class? I'm newbie.
@jtahlborn: Nonsense. JAX-WS is an API standard. To actually use it, you need an implementation like Axis, which does NOT come with the JDK.
@Michael Borgwardt - you can write JAX-WS clients in JDK 6 - see the wsimport executable for generating classes from WSDLs. That said, I've had issues with the implementation's error handling.
@Michael - jaxws is certainly included in the jdk. we use both the client and the server from the standard jdk.
1

This is the perfect way to do it. http://wso2.org/library/tutorials/creating-web-service-client-3-steps-using-eclipse. Bear in mind you have to install Axis2 before anything

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.