File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes newbie to webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "newbie to webservices " Watch "newbie to webservices " New topic

newbie to webservices

Neha Mohit
Ranch Hand

Joined: Apr 25, 2006
Posts: 87
hi ranchers,

I am so new to webservices . I have created an interface and the corresponding class file which implements this interface . Now i have to create the wsdl file ; the deploy and undeploy wsdd files but how do i create them . I googled, but most of the them use ant to do it which too i do not know much .

I am pasting the code down here ; its a simple hello World code . help me please ...

package webservice;
public interface HelloWorldService {
public String sayHelloTo(String userName);
package webservice;

public class HelloWorldServiceImpl implements HelloWorldService {
public String sayHelloTo(String userName) {
String hello = "Hello " + userName + ". You are being watched";
//return the message
return hello;
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Specifically, Axis has the java2wsdl tool. There's an ant task for it, but it can also be run from the command line, as it is is a regular Java application.
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
Apache axis site link has lots of broken links. The TestClient program itself is throwing "connection refused" message.

Preeti Arora
Ranch Hand

Joined: Jan 26, 2007
Posts: 74

I would suggest you to download netbeans IDE and make webservices using it.There are tutorial on how to make webservice in netbeans.
You can deploy on jboss, sun one or tomcat server.
Also make your own ant scripts for wsgen and wsimport.You dont need to make a wsdl document as it is generated by server once webservice is deployed.

I agree. Here's the link:
subject: newbie to webservices
It's not a secret anymore!