When I am doing the Marshalling the BailVO.setDoc() the values are available in 
the XML.

when i am calling BailVO.getDoc() for the second set the values are not 
available. its blank. I mean for this

<structure get-method="getDoc" set-method="setDoc"
usage="optional">
                        <structure name="BailCharge">
                                <collection get-method="getBailCharges"
set-method="setBailCharges"
item-type="com.datacapture.general.common.ChargeVO"/>
                        </structure>
                </structure>

But fot the first set it's availble. ie for this.

<structure get-method="getDoc" set-method="setDoc"
usage="optional">
                        <structure name="ActivityID">
                                <value name="ID"
get-method="getActivityID" set-method="setActivityID" usage="optional"/>
                        </structure>
                        <value name="ActivityDate"
get-method="getBailDate" set-method="setBailDate" usage="optional"/>
                        <value name="ActivityTime"
get-method="getBailTime" set-method="setBailTime" usage="optional"/>

                        <value name="BailSetAmount"
get-method="getBailSetAmount" set-method="setBailSetAmount"
usage="optional"/>

                </structure>

thanks
Siva

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mocky Habeeb
Sent: Wednesday, September 21, 2005 8:07 AM
To: [email protected]
Subject: RE: [jibx-users] Unmarshalling, Loosing the scope of the Data


I'm not sure what you mean by losing the data and having blank object
values. Do you mean that after you unmarshall and you get back ,for
instance, an instance of BailVO and that although BailVO is not null,
when you call BailVO.getDoc() that it returns null?

Mocky



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Narayanaswamy, Sivakumar
Sent: Monday, September 19, 2005 2:02 AM
To: [email protected]
Subject: [jibx-users] Unmarshalling, Loosing the scope of the Data



Hi,

I am new to JIBX and just started using it after reading the online help
I am referring the same class instance in two places in the same binding
file. While marshalling the  XML looks perfect. But while Unmarshalling
I am loosing the data. the object values are blank.

Is their any way to retain or to keep the instance which has been
created. Here is my Binding file.

<binding>
        <mapping name="NHBail" class="com.test.common.BailVO">
                <structure get-method="getDoc" set-method="setDoc"
usage="optional">
                        <structure name="ActivityID">
                                <value name="ID"
get-method="getActivityID" set-method="setActivityID" usage="optional"/>
                        </structure>
                        <value name="ActivityDate"
get-method="getBailDate" set-method="setBailDate" usage="optional"/>
                        <value name="ActivityTime"
get-method="getBailTime" set-method="setBailTime" usage="optional"/>

                        <value name="BailSetAmount"
get-method="getBailSetAmount" set-method="setBailSetAmount"
usage="optional"/>

                </structure>
                <structure get-method="getQuest" set-method="setQuest"
usage="optional">
                                <structure name="PersonName">
                                        <value name="PersonGivenName"
get-method="getFirstName" set-method="setFirstName" usage="optional"/>
                                        <value name="PersonMiddleName"
get-method="getMiddleName" set-method="setMiddleName" usage="optional"/>
                                        <value name="PersonSurName"
get-method="getSurName" set-method="setSurName" usage="optional"/>
                                        <value name="PersonNameID"
get-method="getPersonNameID" set-method="setPersonNameID"
usage="optional"/>
                                </structure>
                </structure>

                <structure get-method="getDoc" set-method="setDoc"
usage="optional">
                        <structure name="BailCharge">
                                <collection get-method="getBailCharges"
set-method="setBailCharges"
item-type="com.datacapture.general.common.ChargeVO"/>
                        </structure>
                </structure>

        </mapping>
        <mapping name="ChargeStatute" class="com.test.common.ChargeVO">
                <structure name="StatuteCodeID">
                        <structure name="ID">
                                <value name="ID" get-method="getID"
set-method="setID" usage="optional"/>
                        </structure>
                </structure>
                <value name="StatuteText" get-method="getStatuteText"
set-method="setStatuteText" usage="optional"/>
                <value name="StatuteDescriptionText"
get-method="getStatuteDescriptionText"
set-method="setStatuteDescriptionText" usage="optional"/>
        </mapping>

</binding>

thanks in advance.
Siva


Sivakumar Narayanaswamy | Consultant, Public Services | BearingPoint |
99 High Street Boston, MA 02110 |

Phone: 617-378-3656 | Fax: 617-988-0675 | Cell Phone: 847-302-1283 |
[EMAIL PROTECTED]


************************************************************************
***************************
The information in this email is confidential and may be legally
privileged.  Access to this email by anyone other than the intended
addressee is unauthorized.  If you are not the intended recipient of
this message, any review, disclosure, copying, distribution, retention,
or any action taken or omitted to be taken in reliance on it is
prohibited and may be unlawful.  If you are not the intended recipient,
please reply to or forward a copy of this message to the sender and
delete the message, any attachments, and any copies thereof from your
system.
************************************************************************
***************************


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your
very own Sony(tm)PSP.  Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

***************************************************************************************************
The information in this email is confidential and may be legally privileged.  
Access to this email by anyone other than the intended addressee is 
unauthorized.  If you are not the intended recipient of this message, any 
review, disclosure, copying, distribution, retention, or any action taken or 
omitted to be taken in reliance on it is prohibited and may be unlawful.  If 
you are not the intended recipient, please reply to or forward a copy of this 
message to the sender and delete the message, any attachments, and any copies 
thereof from your system.
***************************************************************************************************


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to