Hi all,
 I am executing the same code in localhost and in TCP2NUMBER2 host. The
problem is that when Axis WS is in localhost it takes about 4 miliseconds to
execute, but when I put in TCP2NUMBER it takes about 2 seconds to execute.

 I would like to know what shall I do to have nearly the same time execution
in localhost and in TCP2NUMBER2 host.

I am putting below the simple code of Axis Execution that undertakes a lot
of time to be executed.

Any help will be welcome!
Daniela



import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;

import javax.xml.rpc.ParameterMode;

//USING ONLY AXIS
public class ClientCallAxis {
   public static void main(String [] args) throws Exception {
       Options options = new Options(args);

          String endpoint = "
http://192.168.1.161:8080/webservices/EscalierBeton.jws";;

//You can change to localhost and make some tests!


      String method = "executeWS"      //This method only return a OK
String.

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

       call.setTargetEndpointAddress( new java.net.URL(endpoint) );
       call.setOperationName( method );
       call.setReturnType( XMLType.XSD_STRING );



       for (int i=0; i<100;i++){

       String ret = (String) call.invoke(new Object [] { });


       System.out.println("Resultado : " + ret);
       }
   }
}

Reply via email to