File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to run the WSLD example from tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to run the WSLD example from tomcat" Watch "How to run the WSLD example from tomcat" New topic
Author

How to run the WSLD example from tomcat

John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Hi everybody,
I am completely new to wsdl. I just downloaded the axis and would like to start some example from jakarta. I can access the happyaxis.jsp. But I could not run the AdminClient as sugguested in installation guide. Any idea or suggestion for WSLD beginner is appreciated. Thanks.

John
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
It would help if you'd post any error messages you got from trying to run AdminClient.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Hi Lasse,
I followed the instruction from <a href="http://ws.apache.org/axis/java/install.html">Jakarta</a>
...<i>Run the admin client
Execute the following command from the samples/stock directory. If you are not in this directory you will get a "java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)" exception.
On Windows java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd On UNIX java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd </i>
But I could not run at all since I search the entire axis diretory which does not contain the suggested class file.
Are you aware of where can I find them? Also, I am does not have any idea where to start with web service. Could you suggest a starting point. I coded a serveral project in Java, J2ee, JDBC, JNDI, JSP/Servlet, EJB, etc. but still have no idea about WSDL and would like to have some example running.
Thank you very much.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Does your AXISCLASSPATH contain axis.jar? That's where the AdminClient class resides...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Also, I am does not have any idea where to start with web service. Could you suggest a starting point. I coded a serveral project in Java, J2ee, JDBC, JNDI, JSP/Servlet, EJB, etc. but still have no idea about WSDL and would like to have some example running.

Have you tried the Axis User's Guide? It's also pretty enlightening to simply browse the samples directory that came with your Axis download. I've studied Axis mostly using these two (not that I would be good at it, but still).
John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Yes, I did. I typed:
javap org.apache.axis.client.AdminClient
It shows the Class api. I followed the instruction of the install page of
Tomcat. The following message was:

C:\project\wsj>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost/axis/services/AdminService deploy.wsdd
Processing file deploy.wsdd
Exception:: java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)
(my port is 80 by default). Where and how do I create the deploy.wsdd file. I am confused when the instruction said that do not worry about that. System automatically generate it.
Thank you very much.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by John McDonald:
C:\project\wsj>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost/axis/services/AdminService deploy.wsdd
Processing file deploy.wsdd
Exception:: java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)
(my port is 80 by default). Where and how do I create the deploy.wsdd file.
The WSDD file should be there. At least my copy of Axis has them in each sample directory. Note that the instructions you posted tell you to execute the command not in "C:\project\wsj>" but in "C:\project\wsj\...\samples\stock>" (quote: Execute the following command from the samples/stock directory.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to run the WSLD example from tomcat
 
Similar Threads
client implementation with Axis2
DOS
general web service definition question
Source code of examples in "Ivan A Krizsan" study guide
Web services and OO Inheritence