Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 20572 invoked from network); 20 Dec 2006 11:13:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 11:13:09 -0000 Received: (qmail 50220 invoked by uid 500); 20 Dec 2006 11:13:15 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 50189 invoked by uid 500); 20 Dec 2006 11:13:15 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 50180 invoked by uid 99); 20 Dec 2006 11:13:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 03:13:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 20 Dec 2006 03:13:04 -0800 Received: (qmail 12078 invoked from network); 20 Dec 2006 11:12:33 -0000 Received: from 222.165.171.88 (HELO ?192.168.1.208?) (222.165.171.88) by relay00.pair.com with SMTP; 20 Dec 2006 11:12:33 -0000 X-pair-Authenticated: 222.165.171.88 Message-ID: <45891A8E.1020708@opensource.lk> Date: Wed, 20 Dec 2006 16:42:14 +0530 From: Saminda Abeyruwan User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: HttpComponents Project CC: keith godwin chapman Subject: URL Encoding X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, We have a (WSDL2.0) complaint URL http://localhost:8081/axis2/services/ProbeSpaceService.PathsEndpoint?constructReference/datespace/2006/11/18/16:10:00.000Z-19:30:42.000Z.html to send. But HttpClient gives me the following exception; ============================================================================= org.apache.axis2.AxisFault: invalid port number; nested exception is: org.apache.commons.httpclient.URIException: invalid port number; nested exception is: org.apache.axis2.AxisFault: invalid port number; nested exception is: org.apache.commons.httpclient.URIException: invalid port number at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:497) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295) at org.example.pathsEndpoint.ProbeSpaceServiceStub.constructReference(ProbeSpaceServiceStub.java:164) at pathsEndpoint.PathsEndpointClient.main(PathsEndpointClient.java:30) Caused by: org.apache.axis2.AxisFault: invalid port number; nested exception is: org.apache.commons.httpclient.URIException: invalid port number at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:338) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205) ... 5 more Caused by: org.apache.commons.httpclient.URIException: invalid port number at org.apache.commons.httpclient.URI.parseAuthority(URI.java:2225) at org.apache.commons.httpclient.URI.parseUriReference(URI.java:1968) at org.apache.commons.httpclient.URI.(URI.java:165) at org.apache.commons.httpclient.HttpMethodBase.getURI(HttpMethodBase.java:261) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:382) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:534) at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:174) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:334) ... 6 more ================================================================================== This is due to the "6:10:00.000Z-19:30:42.000Z.html" part in the URL. Could you please give me a solution to escape these characters. Thank you Saminda -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFiRqOYmklbLuW6wYRAk2wAJ9ccVqB+uLmMmllVMhc++UML9h0MQCgrzXJ OsjoEJcquMV9qRt+JAvq5KQ= =wml4 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org