• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Web Service

 
Lydia Vaughan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic