On Mon, Jun 30, 2008 at 4:15 AM, Martin Kadlec <[EMAIL PROTECTED]> wrote:

>  Hi,
>
>
>
> I would like ADB to stop parsing at a certain point in the XML hierarchy,
> thus I want all of my 'high level' parameters in the SOAP message mapped to
> Java objects via ADB for easier handling but I need ADB to exclude some
> elements/types from breaking them further down.  This means the latter
> elements and all of their contents shall be stored as plain XML at the
> corresponding point in the ADBBean hierarchy to be extracted and passed
> along without any further parsing or serializing needed (these are large
> blocks of XML data that is not going to be processed by the web service
> layer itself).
>

I am not sure how -em option helps you solve this problem.
One option is to edit the generated code (please see the parse() method.) so
that it does not parse after the necessary class level.

>
>
> I tried to solve this use case with the -em (external mapping) option but
> did not succeed because there is not much user documentation about this
> feature. Also almost all questions about this I've found on the mailing list
> and the web seem to be unanswered.
>
-em option is used to give an external mapping file to codegen engine. This
means you can sepecify to use some class written by you for codegen classes
instead of generated databinding class.

you can understand the format of the file using this code[1] :)

thanks,
Amila.

[1]
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/TypeMapperExtension.java?revision=637413&view=markup

> Is there someone who actually uses this?
>
>
>
> Regards
>
> Martin Kadlec
>



-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to