Hi Dennis, Yes - I agree fully that the implementer should have the flexibility to do the desired changes to the templates to handle the things its own way. I have come across this issue several times and I think the following procedure would work in your scenario as well.
1 . The relevant codegen extension attaches the needed parameters in string form to the codegenConfiguration properties object 2. These parameters are added to the databinders/extra element as attributes when the XML is formed Have a look at the code from line 1075 to line 1092 in AxisServiceBasedMultiLanguageEmitter class. If that is not sufficient I guess you can have a similar mechanism to populate the other elements through a generic/flexible way Ajith On 8/25/06, Dennis Sosnoski <[EMAIL PROTECTED]> wrote:
This is really a question for Ajith, but since others will probably be facing similar problems in the future I thought it best to get it on the list... Since it looks like the code generation changes for ADB unwrapped support are now in place I'm back to working on unwrapped support for JiBX. As discussed previously on the list, I want to take a different approach to the unwrapped implementation for JiBX from that used for ADB. The main difference is that in ADB's case a wrapper object class is always used, and then the individual for an operation method call are inserted into that wrapper object (on the client side) or extracted from that wrapper (on the server side). I don't want to use a wrapper for JiBX, instead generating the code directly to marshal or unmarshal the parameters. In order to do this I need to pass additional custom XML to the JiBX code generation, and also I need to add a switch (in the form of an attribute to the <method> element, most likely) for the common templates (InterfaceImplementationTemplate.xsl and MessageReceiverTemplate.xsl) so that they can delegate the entire handling of the wrapping/unwrapping to the JiBX template. There doesn't seem to be an easy way to customize the XML passed to the code generation templates at present, so I'd like to know how best to handle this. Thanks, - Dennis -- Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ajith Ranabahu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
