Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 3886 invoked from network); 27 Jul 2005 11:07:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2005 11:07:28 -0000 Received: (qmail 21156 invoked by uid 500); 27 Jul 2005 11:07:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 21008 invoked by uid 500); 27 Jul 2005 11:07:25 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 20956 invoked by uid 99); 27 Jul 2005 11:07:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 04:07:24 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DNS_FROM_RFC_POST,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of magnus.m.karlsson@spray.se designates 212.78.202.65 as permitted sender) Received: from [212.78.202.65] (HELO lmfilto01.st1.spray.net) (212.78.202.65) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 04:07:16 -0700 Received: from localhost (localhost [127.0.0.1]) by lmfilto01.st1.spray.net (Postfix) with ESMTP id 8AB09175F1B for ; Wed, 27 Jul 2005 11:07:20 +0000 (GMT) Received: from lmsmtp02.st1.spray.net ([212.78.202.112]) by localhost (lmfilto01.st1.spray.net [212.78.202.32]) (amavisd-new, port 10024) with ESMTP id 10100-06 for ; Wed, 27 Jul 2005 11:07:20 +0000 (GMT) Received: from [192.168.0.2] (h172n4c1o1044.bredband.skanova.com [81.225.51.172]) by lmsmtp02.st1.spray.net (Postfix) with ESMTP id 5E74A8F for ; Wed, 27 Jul 2005 11:07:20 +0000 (GMT) Message-ID: <42E76AE8.4080604@spray.se> Date: Wed, 27 Jul 2005 13:07:20 +0200 From: Magnus Karlsson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Long response times when using IP-adress in endpoint string Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at spray.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I got a strange behaviour of my client to web service communication. I've made just an "echo"-service running in application mode that returns the string that it was called with (i.e public String echo ( String echoString ) { return echoString; }. I call the method from the (fat) client using something like this: String endpoint = "http://localhost:/axis/services/echo"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName( "echo" )); String ret = (String) call.invoke( new Object[] { "Hello!" } ); System.out.println("Sent 'Hello!', got '" + ret + "'"); When I use "localhost" (127.0.0.1 does also work fine) in the the endpoint string everything is tremendously fast, but when I use the IP adress of the machine "http://192.168.0.2:/axis/services/echo" the response time about 7-9 seconds! What could be the reason for this increase? I am running Axis on Tomcat 5.5 in Fedora core 4 with firewall switched off. Maybe Axis is recognising that the request/response does not need to be sent on the network, or maybe Linux does it. Any clues or ideas are more than welcome. Regards, Magnus