Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 11676 invoked from network); 6 Mar 2007 20:53:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 20:53:30 -0000 Received: (qmail 23748 invoked by uid 500); 6 Mar 2007 20:53:36 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 23496 invoked by uid 500); 6 Mar 2007 20:53:35 -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 23485 invoked by uid 99); 6 Mar 2007 20:53:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 12:53:35 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [12.130.29.202] (HELO eero.baz.org) (12.130.29.202) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 12:53:23 -0800 Received: by eero.baz.org (Postfix, from userid 1017) id 9EED9898BD; Tue, 6 Mar 2007 15:53:02 -0500 (EST) Received: from [192.168.1.3] (psc.progress.com [66.30.193.95]) by eero (tmda-ofmipd) with ESMTP; Tue, 06 Mar 2007 15:53:01 -0500 (EST) Message-ID: <45EDD4A2.3090505@thoughtcraft.com> Date: Tue, 06 Mar 2007 15:52:50 -0500 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: AxisEngine.checkMustUnderstand enforcing actor/roles? References: <19e0530f0703051039p4441460do3ce7a170b7196cc8@mail.gmail.com> In-Reply-To: <19e0530f0703051039p4441460do3ce7a170b7196cc8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Glen Daniels X-Delivery-Agent: TMDA/1.0.2 (Bold Forbes) X-Virus-Checked: Checked by ClamAV on apache.org Hi dims, Michael: It is certainly true that role support is quite lacking so far in Axis2 - I'll commit to cleaning this all up over the next week or so. The main reason to differentiate the SOAP versions is to throw the correct fault - I think Axis1 dealt a lot better in some ways with the different SOAP versions (see org.apache.axis.soap.SOAPConstants), and we should probably implement something similar for A2. This lets you write clean code and keep the version-specific stuff hidden underneath another class. That said, the checkMustUnderstand() code is definitely doing the wrong thing right now. The correct logic should be: for (each header that IS targeted to me) { if (!processed and mustUnderstand==true) { throw version-specific-MU-Fault } } The first cut of "is targeted to me" is something like "has no role, the 'next' role, or is the ultimate receiver role". The next version is to support a configurable list of role URIs. Thanks for noticing this - clearly we need better tests here as well. Deepal and I were focusing on the Phase concept for that checkin you reference, and didn't pay enough attention to the MU piece. --Glen Davanum Srinivas wrote: > Glen, > > Could you please take a look at this one? Since Deepal is out and your > name pops up in the original check-in :) > > -- dims > > On 3/5/07, Michael Rheinheimer wrote: >> >> >> >> Hi, I have a few questions about the MustUnderstand SOAP header >> attribute processing logic in the AxisEngine. Any help is >> appreciated. What I see in the AxisEngine.checkMustUnderstand (at >> least up to SVN rev 512819) is that if the MustUnderstand header >> attribute is there, the following occurs: >> >> (1) if not SOAP 1.1, header must have a role block, and that role >> block must be NEXT >> (2) if SOAP 1.1, header may be null, but if it is not, then it must >> be NEXT >> >> I'm not sure why we would be doing this, except that possibly the >> support for the three standard roles is incomplete (SOAP 1.2, section >> 2.2: >> http://www.w3.org/TR/2003/REC-soap12-part1-20030624/#soaproles). The >> comments in the method declare support for only NEXT. If my searching >> is correct, it appears deepal committed the version with the comments: >> >> >> 2005-12-11 svn commit: r355917 [1/3] - in /webservices/axis2/tru >> axis-dev deepal >> Anybody have any insight into this? Any plans to support the other >> two roles? Why is the logic different for !SOAP1.1 than for SOAP1.1? >> >> Thanks! >> mike >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org