• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie to webservices

 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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) {
//message
String hello = "Hello " + userName + ". You are being watched";
System.out.println(hello);
//return the message
return hello;
}
}
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try AXIS or JWSDP
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache axis site link has lots of broken links. The TestClient program itself is throwing "connection refused" message.

Thanks,
 
Preeti Arora
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic