Hi,

 

I'm still struggling with getting the XML contents (or ) in a parse() method
of a ADBBean, storing them in the bean and feeding them later back to the
serialize() method. Is there an efficient way to copy the raw XML contents
from one to another without having to go through all the parse events? 

 

Thanks,

Martin

 

 

From: Martin Kadlec [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2008 10:15 AM
To: axis-user@ws.apache.org
Subject: RE: ADB external mapping

 

Hi Amila,

 

thank you for the quick answer.

I already tried to edit the parse() and serialize() methods in the generated
code but ended up with a dangling XMLStreamReader at the one and a
XMLStreamWriter at the other end. I don't see a way to ge input/output
streams from these writers. 

Is there an efficient way to copy the raw XML contents from one to another
without having to go through all the parse events? 

 

Thanks,

Martin

 

 

From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2008 7:01 AM
To: axis-user@ws.apache.org
Subject: Re: ADB external mapping

 

 

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/sr
c/org/apache/axis2/wsdl/codegen/extension/TypeMapperExtension.java?revision=
637413
<http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/s
rc/org/apache/axis2/wsdl/codegen/extension/TypeMapperExtension.java?revision
=637413&view=markup> &view=markup

Is there someone who actually uses this?

 

Regards

Martin Kadlec




-- 
Amila Suriarachchi,
WSO2 Inc. 

Reply via email to