Hi,

I'm having trouble with client connection to my web service. Here is
what I did: 

Create family.wsdd file:

<deployment xmlns="http://xml.apache.org/axis/wsdd/";
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  <service name="family-accounts" provider="java:RPC">
    <parameter name="className" value="disney.dis.family.Family"/>
    <parameter name="allowedMethods" value="*"/>
  </service>
</deployment>


Compile my source files:


$ ls
family-accounts.wsdl  FamilyIF.java~  Family.java~  family.wsdd~
FamilyIF.java         Family.java     family.wsdd
$

$ javac -d ../classes/ *.java 


Generate a client-side WSDL file from my Java source files. I used
this command:

   $ java org.apache.axis.wsdl.Java2WSDL -client \
     -l http://10.196.130.245:8080/axis/services/family-accounts \
     -o ~/dev/family-accounts/family-accounts \
     dis.family.Family

My source files are: 

   FamilyIF.jave (interface)
   Family.java   (class implementing the interface)


I get a resulting "family-accounts.wsdl" file.  Looking at the WSDL, 
I see the following snippet at the bottom:

   <wsdl:service name="FamilyService">

      <wsdl:port binding="impl:family-accountsSoapBinding" 
                 name="family-accounts">

         <wsdlsoap:address
location="http://10.196.20.101:8080/axis/services/family-accounts"/>

      </wsdl:port>

   </wsdl:service>

When my client tries to connect he gets NoClassDefFoundError. 

"Family" is the class that should be bound to the web service (the 
main entry point for the execution). 

Why is the name of the service "FamilyService" instead of "Family"
in the wsdl snippet above?  What step am I missing?

Is my target URI wrong?  Am I correct in specifying the 
../services/. component in the web service URI?  

Should my URI be ../services/Family ? 



Many thanks,

Vartan




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to