From notifications-return-17509-archive-asf-public=cust-asf.ponee.io@ofbiz.apache.org Sat Apr 7 18:26:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1AB27180675 for ; Sat, 7 Apr 2018 18:26:08 +0200 (CEST) Received: (qmail 68748 invoked by uid 500); 7 Apr 2018 16:26:08 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 68739 invoked by uid 99); 7 Apr 2018 16:26:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Apr 2018 16:26:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5C957C0DE5 for ; Sat, 7 Apr 2018 16:26:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1Lgu3zCDbCAV for ; Sat, 7 Apr 2018 16:26:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2AF485FAE4 for ; Sat, 7 Apr 2018 16:26:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3BC04E002F for ; Sat, 7 Apr 2018 16:26:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8D7AC241CF for ; Sat, 7 Apr 2018 16:26:01 +0000 (UTC) Date: Sat, 7 Apr 2018 16:26:01 +0000 (UTC) From: "Taher Alkhateeb (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OFBIZ-10317) Allowing XML-RPC and SOAP to pass GenericValue objects to services as IN fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OFBIZ-10317?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164= 29452#comment-16429452 ]=20 Taher Alkhateeb commented on OFBIZ-10317: ----------------------------------------- After lots of research, noting here that I suspect that maybe the best plac= e to tackle this problem is in the conversion api located in package org.ap= ache.ofbiz.base.conversion More specifically, I suspect we can add the conversion from java.util.HashM= ap->org.apache.ofbiz.entity.GenericValue using the converter interface. The logic to trace from is definitely in package org.apache.ofbiz.webapp.ev= ent.XmlRpcEventHandler. But it is relatively complex, I need to switch cons= tantly between many classes (a major need of refactoring here!). Anyway, Work In Progress, we'll see how it goes. The unit tests provided ar= e extremely helpful. > 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 > > > =C2=A0 > The existing framework allows invoking=C2=A0 various services via XMLRPC = or SOAP=20 > 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'=C2=A0=C2=A0 it is not possible to invoke it vi= a SOAP or XMLRPC. > The reason being SOAP or XMLRPC can support Map and that is the closest= =20 > it can provide in lieu of any custom Object that a Service might be expec= ting. > A generic solution needs to be found so that the full potential of the pl= ethora of=20 > exportable services can be utilized by external systems that looks for in= tegrating and=20 > 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] > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)