File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "newbie to webservices " Watch "newbie to webservices " New topic
Author

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) {
//message
String hello = "Hello " + userName + ". You are being watched";
System.out.println(hello);
//return the message
return hello;
}
}
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

Try AXIS or JWSDP


OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
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.


Ping & DNS - my free Android networking tools app
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.

Thanks,
Preeti Arora
Ranch Hand

Joined: Jan 26, 2007
Posts: 74
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie to webservices
 
Similar Threads
WS-Security
Deploying a webservice with isolated namespace
Inheritance / Komposition of multiple abstract classes
WSDL2Java Question
Exception thrown While Running a Client