Posted by
Vinay Agarwal on
URL: http://ofbiz.116.s1.nabble.com/Users-Formatting-Data-in-XML-or-JSON-tp139799p139811.html
BJ,
JSON and JSON-RPC-Java can get information from server into the browser
without disturbing the current page. This can be used to implement richer UI
or simplify server to browser data transfer. I don't know if RMI can do
that.
Regards,
Vinay Agarwal
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]]
On Behalf Of BJ Freeman
Sent: Friday, June 09, 2006 8:14 PM
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Formatting Data in XML or JSON
There is already an RPC (RMI) framework in ofbiz.
what dos json-rpc offer, above this?
here is a non ofbiz example
http://java.sun.com/developer/onlineTraining/rmi/exercises/UMLDefinition/index.html
I have taken the sourceforge AS2 (java EDINT) and integrated it as a
separate application. this is more so I can interface with VANS and create
my Own VANS between ofbiz installations.
http://faq.businessesnetwork.com/default.asp?Action=Cat&ID=15Vinay Agarwal sent the following on 6/9/06 5:59 PM:
> David,
>
> You are right that deserialization of a somewhat complex data
> structure, from xml to javascript, can be complex. On the other hand,
> JSON can be deserialized in javascript by a single statement.
> Therfore, I am looking to use org.json library to serialize java
> objects for now. Another library JSON-RPC-Java
> (
http://oss.metaparadigm.com/jsonrpc/) makes data transfer completely
transparent but possibly requires interfacing with servlet.
>
> Regards,
> Vinay Agarwal
>
>
> -----Original Message-----
> From:
[hidden email]
> [mailto:
[hidden email]]
> On Behalf Of David E. Jones
> Sent: Friday, June 09, 2006 2:49 PM
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - Formatting Data in XML or JSON
>
>
> You could try the XmlSerializer class in OFBiz to see if it does what
> you need/want. Of course, then you need something on the other side in
> JavaScript to do something with the XML. You might want to consider
> more special purpose formats to make that easier. Of course, I have no
> experience with this... just some thoughts on it.
>
> -David
>
>
> Vinay Agarwal wrote:
>
>>Hello,
>>
>>
>>
>>I want to send a somewhat complex data structure (made up of Maps and
>>Lists) from server to client in either XML or JSON format as response
>>to xmlHttpRequest using a regular request url. Since OFBiz already
>>does SOAP, it has functionality to convert data structure into XML.
>>Can it be used to create generalized XML output? I would appreciate
>>your
>
> suggestions.
>
>>
>>
>>Thanks in advance,
>>
>>Vinay Agarwal
>>
>>
>>
>>
>>----------------------------------------------------------------------
>>--
>>
>>
>>_______________________________________________
>>Users mailing list
>>
[hidden email]
>>
http://lists.ofbiz.org/mailman/listinfo/users>
>
> _______________________________________________
> Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users>
> _______________________________________________
> Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users