• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Utter confusion over Web Services

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I've been trying to read up on Web Services, in order to explore an alternative to our current system architecture. I confess that I'm new to the subject, and the reading I've done has left me utterly confused. I'm afraid that the forum FAQ has not helped a great deal - I'm under strict time constraints and simply wish to set up a basic "Hello World" service which I can then explore further in order to get a handle on how it all works.

If we implement any kind of Web Service, then it is likely that it will utilize the JBoss application server, so I've been trying to read up on JBoss related Web Services (although we do not use EJB). JBoss does provide some documentation on the subject, and this includes a quick start guide.

I've tried following the quick start guide, but I've gotten stuck - as my classes do not compile, as my IDE cannot resolve the imports javax.jws.WebService, javax.jws.WebMethod and javax.jws.soap.SOAPBinding. There is no mention I can find of where the jar files for these are located, but they do not appear to be anywhere under the JBoss home directory. The Guide does provide a "Setup your development environment", which simply tells you to have Java 5 and Ant installed - both of which I have.

Has anyone else used Web Services with JBoss, or followed this guide? Do you know what the missing jar files are and where I can download them? Am I just being a bit thick? Any help would be appreciated.

Regards

Jon

Further notes: I have JBoss 4.0.3 installed, and use Java 1.5.0_07 and Ant 1.6.5; so from reading the tutorial I should have all of the libraries that are required..

Further notes: There is this bit of text in the guide:

If you ask yourself which JAR files are required to setup your IDE, take a look at the build file (build.xml) that ships with the sample distribution.


I don't seem to have any build files, except ones for example build files for JMS and something called "Varia".
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this link http://www.roseindia.net/webservices/


It may be useful
 
author
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javax.jws.WebService, javax.jws.WebMethod and javax.jws.soap.SOAPBinding are Java EE 5 annotations. Unless you have the Java EE 5 JARs on your IDE classpath, they will not be resolved.

I am not that familiar with JBoss, but I know that JBoss 4.0.3 does not support Java EE 5. You should also have their JBossWS installed (which you probably do since you are referencing its Quick Start guide). You will need to have the JBossWS JARS on the IDE classpath in order to resolve those imports.

Good luck!
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic