| Author |
Using Axis ,but unable to get WSDL for parameterised method
|
ManikKS Kashikar
Greenhorn
Joined: Mar 27, 2006
Posts: 8
|
|
Hi All, I'm very new Web Service , i have installed Axis to use web Service,my problem is when i'm deploying my web application & accessing it on local machine, i'm getting the WSDL file for an empty method call eg Hi() but for the methods like add(int,int) ,unable to get the desired WSDL file for ex http://localhost:8080/axisT/Calculate.jws?method=hi but what is to be written to acess the add method with input values 2 & 3 i'm just talking about local access not the client again , i need a help if somebody could please send me the steps to folowed to access a web service ,all the steps from customizing web.xml to a pgm which is accessing this web service it would be a great help from ur side request for a fast response regards Manik
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
|
|
As I recall, the AXIS distribution includes a sample called "Math" that has a method taking two float numbers and returning a float. Have you checked out that sample? Bill
|
Java Resources at www.wbrogden.com
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
It is not clear what you are trying to accomplish. Usually people use Axis to build SOAP web services.
That is not the way to access a SOAP Web service. That functionality is only available as a "crude HTTP GET access mechanism" (Test a SOAP Endpoint) for a quick test - which explains why there is so little information about it. You'd be advised to try the Calculator example first (JWS (Java Web Service) Files - Instant Deployment ) - samples\userguide\example2 already contains a Java client CalcClient.java. You may want to re-consider your choice of using JWS files:
Important: JWS web services are intended for simple web services. You cannot use packages in the pages, and as the code is compiled at run time you can not find out about errors until after deployment. Production quality web services should use Java classes with custom deployment.
Try Creating Web Services with Apache Axis for a good introduction to Axis Web Services. Then again you might be trying to build a non-SOAP web service with Axis 2.0 - I don't think that is the case.
Originally posted by ManikKS Kashikar: i'm getting the WSDL file for an empty method call eg Hi() but for the methods like add(int,int) ,unable to get the desired WSDL file
I suspect you mean "SOAP response message", not "WSDL file". The WSDL file contains the definition for all the methods offered by a Web service.
Originally posted by ManikKS Kashikar: i need a help if somebody could please send me the steps to folowed to access a web service ,all the steps from customizing web.xml to a pgm which is accessing this web service
Again I�d recommend Creating Web Services with Apache Axis.
|
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
|
 |
 |
|
|
subject: Using Axis ,but unable to get WSDL for parameterised method
|
|
|