axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saliya Ekanayake" <>
Subject Re: Fw: help
Date Wed, 20 Sep 2006 05:41:13 GMT
Hi Fabio,

Just follow these steps and you should be able to deploy the web service. I
tried your one with few adjustments and it worked.

1. make sure your axis2 is working fine by navigating to
    change the port number 8080 if your tomcat is running on a different

2. your .java file was ok so use the same one.

3. change the services.xml to the following

       <parameter name="ServiceClass" locked="false">
       <operation name="isLogin">
          <messageReceiver class="

    Note: The value of the parameter element should be the fully qualified
name of your service implementation class. Not

4. Now create the folder structure as follows


    put your compiled class file inside agenteservidor folder and the
services.xml in META-INF folder

5. use this jar command inside <parent_folder> jar -cvf
VerificaLogin.aarMETA-INF agenteservidor
    (to verify your .aar is correct open the VerificaLogin.aar and see if
the above folder structure is there. Also check for the
    existence of the services.xml inside the META-INF folder of the

6. then copy the VerificaLogin.aar into

7. now go to http://localhost:8080/axis2/services/listServices and check
whether your service is shown. Click on the link and
    you will get the generated WSDL. If the service is not shown then
restart tomcat and try again.

Hope this will do what you want.

Saliya Ekanayake

On 9/20/06, Fabio Alves de Araujo Ebner - DNA Solution <> wrote:
>  people i need help.. i cant do any ws in axis 2
> i will list step by step what i do..
> 1º i create the .java
> package agenteservidor;
> public class VerificaLogin {
>     public boolean isLogin(String nome, String senha){
>         senha = senha + "aeee";
>         if((nome.equals("binhoca"))){
>             return true;
>         }
>         return false;
>     }
> }
> save in C:\ws
> then i create the subdir Temp, so i have the :\ws\temp
> 2º c:\ws\javac -d temp
> 3º Create in temp the directory META-INF\services.xml
> <service>
>  <parameter name="VerificaLogin" locked="false">SimpleService</parameter>
>  <operation name="isLogin">
>   <messageReceiver class="
> org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>  </operation>
> </service>
> 4º in c:\ws\temp i create the .aar -> :\ws\temp\jar cvf VerificaLogin.aar.
> 5º join Axis2 adm and upload the .aar file..
> 6º te error:
>  *-* <http://localhost:8080/axis2/services/VerificaLogin?wsdl#> <error>
>  * * <description>*Unable to generate WSDL for this service*</description>
>  * * <reason>*Either user has not dropped the wsdl into META-INF or
> operations use message receivers other than RPC.*</reason>
> * * </error>
> please
> anyone help me
> tks

View raw message