Return-Path: Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: (qmail 96072 invoked from network); 1 Jul 2010 04:04:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 04:04:12 -0000 Received: (qmail 9720 invoked by uid 500); 1 Jul 2010 04:04:11 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 9485 invoked by uid 500); 1 Jul 2010 04:04:09 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 9476 invoked by uid 99); 1 Jul 2010 04:04:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 04:04:08 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.40.44.82] (HELO smtprelay.hostedemail.com) (216.40.44.82) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 04:04:00 +0000 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay02.hostedemail.com (Postfix) with SMTP id 9A16937252D for ; Thu, 1 Jul 2010 04:03:08 +0000 (UTC) X-Panda: scanned! X-Session-Marker: 6D61696C696E676C69737440616E7477656273797374656D732E636F6D X-Filterd-Recvd-Size: 5012 Received: from [192.168.2.28] (unknown [118.175.80.147]) (Authenticated sender: mailinglist@antwebsystems.com) by omf02.hostedemail.com (Postfix) with ESMTP for ; Thu, 1 Jul 2010 04:03:05 +0000 (UTC) Subject: Re: make soap webservices with descriptive input/output instead of hashmaps:extend service definition From: Hans Bakker To: user@ofbiz.apache.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 01 Jul 2010 11:02:55 +0700 Message-ID: <1277956975.2186.111.camel@hans-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sure we need to extend the service definition to define what kind of data is inside the complex elements (list,map). I would however also suggest to give this data also a name so it is not required to look in the actual implementation what the list or map contains. So i would like to suggest for a list containing maps: ... Regards, Hans On Wed, 2010-06-30 at 10:14 +0300, Chatree Srichart wrote: > Hi community. I'd like to disscuss about service's attribute definition > descriptive at servicedef. > > I need to integrate OFBiz with other system based on web service. But the > problem I found OFBiz's SOAP message is not compatible to the other > services. Now the OFBiz's SOAP message be like hash map, with key and value. > It is good for communication between OFBiz to OFBiz but it is not good for > OFBiz to the other systems. > > The current SOAP message of OFBiz look like this: > > <[serviceName]> > > > > > > > > or > > .... > .... > > or > > .... > .... > > > > > > > The parameter type would specify by tag's name such as: map-Map, std-String, > isn't in schema. > > I need the SOAP message like this: > > <[param name> > [param value] > > > or > > <[param name 1]> > <[param name 2]> > [param value 1] > [param value 2] > > > > For the type of [param name], would be define in schema. > > But I can not convert servicedef to schema at all now. I have a problem > about attributes which have complex type such as: List, Map, GenericValue. I > can not know what type be inside these complex type. > > So, would it be possible if I could add some information in attribute tag at > servicedef like this: > > > invoke="[methodName]"> > ... > mode="[mode]" optional="[optional]"> > > > > > > > > > > The [attribute name 1] is a normal service's attribute. > The first structure tag for define a structure of [attribute name 1] by has > "itemType" attribute to tell the type of inner attribute. > The [attribute name 2] is a item that be contained in the first structure > tag. > The second and thrid structure tags to tell a structure in [attribute name > 2]. > > For this format, I can generate schema for the complex type. > > Do you have any idea about this? > > Regards, > Chatree Srichart -- Ofbiz on twitter: http://twitter.com/apache_ofbiz Myself on twitter: http://twitter.com/hansbak Antwebsystems.com: Quality services for competitive rates.