I use jibx to retrieve from catalog names. The response binding contains a collection field of user objects. Every user has 10 fields (names, addresses,phone numbers etc). A simple form of the response i this below:
<UserList>
<Users>
<user>
<name></name>
<lastname></lastname>
......
.....
</user>
<user>
<name></name>
<lastname></lastname>
......
.....
</user>
....
...
</Users>
</UserList>
The problem when the response contains lot of users. For example i tried with 3 users and the document unmarshalled fine. I tried with more than 5 and the process freezes during the unmarshalling.
This is the class i use for unmarshalling: The stringXml var contains the response.
public static Object xmlToObj(String xmlString) throws JiBXException{
Object responseObj = new Object();
ByteArrayInputStream bin = new ByteArrayInputStream (xmlString.getBytes ());
IBindingFactory bfact = BindingDirectory.getFactory(ResponseMessage.class);
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
responseObj = uctx.unmarshalDocument(bin, null);
return responseObj;
}
When i use a lot of data the process freezes in the uctx.unmarshalDocument(bin, null); command.
Any ideas about this problem?
Thank you,
Roy
__________________________________________________
Χρησιμοποιείτε Yahoo!;
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
http://mail.yahoo.gr
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users