0 Replies Latest reply on Jul 12, 2004 4:29 AM by diegomemo

    return

    diegomemo Newbie

      Hi,
      i'm developing a simple client/server service. This is a my programs:

      SERVER--------------------
      public class testHelloWorld
      {
      public testHelloWorld() {}

      public ?????? getHelloWorldMessage(String name){
      String a=....;
      byte[] b=......;
      return ?????;
      }
      }

      CLIENT-----------------------
      String endpoint ="http://localhost:8080/jboss-net/services/testHelloWorld";
      String methodName = "getHelloWorldMessage";

      Service service = new Service();
      Call call = (Call) service.createCall();

      call.setTargetEndpointAddress( new java.net.URL(endpoint) );
      call.setOperationName(methodName);

      call.addParameter("name",org.apache.axis.Constants.XSD_STRING,ParameterMode.IN);
      call.setReturnType(?????);

      ????? ret = (??????) call.invoke( new Object[] { "AXIS!" } );


      I must return "a" and "b" variable.
      How can i do ?


      thanks