• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

newbie to webservices

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
}
}
 
Ranch Hand
Posts: 290
Oracle Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try AXIS or JWSDP
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apache axis site link has lots of broken links. The TestClient program itself is throwing "connection refused" message.

Thanks,
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic