Call me naive, but why can't you simply synchronize the XML formats being
used by the client and the server?
-Brian
On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
> The current project which invloves JiBx bindings has two levels of
> mappings for each of request and response.
> The client sends one format of the xml where as the server take different
> format of xml with same data.
>
> as an example:
>
> *Client input* :
>
>
> <COMMAND>
> <contract>
> <Person>Some Person</Person>
> </contract>
> </COMMAND>
>
> *Server's expected input: *
>
> <COMMAND>
> <Person>Some Person</Person>
> </COMMAND>
>
> As can be infered from the above even though the data is the same but the
> hierarchy levels are different here, this applies to both the input and
> output.
>
> (Can we replace green with the blue below? just to elaborate a little bit
> more to make it clearer. I hope)
> Right now the approach is to unmarshall the input xml obtain the object
> representation of the data work on the data to manipulate(method hooking) to
> arrange the data as per the server's expected data hierarchy.
>
>
> Right now,take input as example, our approach is to unmarshall the
> client's input xml to objects with matching hierarchy first. And then use
> Jibx method hook to create objects representing the server hierarchy and
> populate data to those objects. These objects are then marshalled to input
> xml to be passed to the server.
>
> The question here is:
> is it possible to configure this whole thing in mappings files itself and
> avoid using java code to move data from one object hierarchy to another?
> Any better solutions?
>
>
> A detailed explanation of your suggestions is highly appreciated.
>
>
>
> Best regards,
>
> Raghu Aligeti
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users