This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Java Web Service  RSS feed

 
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?
 
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.
 
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!
 
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
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!