Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 38580 invoked from network); 20 Sep 2006 19:39:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 19:39:21 -0000 Received: (qmail 7464 invoked by uid 500); 20 Sep 2006 19:39:13 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 7437 invoked by uid 500); 20 Sep 2006 19:39:13 -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 7426 invoked by uid 99); 20 Sep 2006 19:39:13 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 12:39:13 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=davanum@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.224] ([66.249.82.224:28398] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id E2/2C-01963-BB891154 for ; Wed, 20 Sep 2006 12:38:40 -0700 Received: by wx-out-0506.google.com with SMTP id s8so341772wxc for ; Wed, 20 Sep 2006 12:38:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q4oOSajR+v0zXaM44tYzLfziJIHBCzPBaTOVZn01Jq+eZb9ixVoFn8eFYtDvhBkI7MqsyXqrU06/tOUysWkNhX8HeWP5TZus94NBF4L+2J8qMWiRUnGcBe4UJShawGEt/IQNjgeCQhHQaFj3Sj2BDaJXgjsPTw857OlaUNSmzn0= Received: by 10.70.78.8 with SMTP id a8mr25291481wxb; Wed, 20 Sep 2006 12:38:06 -0700 (PDT) Received: by 10.70.96.17 with HTTP; Wed, 20 Sep 2006 12:38:04 -0700 (PDT) Message-ID: <19e0530f0609201238q46a48692m8e97c6d6ba6158e2@mail.gmail.com> Date: Wed, 20 Sep 2006 15:38:05 -0400 From: "Davanum Srinivas" Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: No content length In-Reply-To: <4FB7CEB24A394F4BAD59FD3B669A32B30C1A955A@uskihsvpexch04.kih.kmart.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4FB7CEB24A394F4BAD59FD3B669A32B30C1A955A@uskihsvpexch04.kih.kmart.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N yep! On 9/20/06, Doolittle, Todd wrote: > > > > I think I figured it out. In the client stub's contstructor I turned off > "CHUNKED" for the HTTP transport which now gives me a Content-Length head= er. > > _serviceClient.getOptions.setProperty(HTTPConstants.CHUNKED, false); > > Was that the right way to do it? > > > > -----Original Message----- > From: Doolittle, Todd > Sent: Wednesday, September 20, 2006 9:51 AM > To: axis-user@ws.apache.org > Subject: No content length > > > I am trying to hit a public service (TerraService) with a client generate= d > from last night's Axis 2 build. I believe the service is a ..NET service= . > I created the client from the WSDL2JAVA tool based on the WSDL. When I s= end > a request, I get a fault back from the server stating that the > Content-Length header is missing. Using tcpmon, I checked and it does lo= ok > like it is missing. Is there some way to get Axis 2 to put the > Content-Length header on the request? > > Here is the output from tcpmon: > > POST /TerraService2.asmx HTTP/1.1 > > SOAPAction: > http://terraservice-usa.com/ConvertPlaceToLonLatPt > > User-Agent: Axis2 > > Host: terraservice-usa.com > > Transfer-Encoding: chunked > > Content-Type: text/xml; charset=3DUTF-8 > > 183 > > xmlns:soapenv=3D"http://schemas.xmlsoap..org/soap/envelope/"> /> xmlns:ns1=3D"http://terraservice-usa.com/">TroyMichiganUSA > > 0 > > > Here is the fault that was returned=85 > > Exception in thread "main" org.apache.axis2.AxisFault: HTTP Transport err= or > : '411' - 'Length Required'; nested exception is: > > org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Lengt= h > Required'; nested exception is: > > org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Lengt= h > Required'; nested exception is: > > org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Lengt= h > Required' > > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Commons= HTTPTransportSender.java:231) > > at > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:641) > > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOpera= tion.java:355) > > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOp= eration.java:285) > > at > com.terraservice_usa.TerraServiceStub.ConvertPlaceToLonLatPt(TerraService= Stub.java:814) > > at GetLonLat.main(GetLonLat.java:25) > > Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '411' - > 'Length Required'; nested exception is: > > org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Lengt= h > Required' > > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWi= thCommons(CommonsHTTPTransportSender.java:335) > > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Commons= HTTPTransportSender.java:210) > > ... 5 more > > Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '411' - > 'Length Required' > > at > org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSende= r.java:141) > > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWi= thCommons(CommonsHTTPTransportSender.java:329) > > ... 6 more > > > > ________________________________ > > > > > This message, including any attachments, is the property of Sears Holdin= gs > Corporation and/or one of its subsidiaries. It is confidential and may > contain proprietary or legally privileged information. If you are not the > intended recipient, please delete it without reading the contents. Thank > you. --=20 Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org