Hi there.

 

I'm working on my first web service and could use some help.

The problem I've got is related to accessing a web service in an
existing web application.

I've embedded Axis into the app using the advanced installation steps
and verified it using happyaxis.jsp without a problem.

My question/problem deals with how to deploy the web service.

My web app can be accessed at: http://localhost:8080/Jaru.

I created a simple calculator test web service.

I create the wsdl using: java org.apache.axis.wsdl.Java2WSDL
-l"http://localhost:8080/Jaru/services/Calculator"; -n urn:Calculator
-p"com.cpcus.jaru.webservices.calc2" urn:Calculator -o Calculator.wsdl
com.cpcus.jaru.webservices.calc2.CalcIF

I create the java from wsdl using: java org.apache.axis.wsdl.WSDL2Java
-o C:\CPC\JARU\Software\Source\JavaCode -d Session -s -p
com.cpcus.jaru.webservices.calc2.ws Calculator.wsdl

I deploy it using: java org.apache.axis.client.AdminClient
-lhttp://localhost:8080/Jaru/services
C:\CPC\JARU\Software\Source\JavaCode\com\cpcus\jaru\webservices\calc2\ws
\deploy.wsdd

 

When I run my test client in Eclipse I get: Exception in thread "main"
java.lang.NoSuchMethodError:
com.cpcus.jaru.webservices.calc2.ws.CalcIFService.getCalcualtor()Lcom/cp
cus/jaru/webservices/calc2/ws/CalcIF;

            at calculator.client.CalcClient.main(CalcClient.java:21)

 

I know I must being doing something wrong but I can't figure out what it
is.

 

The interface I wrote and its implemented java are in
C:\CPC\JARU\Software\Source\JavaCode\com\cpcus\jaru\webservices\calc2.

The output of the wsdl2java is in
C:\CPC\JARU\Software\Source\JavaCode\com\cpcus\jaru\webservices\calc2\ws

 

Any help would be GREATLY appreciated!

I've spent a few days on this already and I'm going nuts.

 

Thanks,

Marc

 

Reply via email to