Are you also in controll of the service too...
If so if you don't mind please post the services.xml and the service
class.. Also please check the method names of your service class...

Thanks,
Thilina

On 3/8/07, jpsabadini <[EMAIL PROTECTED]> wrote:

Hi all,
I´m getting a org.apache.axis2.AxisFault: ServiceClass does not implement
required method of the form OMElement login(OMElement e) when I´m executing
a test client that consumes a WS.

The client is:

package com.vmon.ws.mobile;

import java.rmi.RemoteException;
import org.apache.log4j.Logger;
import com.gauss.vmon.ws.mobile.xsd.CatalogDataType;
import com.gauss.vmon.ws.mobile.xsd.GetCatalog;
import com.gauss.vmon.ws.mobile.xsd.GetCatalogResponse;
import com.gauss.vmon.ws.mobile.xsd.Login;
import com.gauss.vmon.ws.mobile.xsd.LoginResponse;

public class MobileServiceClient {

  private static Logger log = Logger.getLogger(MobileServiceClient.class);
  protected String className =
this.getClass().getName().substring(this.getClass().getName().lastIndexOf(".")
+ 1);

  public static void main(String[] args)
      throws Exception {

    try {

      MobileServiceStub mobileStub = new
MobileServiceStub("http://alpha.vmonitoring.com/services/MobileService";);
      mobileStub._getServiceClient().getOptions().setManageSession(true);

      Login login = new Login();
      login.setUsername("asd");
      login.setPassword("asd");

      LoginResponse loginResponse;

      loginResponse = mobileStub.login(login);
      System.out.println("1: " + loginResponse.getStatus());

      loginResponse = mobileStub.login(login);
      System.out.println("2: " + loginResponse.getStatus());

      GetCatalog getCatalog = new GetCatalog();
      getCatalog.setUsrId(0);

      GetCatalogResponse catalogResponse =
mobileStub.getCatalog(getCatalog);
      CatalogDataType[] cameras = catalogResponse.getCatalogData();

      for (int i = 0; i < cameras.length; i++) {
        System.out.println(cameras[i].getObjId() + ", " +
cameras[i].getName());
      }
      System.out.println("FIN");
    }
    catch (RemoteException e) {
      e.printStackTrace();
    }
    finally {
    }
  }
}

The exception occurs at  loginResponse = mobileStub.login(login);

I don´t know what the exception is!! Any clue?

Thanks in advance.


--
View this message in context: 
http://www.nabble.com/AxisFault%3A-please-help%21%21-tf3364506.html#a9360765
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to