Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-23 Thread Rajesh Mallah
> > Yeah well .. you know .. I'm not quite convinced of passing specific > objects to services. It should be either values or generic data > structures (maps, lists, etc ...) > Agreed here as it makes things more inter operable. > > Did you construct your GenericValue as a struct? Do you mind sh

Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-23 Thread Taher Alkhateeb
Yeah well .. you know .. I'm not quite convinced of passing specific objects to services. It should be either values or generic data structures (maps, lists, etc ...) Did you construct your GenericValue as a struct? Do you mind sharing the code to take a closer look? Also, wouldn't this be more ap

Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-23 Thread Rajesh Mallah
Hi Taher , Thanks for the attention. Its not just a matter of one service. I dunno when again i would face the same with a different service. A glance over the service references suggest that there is use of GenericValue all over the places. I don't mind using SOAP it gets me out of this soup ;

Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-23 Thread Taher Alkhateeb
Hi Rajesh, Actually If I were you I would avoid SOAP. Maybe that is too complex and an overkill for your problem. I never liked soap for anything other than washing hands anyway :) I also think there might be multiple issues with the whole design of this service, why pass a generic value in the f

Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-23 Thread Rajesh Mallah
Hi Jacques , Thanks for the reply . I have almost hit the wall with this current issue :-( Do you mean to say it may work if i use SOAP ? regds mallah. On Fri, Mar 23, 2018 at 2:13 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > Le 23/03/2018 à 05:00, Rajesh Mallah a écrit : > >

Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-23 Thread Jacques Le Roux
Le 23/03/2018 à 05:00, Rajesh Mallah a écrit : I guess we need a procedure to convert incoming map (or nested maps) to OFBiz genericvalue. That's SOAP ;) Jacques

Re: How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-22 Thread Rajesh Mallah
As per https://cwiki.apache.org/confluence/display/OFBIZ/Using+XMLRPC+with+Flex+client In OFBiz the limitations are simple types. GenericValue object will > convert to Maps and be supported as Structs in XMLRPC, besides that > you should limit your parameters to simple types (string, double, > in

How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC ?

2018-03-22 Thread Rajesh Mallah
Hi , I had been using XMLRPC regularly for invoking OFBiz functions and getting results. However with below function calculateProductPrice I am facing problem in passing the "product" param . I am getting the error below: Service: calculateProductPrice faultString:Type check failed for field [ca