Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 68298 invoked from network); 2 May 2004 23:51:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 May 2004 23:51:30 -0000 Received: (qmail 85023 invoked by uid 500); 2 May 2004 23:51:15 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 84947 invoked by uid 500); 2 May 2004 23:51:14 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 84925 invoked from network); 2 May 2004 23:51:14 -0000 Received: from unknown (HELO hotmail.com) (65.54.186.62) by daedalus.apache.org with SMTP; 2 May 2004 23:51:14 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 2 May 2004 16:51:22 -0700 Received: from 218.79.193.156 by by16fd.bay16.hotmail.msn.com with HTTP; Sun, 02 May 2004 23:51:21 GMT X-Originating-IP: [218.79.193.156] X-Originating-Email: [chengliang2004@hotmail.com] X-Sender: chengliang2004@hotmail.com From: "cheng liang" To: axis-c-dev@ws.apache.org Bcc: Subject: Re: HTTP chunked problem Date: Sun, 02 May 2004 23:51:21 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 02 May 2004 23:51:22.0162 (UTC) FILETIME=[5F197120:01C430A0] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, John, I think you should put HTTPChunking resolution code in the channel layer. This will make the httptransport code seems more consistent since the difference will be solved in the below layer. As for libwww, I have not used it yet. If it is strong enough, it would be a good choice. My major concern is the Class Object Deserialization problem. As I mentioned, the existing code could not deal with it correctly. The code could not recognize the "href" attribute, and treat it correctly. The payload is as follows: ------------------------------------------------------------
1986-01-01 category 0 cn test2 111111 31 hello 10.7.0.10 2004-04-27T19:57:17.000Z 0 23 test2
------------------------------------------------------------ I use the following code in client stub: Ret = (UsersWS*)m_pCall->GetCmplxObject((void*) Axis_DeSerialize_UsersWS, (void*) Axis_Create_UsersWS, (void*) Axis_Delete_UsersWS, "return", 0); I get that Ret equal NULL. best, Cheng Liang >From: John Hawkins >Reply-To: "Apache AXIS C Developers List" >To: "Apache AXIS C Developers List" >CC: axis-c-dev@ws.apache.org >Subject: Re: HTTP chunked problem >Date: Fri, 30 Apr 2004 07:40:38 +0100 > > > > > >Hi Cheng, > >fyi: Adrian, Fred Preston and I all work together so we answer questions on >behalf of each other :-) > >Yes, I saw the HTTP Content length problem but it doesn't appear to be used >in the code for now so I left it. However, we'll raise it on JIRA so it is >not lost. > >The HTTP Transport in general has a few issues in its logic. The underlying >channel object isn't as good as it could be.. We had to put in some hacky >looking code for the HTTPChunking fix. I think that a better resolution >would be to change the underlying channel object to work properly then we >could change the HTTPTransport to look nicer. But, we needed a fix quickly >so we didn't do this. Again we will raise a JIRA bug report to not lose it. > > >In General - I thought that there was discussion around removing the >HTTPTransport layer and replacing it with libwww? I think that this would >be a really good idea. We get so much for free with that library. It is >nice and modular and seems to not have had any new fixes for over two years >which (I think) shows how stable it must be. > >What does the dev community think to this? > > > > >John Hawkins, > > > > > "cheng liang" > otmail.com> To > axis-c-dev@ws.apache.org > 30/04/2004 04:28 cc > > Subject > Please respond to Re: HTTP chunked problem > "Apache AXIS C > Developers List" > > > > > > > > >hi, Adrian Dick, > >Thanks. > >I used this code and it work fine on windows. > >But I want to point that in the following code in httptransport.cpp: > >if((pos = strLine.find("Content-Length:")) != > std::string::npos) >{ > m_intBodyLength = atoi(strLine.substr > (pos + strlen("Content-Length: ")).c_str()); >} > >there is some exception. > >The message got from the server (apache+axis(java)+tomcat) does not contain > >the >code "Content-Length:". > >The http header is as follows: > >------------------------------------------------------------- >HTTP/1.1 200 OK >Content-Type: text/xml;charset=utf-8 >Transfer-Encoding: chunked >Date: Fri, 30 Apr 2004 03:06:52 GMT >Server: Apache-Coyote/1.1 >------------------------------------------------------------- _________________________________________________________________ �������������ĵ����ʼ�ϵͳ�� MSN Hotmail�� http://www.hotmail.com