Glad you got this worked out, Kumar. For the benefit of anyone who comes across this thread in the archives, there's no reason to make String implement IMarshallable (and no way you could). Instead the String just needs to be treated as a value in the marshalling/unmarshalling code, and written directly as element or attribute content.
- Dennis
babloosony wrote:
Hi All -
I think I have the solution. I just modified by custom marshaller code to handle strings. Now it works great !
- Kumar.
On Sun, 20 Mar 2005 14:45:48 +0530, babloosony <[EMAIL PROTECTED]> wrote:
Hi Dennis,
Thank you for the response. I am almost there. I looked at the code HashMapper.java. As I see the below line in it :
if (entry.getValue() instanceof IMarshallable)
where HashMap value entry is assumed to be a custom java object which has mapping defined in binding.xml and above line is true.
So in my case HashMap value entry is a java.lang.String instance and again I assume we need a binding defined for this in binding.xml which I dont know how to define. How do I define binding definition for java.lang.String so that it can become an instanceof IMarshallable. I dont think I can write my own version of java.lang.String and define binding definition for that which is not always feasible ?
Can you please clarify ?
Thanks & Regards, K.
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
