axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saliya Ekanayake" <esal...@gmail.com>
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
http://localhost:8080/axis2/services/listServices
    change the port number 8080 if your tomcat is running on a different
port

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

3. change the services.xml to the following

    <service>
       <parameter name="ServiceClass" locked="false">
agenteservidor.VerificaLogin</parameter>
       <operation name="isLogin">
          <messageReceiver class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
       </operation>
    </service>

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

4. Now create the folder structure as follows

    <parent_folder>
                         |____agenteservidor
                         |____META-INF

    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
VerificaLogin.aar)

6. then copy the VerificaLogin.aar into
<tomcat_home>/webapps/axis2/WEB-INF/services/

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.

regards,
Saliya Ekanayake




On 9/20/06, Fabio Alves de Araujo Ebner - DNA Solution <
fabio.ebner@dnasolution.com.br> 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
>
> VerificaLogin.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 VerificaLogin.java -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
>
>

Mime
View raw message