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?
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.
posted 8 years ago
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.
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.
posted 8 years ago
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.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database