[ 
https://issues.apache.org/jira/browse/OFBIZ-10317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16509981#comment-16509981
 ] 

Taher Alkhateeb commented on OFBIZ-10317:
-----------------------------------------

Be careful, the word GenericEntity is a class in OFBiz :) But I think I 
understand what you mean.

So the answer to your question is probably no. These services are expecting a 
very specific entity to operate on.That's why i said from the beginning that it 
was a pretty bad idea to include GenericServices are parameters in any service.

The best solution that I can think for you is to design adapter services in the 
middle that talk to the target services you want to use, if we create some kind 
of hack (like passing the entity name in the XML-RPC call) then our converters 
would _only_ work for XML-RPC, which is a pretty bad design anyway.

My recommendation is to close this Jira with "won't fix". The problem is not 
XML-RPC, the problem is badly designed services that expect or produce 
GenericValues.

 

> Allowing XML-RPC and SOAP to pass GenericValue objects to services as IN 
> fields
> -------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10317
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10317
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/webtools
>    Affects Versions: 16.11.04
>            Reporter: Rajesh Kumar Mallah
>            Priority: Major
>         Attachments: not-working.xml, working.xml
>
>
>  
> The existing framework allows invoking  various services via XMLRPC or SOAP 
> as per their argument expectations. However only basic types are handled
> like String , Boolean , Int etc. If a service is expecting a GenericValue eg: 
> 'calculateProductPrice'   it is not possible to invoke it via SOAP or XMLRPC.
> The reason being SOAP or XMLRPC can support Map and that is the closest 
> it can provide in lieu of any custom Object that a Service might be expecting.
> A generic solution needs to be found so that the full potential of the 
> plethora of 
> exportable services can be utilized by external systems that looks for 
> integrating and 
> banking upon OfBiz via XMLRPC or SOAP.
> h6. related Threads:
> [How to pass org.apache.ofbiz.entity.GenericValue using XMLRPC]
> [https://markmail.org/message/dwako4nsu4h3zgmu] [ dev ]
> [https://markmail.org/message/iuffmakor3ru2yce] [user]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to