from Arun Ton:
This is my main in the test Client,
it will call the webservice and get the result.
public static void main( String[] args ) throws Exception{
CalculatorService locator = new CalculatorServiceLocator();
Calculator service = locator.getCalculator( );
System.out.println( "2 + 3 = " + service.add( 2, 3));
}
The first two lines are quite fast,
it becomes very slow when comes to service.add( 2, 3);
what may be the reason do you think.
Many thanks.
That is the line that calls the service, which means it could still be any of client, network and server, as I said in my message. You need to take timings
1) before the call on the client side
2) when the call arrives on the server side
3) when the call returns on the server side
4) when the call returns to the client side
For starters, using the value from System.currentTimeMillis would be sufficient (assuming that client and server are clock-synched). Once you have these numbers, one can start to speculate where the problem is.
Which server are you using? Are there any error messages on the server?
[ October 31, 2005: Message edited by: Ulf Dittmer ]