Thanks Bilgin, I will have a look at xmlrpc.

- Abdullah

On Mon, Feb 1, 2010 at 9:00 PM, Bilgin Ibryam <[email protected]> wrote:

> Abdullah Shaikh wrote:
>
>> Hi Bilgin,
>>
>> The client can be in any RIA technology, I need to communicate with ofbiz
>> from flex, in this case I guess I won't be able to use xmlrpc client.
>>
>> Thanks,
>> Abdullah
>>
>> On Mon, Feb 1, 2010 at 8:14 PM, Bilgin Ibryam <[email protected]> wrote:
>>
>>
>>
>>> Abdullah Shaikh wrote:
>>>
>>>
>>>
>>>> Hi All,
>>>>
>>>> I want to develop a flex application which will interact with ofbiz
>>>> using
>>>> xml.
>>>>
>>>> I just had a cursory view of xmlrpcclient & xmlserializer, has anybody
>>>> done
>>>> this ? what will be the best way to have ofbiz output xml ?
>>>>
>>>> I have seen that GenericValue can be easily converted to xml form.
>>>>
>>>> The request can be in xml form or can be a normal http request, but the
>>>> response from ofbiz should be in xml form, for example something like
>>>> this,
>>>>
>>>> <Orders>
>>>> <Order id="1" status="Approved"/> - all the required fields
>>>> <Order id="2" status="Created"/>
>>>> </Orders>
>>>>
>>>> <Parties>
>>>> <Party firstname="abc" lastname="xyz"> - all the required fields
>>>> </Parties>
>>>>
>>>> This way we can have a flex application communicate with ofbiz using xml
>>>> over http, I think flex don't understand json, so we need to go the xml
>>>> way
>>>> and also the benefits of xml is that with this approach ofbiz can
>>>> interact
>>>> with any kind of RIA technology.
>>>>
>>>>
>>>> Thanks,
>>>> Abdullah
>>>>
>>>>
>>>>
>>>>
>>>>
>>> Hi Abdullah,
>>>
>>> take a look at XmlRpcEventHandler.java. We use it to call ofbiz services
>>> by
>>> sending data in xml format over http (using a xmlrpc client). The result
>>> is
>>> also returned in xml format.
>>>
>>> Bilgin
>>>
>>>
>>>
>>
>>
>>
> I have no experience with flex, but xmlrpc is just a way to transport the
> data over http encoded in xml. (it is like a lightweight soap) In this
> sense, it doesn't matter what technology is using your client application.
> If it is able to encode the data in properly formatted xml and send it over
> http (and then read the result), that would be enough. I see that there are
> also flex libraries for xmlrpc http://en.wikipedia.org/wiki/XML-RPC
>
> Bilgin
>

Reply via email to