Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 43153 invoked from network); 9 Apr 2008 11:53:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 11:53:04 -0000 Received: (qmail 87090 invoked by uid 500); 9 Apr 2008 11:52:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 87064 invoked by uid 500); 9 Apr 2008 11:52:55 -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 87053 invoked by uid 99); 9 Apr 2008 11:52:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 04:52:55 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pzfreo@gmail.com designates 66.249.82.226 as permitted sender) Received: from [66.249.82.226] (HELO wx-out-0506.google.com) (66.249.82.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 11:52:10 +0000 Received: by wx-out-0506.google.com with SMTP id r21so2362115wxc.28 for ; Wed, 09 Apr 2008 04:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=GehPvYmg9q8ccResxJY+XCyWazaj6ZmY0ZjEhzx3/q0=; b=osdciNIb27hnxqlSgDhjlPvHPOQPtaDVuU6iIPx3zA2PhUtQ2Ol0C9c15qGEG+wM2wnfQM1tYA/50cQR3SlQ471NOD2juJ2BFJSEMo0llbzjpiLWKmjVf8Kik/OjV5NtyBU1JrXj+JgbEI71tvGSnoessZ55KRR2OGyqEd5sE/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mw1YOywKEa2fGolBHHg9qfUxONJgXL73q4i/Pmvt+jKq9cVh3pSp/EAS57iKLMPJXwWyJPe1G6QWyPdUdxE4pXHR/1peBpfDKzq8mqSHxi+sAhcAMlxfBbPKtRzsu6VGjm60O4pZk/PBVAFg32qQ/NjDnSNOadAxSBLRPv5rm6Q= Received: by 10.141.161.6 with SMTP id n6mr17918rvo.41.1207741941071; Wed, 09 Apr 2008 04:52:21 -0700 (PDT) Received: by 10.140.171.8 with HTTP; Wed, 9 Apr 2008 04:52:21 -0700 (PDT) Message-ID: <88f5d710804090452n2dda00efta0a7b3bcab2adb60@mail.gmail.com> Date: Wed, 9 Apr 2008 12:52:21 +0100 From: "Paul Fremantle" To: axis-user@ws.apache.org Subject: Re: terminating zero problem in SOAP request In-Reply-To: <64252.195.226.232.5.1207736315.squirrel@mail.avanzasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <25455.195.226.232.5.1207735298.squirrel@mail.avanzasolutions.com> <88f5d710804090305t6b695effwddbbfeab9b5256e@mail.gmail.com> <64252.195.226.232.5.1207736315.squirrel@mail.avanzasolutions.com> X-Virus-Checked: Checked by ClamAV on apache.org I'm not an expert on Axis1, but I found this blog entry: http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html Paul On Wed, Apr 9, 2008 at 11:18 AM, Yasir Arsalan wrote: > You mean the web service server should understand it? if yes, then what if I > turn off the chunking at the client side, would there be any performance > issue? I am using the Axis 1.4 libraries, can you please just mention me the > class name and method name to turn off the chunking? I will appreciate for > your help. > > Regards > > > > > > This is a standard example of HTTP Chunking which is part of the HTTP > > 1.1 spec. The server should understand it. So really this is a bug in > > your server :) > > > > If you look at: > > Transfer-Encoding: chunked > > 387 > > > > that basically says there is a chunk of 387 bytes coming. The 0 > > indicates the size of the next chunk (0) meaning the message is > > finished. > > > > You can fix this by turning chunking off - the code is different if > > you are on Axis1 or Axis2. > > > > Paul > > > > On Wed, Apr 9, 2008 at 11:01 AM, Yasir Arsalan > > wrote: > >> > >> > >> I am having a problem in making a call using Axis client. I have > >> generated > >> the client in java using wsdl file. when I make the call using this > >> client > >> it generates a SOAP request message, that I have pasted below, which > >> contains a terminating zero in it . This terminating zero is creating > >> problem for the web service server to recognize the recieving request > >> message as a valid xml format for SOAP. Does any body have idea why this > >> terminating zero is for? How can I remove this terminating zero from the > >> SOAP request. SOAP request & response messages are as follows: > >> > >> > >> *********************************SOAP > >> Request************************************************* > >> > >> POST http://ws-server:1080/eproxy/service/security HTTP/1.1 > >> Content-Type: text/xml; charset=utf-8 > >> SOAPAction: "http://ABC.com/Security/LoginExtended" > >> User-Agent: Axis/1.4 > >> Host: vs-devbwb:1080 > >> Proxy-Connection: Keep-Alive > >> Transfer-Encoding: chunked > >> 387 > >> > >> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > >> xmlns:xsd="http://www.w3.org/2001/XMLSchema" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > >> > >> >> xmlns:ns1="http://ABC.com/Common"> > >> CorporateAD > >> APPACCTEST > >> ABC > >> CorporateAD > >> APPACCTEST > >> ABC > >> > >> > >> > >> SystemIPAddress > >> 10.0.223.120 > >> > >> > >> UserIPAddress > >> 10.0.31.52 > >> > >> > >> > >> > >> > >> > >> > >> state > >> > >> > >> 0 > >> > >> > >> > >> ******************************************SOAP > >> Response************************************** > >> HTTP/1.1 500 Internal Server Error > >> Connection: close > >> Date: Mon, 07 Apr 2008 16:56:51 GMT > >> Server: Microsoft-IIS/6.0 > >> X-Powered-By: ASP.NET > >> X-AspNet-Version: 1.1.4322 > >> Content-Length: 376 > >> Cache-Control: private > >> Content-Type: text/xml; charset=UTF-8 > >> > >> > >> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > >> > >> > >> >> > xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/">tns:Client.InvalidMessage > >> XML parse failed to build a document from > >> bytes > >> > >> > >> > >> > >> > >> > ***************************************************************************************************** > >> > >> Regards > >> > >> > > > > > > > > -- > > Paul Fremantle > > Co-Founder and CTO, WSO2 > > Apache Synapse PMC Chair > > OASIS WS-RX TC Co-chair > > > > blog: http://pzf.fremantle.org > > paul@wso2.com > > > > "Oxygenating the Web Service Platform", www.wso2.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org paul@wso2.com "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org