wood burning stoves 2.0*
The moose likes Web Services and the fly likes Java Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Java Web Service" Watch "Java Web Service" New topic
Author

Java Web Service

Lydia Vaughan
Greenhorn

Joined: Jul 06, 2010
Posts: 14
Hi,

I'm new to the Java Web Service Development. I'm currently using the Eclipse IDE and my server is JBoss. I found several resources, many which use NetBeans, that show how to create a Java Web Service in the IDE. However, once I have created the Web Service in Eclipse, it doesn't seem to deploy to my JBoss server, although it is running. I was looking for the web service by using this link: http://localhost:8080/jbossws, but my web service was not available. I'm trying to implement the web service in an already established Web application but don't know how to configure my build.xml and another files that I need. Any ideas?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
I'm trying to implement the web service in an already established Web application but don't know how to configure my build.xml and another files that I need.


Web services is an integration technology, not an implementation technology.

So, a web service is not something that you should attempt to implement into an application. A web service is for enabling communication between two applications.

Application A uses a Web Service X to communicate with Application B

Application U uses a Web Service X to communicate with Application B

Application M uses a Web Service X to communicate with Application B

Application W uses a Web Service X to communicate with Application B


So, using the above as an example, the functionality of Application B is exposed via web service. Many applications can communicate with Application B without having a direct syntax-level dependency, or really any technical dependency on the technology of Application B, e.g. platform, OS type, programming language, etc.

Hope this helps.
Lydia Vaughan
Greenhorn

Joined: Jul 06, 2010
Posts: 14
Thank you Frank for your reply. However, I'm looking for something more. I understand that a web service is a tool for applications to communicate. Basically I need to know how to deploy a web service using JBoss.
mahammad gouse
Greenhorn

Joined: Jul 04, 2010
Posts: 15
Hi,
first of all you need to develop webservice like it may be a stateless session bean or a normal bean,
first of all you need to expose your bean as webservice.
let me tell you in j2EE 1.5 it uses JAX-WS api.
so annotate the class as @webservice and method as @webmethod.
when you deploy your web app as normal web app in any web app server it resolves the annotations and it creates a wsdl file also.

Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Lydia, this thread might have better luck in the JavaRanch JBoss forum since you are looking for JBoss specific information. Or, you might find help at the JBoss Community on the JBoss dot org website.

Good luck!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web Service