Hi Fabio,

I think this link will help you to understand question number 1.

http://www.developer.com/services/article.php/3613896

regards,
Saliya Ekanayake

On 9/20/06, Fabio Alves de Araujo Ebner - DNA Solution <[EMAIL PROTECTED] > wrote:
Saliya and Robert tks.. run :D..
 
now i have some doubts heheh lets go:
1º in that tag : <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
   what RPCMessageReceiver mean? and why in axis tutorial is RawXMLINOutMessageReceiver and RawXMLINOnlyMessageReceiver
 
2º i can send any file(.xml and .pdf) to another client(vb, delphi, c, etc);
 
tks
 
----- Original Message -----
Sent: Wednesday, September 20, 2006 2:41 AM
Subject: Re: Fw: help

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.aar META-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 <[EMAIL PROTECTED] > 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:
- <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



  • Re: Fw: help Fabio Alves de Araujo Ebner - DNA Solution
    • Re: Fw: help Saliya Ekanayake

Reply via email to