Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 54390 invoked from network); 29 Jun 2007 02:13:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jun 2007 02:13:11 -0000 Received: (qmail 2694 invoked by uid 500); 29 Jun 2007 02:13:06 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 2505 invoked by uid 500); 29 Jun 2007 02:13:04 -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 2494 invoked by uid 99); 29 Jun 2007 02:13:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2007 19:13:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of csethil@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2007 19:13:00 -0700 Received: by wa-out-1112.google.com with SMTP id k22so1024686waf for ; Thu, 28 Jun 2007 19:12:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uWwL38fVgi2rlDjew1CXOQdNlGGTXIZSIUqKYi1QcE9SW+dEM5GY9UjNTB9XYOvoqniFUs48xGKYR4/iZgkdQ2LcfzsRrXuIOhsSo2bznYG3JaYollz06Yvx+1j2V1lx5QY6I09O4dm8N4tPx/izWvGyv59N9Q/c3sGW19Gez+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oxQdfzOmq0ON+27G72JNiyZf+qSElVOU2IlgYN7vW1S1fLjXIQYVnX5DotSjuAT0KHzK8HlVkA1W73538j9/uw7BJInnk0JrCTICJ8mw0siJ3DwIP/cH33LSEvv9mTtWnXV5BLtVnWj9iNjFA/yeEQ7YZPCy6GzGWyCSMshIT2k= Received: by 10.114.175.16 with SMTP id x16mr2122331wae.1183083160638; Thu, 28 Jun 2007 19:12:40 -0700 (PDT) Received: by 10.114.158.4 with HTTP; Thu, 28 Jun 2007 19:12:40 -0700 (PDT) Message-ID: Date: Fri, 29 Jun 2007 08:12:40 +0600 From: "Thilina Gunarathne" To: axis-user@ws.apache.org Subject: Re: Connection refused error while running SOAP withAttachments In-Reply-To: <459998.97097.qm@web50703.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <459998.97097.qm@web50703.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, > Tried running the client as follows:: > ant run.client -Dfile README.txt -Ddest myReadMe.txt > and again with > ant run.client -Dfile README.txt -Ddest myReadMe.txt -Dhttp.proxyHost=myProxy > -Dhttp.proxyPort=myPort In the sample build script we do not support specifyig anything else than the -Ddest & the -Dfile... When it comes to samples we aimed at simplicity rather than the options :)... For this to work you may need to hand tweak the given ant build.xml or you can run the client program using other means (eg: IDE)... thanks, Thilina > > The below output messages is what I got. Is this because my proxy server needs to be configured to > allow SOAP messages to be transmitted back and forth from my application ? > > Any help is appreciated. > > > Thanks, > Andy. > > > C:\axis2-1.2\samples\soapwithattachments>ant run.client -Dfile README.txt -Ddest myReadMe.txt > > Buildfile: build.xml > > compile: > > check-parameters: > > print-usage: > > run.client: > [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ModuleDeployer deploy > [java] INFO: Deploying module: addressing-1.2 > [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ModuleDeployer deploy > [java] INFO: Deploying module: soapmonitor-1.2 > [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ServiceDeployer deploy > [java] INFO: Deploying Web service: sample-swa.aar > [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ServiceDeployer deploy > [java] INFO: Deploying Web service: version.aar > [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ServiceDeployer deploy > [java] INFO: Deploying Web service: WeatherService.aar > [java] Jun 28, 2007 2:37:08 PM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > [java] INFO: I/O exception (java.net.ConnectException) caught when processing request: > Connection refused: connect > [java] Jun 28, 2007 2:37:08 PM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > [java] INFO: Retrying request > [java] Jun 28, 2007 2:37:09 PM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > [java] INFO: I/O exception (java.net.ConnectException) caught when processing request: > Connection refused: connect > [java] Jun 28, 2007 2:37:09 PM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > [java] INFO: Retrying request > [java] Jun 28, 2007 2:37:10 PM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > [java] INFO: I/O exception (java.net.ConnectException) caught when processing request: > Connection refused: connect > [java] Jun 28, 2007 2:37:10 PM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > [java] INFO: Retrying request > [java] Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: connect > [java] at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221) > [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) > [java] at sample.soapwithattachments.client.SWAClient.transferFile(SWAClient.java:133) > [java] at sample.soapwithattachments.client.SWAClient.main(SWAClient.java:81) > [java] Caused by: org.apache.axis2.AxisFault: Connection refused: connect > [java] at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:3 > 14) > [java] at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201) > [java] ... 5 more > [java] Caused by: org.apache.axis2.AxisFault: Connection refused: connect > [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179) > [java] at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73) > [java] at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:3 > 05) > [java] ... 6 more > [java] Caused by: java.net.ConnectException: Connection refused: connect > [java] at java.net.PlainSocketImpl.socketConnect(Native Method) > [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > [java] at java.net.Socket.connect(Socket.java:519) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [java] at java.lang.reflect.Method.invoke(Method.java:597) > [java] at > org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139) > [java] at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:1 > 24) > [java] at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) > [java] at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) > [java] at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > [java] at > org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558) > [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176) > [java] ... 8 more > [java] Java Result: 1 > > BUILD SUCCESSFUL > Total time: 5 seconds > > > > > > > ____________________________________________________________________________________ > Get your own web address. > Have a HUGE year through Yahoo! Small Business. > http://smallbusiness.yahoo.com/domains/?p=BESTDEAL > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org