This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Web Services and the fly likes Unable to use the WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to use the WS " Watch "Unable to use the WS " New topic

Unable to use the WS

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Hey all.
this is my first day with web services and I need some help.
I have created a simple class representing a book (name and author fields) and a BookStore class which creates some books.
BookStore is the class which I want to make it a web services.
I have put Book.class and BookStore.class under %TOMCAT_HOME%\webapps\axis\WEB-INF\classes
I create the following deploy.wsdd file

hen wrote the following command :
java org.apahce.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
every thing is ok here.
then I wrote the following command :
java org.apache.axis.wsdl.WSDL2Java -v bookservice.wsdl
(I got bookservice.wsdl from : http://localhost:8080/axis/services/bookservice?wsdl)
now, I got the following files :
I have compiled them and put them in :
my servlet is getting the number of the book to search from a jsp page and then use the service
to find it and add it to session scope.

I tried a standalone client and it works correctly except the servlet.
please some help.
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Originally posted by John Todd:
I tried a standalone client and it works correctly except the servlet.
please some help.

No error messages
Did you checked the tomcat log. If standalone client can work then the servlet client should work unless you miss some class on the classpath.

Spritle Software Blogs
Have you checked out Aspose?
subject: Unable to use the WS
It's not a secret anymore!