|
Hi Jeff, I guess I shoudln't be too surprised that you are on this list, but you did catch me off guard! Hope you are well. You are right of course, but it turns out the patch actually does what you say, more or less, due to the way Axis2 works (at least as the code appears to me). It treats <sequence> and <all> in the same manner except that <sequence> requires and ensures the specified ordering. I haven't tried the nested cases; it either doesn't work for <sequence> or is too liberal for <all>, or some of both (my guess). All 3 particles are processed by the same method, with the only difference being whether the ordering is enforced (sequence) or whether only one value is accepted (choice). Thanks for pointing out the constraints on <all>, Chuck Hi Chuck, Just as a point of information, <all> itself can only have maxOccurs=1 and minOccurs=(0,1}, each of its particles has the same restriction, and all the particles must be <element>. No nested sequence, choice or all is allowed. The main reason for the restrictions, I think, is that XML Schema requires deterministic parsing with no lookahead.While I'm not familiiar with the code you patched, it might have captured more of the semantics of choice to base the patch on the treatment of <sequence> rather than <all>, initially applying a similar trick to the one you described, and eventually properly rejecting cases where more than one branch appeared. The same degree of code reuse may be possible in that approach. Jeff On 1/24/06, Chuck Williams <[EMAIL PROTECTED]> wrote: |
- Re: [Axis2-0.94] WSDL2Java generates bad code for... Chuck Williams
- Re: [Axis2-0.94] WSDL2Java generates bad cod... Ajith Ranabahu
- Re: [Axis2-0.94] WSDL2Java generates bad... Chuck Williams
- Re: [Axis2-0.94] WSDL2Java generates... Chuck Williams
- Re: [Axis2-0.94] WSDL2Java gener... Davanum Srinivas
- Re: [Axis2-0.94] WSDL2Java gener... Ajith Ranabahu
- Re: [Axis2-0.94] WSDL2Java ... Chuck Williams
- Re: [Axis2-0.94] WSDL2J... Chuck Williams
- Re: [Axis2-0.94] WS... Ajith Ranabahu
- [Axis2-0.94] WSDL2Java generates bad cod... Rubén Naranjo Izquierdo
- Re: [Axis2-0.94] WSDL2Java generates... Ajith Ranabahu
