have java boutique web service example running but dont know how to custom deploy it using .wsdd

I have web service runnig from java boutique example but dont know how to ccustom deploy it using .wsdd file. I read instrustion from the axis documentation which gave the following code:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="MyService" provider="java:RPC">
  <parameter name="className" value="samples.userguide.example3.MyService"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</deployment>

I dont know where to save the file I dont know what else to change?

The jws file is called NHLService.jws and is saved in D:\Tomcat4.1.3\jakarta-tomcat-4.1.31\webapps\axis

and i have NHLServiceClient.java saved in G:\ drive

The code is the exact same as the code in the java boutique tutorial and is available at http://javaboutique.internet.com/tutorials/Axis/

if it helps with sorting out the .wsdd file
acslaterAsked:
Who is Participating?
 
aozarovConnect With a Mentor Commented:
From above:
1. Did you manage to send client requests to NHLService (and get response)?
2. You might want to try to deploy/undeploy using a deployment name...
3. Did you make sure your AdminClient has parameter name="allowedMethods" value="*"/>

What is the exception you are getting?
0
 
aozarovCommented:
Read http://www.onjava.com/lpt/a/1578
it is a small tutorial that will guide you how to deploy Your Code as a Web Service in Easy Steps.
It also suggests an easy way to deploy by copying your java file into the Axis Web application using the extension .jws instead of .java.
0
 
acslaterAuthor Commented:
I have read the document from the link you gave but still not sure on how to deploy the program. It gives it a differnet way to aboove way i mentioned. Can anyone help me with the above way
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
aozarovCommented:
put your wsdd with your class files and use AdminClient to deploy.
java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
     -lhttp://localhost:8080/axis/services/AdminService <your wsdd file>

For more info see: http://ws.apache.org/axis/java/install.html
0
 
acslaterAuthor Commented:
Thats the example of the wsdd from axis is:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="MyService" provider="java:RPC">
  <parameter name="className" value="samples.userguide.example3.MyService"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</deployment>

Have I to change around that before puting them with class files

0
 
acslaterAuthor Commented:
well i actually got it to work. the code was as follows:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="NHLService" provider="java:RPC">
  <parameter name="className" value="NHLService"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</deployment>

How to undeploy?

This is what i have for undeploy
<undeployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="NHLService" provider="java:RPC">
  <parameter name="className" value="NHLService"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</undeployment>
 but mistakes


0
 
acslaterAuthor Commented:
Actually this is what i have for undeploy

<undeployment xmlns="http://xml.apache.org/axis/wsdd/">
 <service name="NHLService"/>
</undeployment>

but getting loads errors
0
 
aozarovCommented:
The above looks ok...
What kind of errors do you get?
Did you manage to send client requests to NHLService?
You might want to try to deploy/undeploy using a deployment name...
e.g:

<deployment name="my_deployment" xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="NHLService" provider="java:RPC">
  <parameter name="className" value="NHLService"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</deployment>

<undeployment name="my_deployment" xmlns="http://xml.apache.org/axis/wsdd/">
 <service name="NHLService"/>
</undeployment>

Also, make sure that your AdminClient can accept any remote calls.
To do this, find the "server-config.wsdd" file in your webapp's WEB-INF directory.
In it, you'll see a deployment for the AdminService. Add or make sure the options are as follows:

<service name="AdminService" provider="java:MSG">
  <parameter name="className" value="org.apache.axis.util.Admin"/>
  <parameter name="allowedMethods" value="*"/>
  <parameter name="enableRemoteAdmin" value="true"/>
</service>
0
 
acslaterAuthor Commented:
i can deploy the web service but problems undeploying it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.