Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 19756 invoked from network); 8 Aug 2005 12:50:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2005 12:50:41 -0000 Received: (qmail 64238 invoked by uid 500); 8 Aug 2005 12:50:38 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64213 invoked by uid 500); 8 Aug 2005 12:50:38 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 64200 invoked by uid 99); 8 Aug 2005 12:50:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 05:50:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of davanum@gmail.com designates 64.233.170.195 as permitted sender) Received: from [64.233.170.195] (HELO rproxy.gmail.com) (64.233.170.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 05:51:00 -0700 Received: by rproxy.gmail.com with SMTP id 34so197978rns for ; Mon, 08 Aug 2005 05:50:36 -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=qov4862ci2fwMcqlRx4ojqTHj6CzbGNG7Bp0hLPoZQuzGxMGAVvTSKHyXtm9kiAXige/jEE3ZErXGt4qEY8FKRCTMyoLHRyOerJKG6Sh9VO0QC9rnKLSP+JmZhKQjs4oDqA0i6T7dketfgnqX9aROwJfFh2IRLdK/o4Gz8mkN0M= Received: by 10.38.103.16 with SMTP id a16mr114201rnc; Mon, 08 Aug 2005 05:50:36 -0700 (PDT) Received: by 10.38.8.28 with HTTP; Mon, 8 Aug 2005 05:50:36 -0700 (PDT) Message-ID: <19e0530f050808055037e22c14@mail.gmail.com> Date: Mon, 8 Aug 2005 08:50:36 -0400 From: Davanum Srinivas Reply-To: dims@apache.org To: axis-dev@ws.apache.org Subject: Re: Question for Dims In-Reply-To: <8ae82b1205080805465accd672@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8ae82b1205080805465accd672@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Yes, it's ok to use ALLOW_FORM_OPTIMIZATION (It's a ugly hack we need under some conditions. I hate it, but no way around it currently.) thanks, -- dims On 8/8/05, mtim wrote: > Hello dims, >=20 > We have web service that is running perfectly under Axis 1.1 and > fails under 1.2 because of the change that was introduced in Axis 1.2 > I checked CVS and found that you made a change in > org.apache.axis.SOAPPart.setCurrentForm(Object, int) method which now > executes only if ALLOW_FORM_OPTIMIZATION property is set to true. >=20 > Our rpc handler transforms incoming SOAP message to Document and back > to SOAP and then sets it on message context. So if try to do something > with that message , after the transformation, then I'm getting > ClassCastException from: > org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:725) > What I noticed is that when our handler handles a SOAP request , > message context contains ALLOW_FORM_OPTIMIZATION property which is set > to false. If I set that property to true then everything works fine - > no exceptions. >=20 > Can help me to understand what is behind "ALLOW_FORM_OPTIMIZATION" proper= ty. > Is it safe for me to set "ALLOW_FORM_OPTIMIZATION" to true in the > handler ? Is there another workaround to solve this problem ? >=20 > I would appreciate any of your ideas. >=20 > Thanks , >=20 > Timour >=20 --=20 Davanum Srinivas -http://blogs.cocoondev.org/dims/