• 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
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Java Web Service

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic