Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 19099 invoked by uid 500); 27 Aug 2001 22:27:47 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 19082 invoked from network); 27 Aug 2001 22:27:47 -0000 Received: from unknown (HELO S1001EXI01.allaire.com) (63.109.196.26) by daedalus.apache.org with SMTP; 27 Aug 2001 22:27:47 -0000 Received: from gamebox (h00a0cc40bbaf.ne.mediaone.net [24.218.161.107]) by S1001EXI01.allaire.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id RRR30DWG; Mon, 27 Aug 2001 18:27:09 -0400 Message-ID: <03b001c12f47$133e0660$6b00a8c0@ne.mediaone.net> From: "Glen Daniels" To: References: <20010827215835.27672.qmail@web20305.mail.yahoo.com> Subject: Re: For complexTypes....question Date: Mon, 27 Aug 2001 18:24:44 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N There are a couple of answers to this. The core answer is "you want an options class which the TypeMappingRegistry in Axis maps to/from a particular schema type". How you get there is the question. 1) You can custom-build an options.java file and register serializers/deserializers for it. This option is easiest if the XML is fairly straightforward and the options class is a bean (has get/set accessors), since the serialization work will be done for you by the BeanSerializer. Alternately, you can code up custom serializers/deserializers which know how to map your class to/from XML (there are examples of this in Axis). 2) You can use a proxy-generation tool to read the WSDL file and automatically generate an options class for you. We're working on this, but it's not there yet. For now, the BeanSerializer approach is the easiest by far. --Glen ----- Original Message ----- From: "Aaron G" To: Sent: Monday, August 27, 2001 5:58 PM Subject: For complexTypes....question > If I have a complex type which is a struct > of primitives and Strings > > options { > long foo; > int bar; > String baz; > } > > > How can I serialize that struct with a options.class > file? I have a WSDL, which contains all the info > I need about it, what would I have to do to make > that struct serialize correctly? > > Thanks, Aaron > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/ >