Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 70854 invoked by uid 500); 15 Aug 2003 03:51:48 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 70830 invoked from network); 15 Aug 2003 03:51:48 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: castor & axis & marshalling Date: Thu, 14 Aug 2003 23:51:57 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: castor & axis & marshalling Thread-Index: AcNizn6cgGYP1b1KQXK/u4HkjLX16gADt0mQ From: "Naresh Bhatia" To: X-OriginalArrivalTime: 15 Aug 2003 03:51:58.0213 (UTC) FILETIME=[936D8350:01C362E0] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Dennis, JiBX is definitely on my list of todos. If it can indeed eliminate the need to manually write MessageReader and MessageWriter implementations, it will certainly make the use of SMFW much easier. You are correct about the double conversion in each direction, but that was the quickest solution I could come up with without writing my own SOAP toolkit :-). Performance hasn't been much of a problem in my applications, but that is of course application specific. What I really like about the approach is the freedom to use the best data structures for the job. So I am sticking with it until I see something better! Naresh -----Original Message----- From: Dennis Sosnoski [mailto:dms@sosnoski.com]=20 Sent: Thursday, August 14, 2003 9:42 PM To: axis-user@ws.apache.org Subject: Re: castor & axis & marshalling Hi Naresh, Considering you're using an XMLPull parser for deserializing objects,=20 you might want to look at using JiBX (http://www.jibx.org) in=20 combination with your framework. JiBX provides high-performance data=20 binding using an XMLPull parser for unmarshalling. This should eliminate the need for users to write their own MessageReader and MessageWriter=20 implementations in your framework (they'd need a binding definition, but that's generally a lot simpler to write and maintain than the actual code). An ideal solution for message style would couple a data binding=20 framework with the SOAP framework so that there are no added conversions to and from text. I think that's what's planned for the integration=20 between JAX-RPC and JAXB coming down the line. I gather that both SMFW=20 and the current Castor binding support actually go through multiple=20 conversions to and from text (since AFAIK Axis always parses everything=20 going in both directions, before converting back to text), which is=20 going to really hurt performance. - Dennis Dennis M. Sosnoski Enterprise Java, XML, and Web Services Support - http://www.sosnoski.com JiBX Lead Developer - http://www.jibx.org Redmond, WA 425.885.7197 Naresh Bhatia wrote: >Cory, > >Theoretically, the answer to your question is yes. But practically when >I tried this in the past, Castor mapping approach could not handle the=20 >complexities of my data structures. So I use an XML Pull parser to=20 >serialize / deserialize my business objects. You can look at my=20 >detailed implementation at http://smfw.sourceforge.net/. It is open=20 >source - feel free to use it in your projects. > >Regards, >Naresh > >-----Original Message----- >From: Cory Wilkerson [mailto:cwilkerson@travelnow.com] >Sent: Thursday, August 14, 2003 5:01 PM >To: axis-user@xml.apache.org >Subject: castor & axis & marshalling > > >As a follow up to Anne's post, dated 08/04 11:20:28 -- specifically:=20 >"Castor performs translations from xsd types to Java objects." For=20 >those of you familiar enough with Castor -- I've a question. > >Just a disclaimer -- sorry for the Castor slant here -- I'm just=20 >looking for someone to say, "yes you can accomplish this" or "no, you=20 >can't". > >Let's suppose I implement my service as a message style service and I'm >handed the soap envelope by Axis. Also, let's assume I have a set of=20 >classes in my domain that I'd like to flesh out with the data=20 >represented in the soap body. My question is whether or not I can use=20 >Castor to marshall/unmarshall this data for me given a mapping file or=20 >do I have to rely on Castor generated classes/marshalling framework to=20 >handle this? For example, if in my I've defined the following: > > > > > > > > > > >And someone invokes my services and passes me type "Person" -- is there >a convenient way via Castor to map it into object type Foo? > >class Foo { > private String fName > private String lName > private Calendar dateOfBirth > > public get/setFName > public get/setLName > public get/setDateOfBirth >} > >Thanks yet again! >Cory > > =20 >