|
The Castor Marshalling Framework does what you describe
http://www.castor.org/xml-framework.html#The-Marshalling-Framework
Ed
Original Message:
Deigo,
Appreciate your response. Here is the detail problem description. My web service uses complex types and the Bean Serializer provided by AXIS works fine. However on the server side I would like to convert the object representation of the complex type to XML (ie serialize) for application specific purposes. After some investigation I find that the serialization mechanism is tightly coupled to the axis engine instance and the is no easy way to use the bean serializer from the server side code that is generated by wsdl.
Any ideas,
Thx, -Vinod
>From: FONTDEVILA Diego <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: RE: serialize a Bean with Axis >Date: Mon, 29 Dec 2003 18:08:43 -0300 >MIME-Version: 1.0 >Received: from mail.apache.org ([208.185.179.12]) by mc9-f7.hotmail.com >with Microsoft SMTPSVC(5.0.2195.6713); Mon, 29 Dec 2003 13:05:46 -0800 >Received: (qmail 39785 invoked by uid 500); 29 Dec 2003 21:05:31 -0000 >Received: (qmail 39767 invoked from network); 29 Dec 2003 21:05:27 -0000 >X-Message-Info: JGTYoYF78jE0AmC4AfGQL5OUzCjAPdeV >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >Precedence: bulk >list-help: <mailto:[EMAIL PROTECTED]> >list-unsubscribe: <mailto:[EMAIL PROTECTED]> >list-post: <mailto:[EMAIL PROTECTED]> >Delivered-To: mailing list [EMAIL PROTECTED] >Message-ID: <[EMAIL PROTECTED]> >X-Mailer: Internet Mail Service (5.5.2653.19) >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >Return-Path: [EMAIL PROTECTED] >X-OriginalArrivalTime: 29 Dec 2003 21:05:46.0760 (UTC) >FILETIME=[8780A880:01C3CE4F] > >You should first try the Bean serialization classes, which require your >bean >class to have getters and setters (as any bean should) or public fields. >Your elements should have the same name as the fields, otherwise you'd need >to provide a mapping through some PropertiesDescriptors I really don't know >anything about. > >snippet of app.wsdd (Deployment Descriptor to be used to deploy, see the >User Guide) > >Type is your bean class > >���� <typeMapping >��������� encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >��������� xmlns:typens="http://mydomain.ar/myapp" >��������� qname="typens:ar.mydomain.transaction.ExecutionControls" >��������� type="java:ar.mydomain.transaction.ExecutionControls" >��������� serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" > >deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"/> > >Hope it helps, if it is not enough, and you need some custom serializers, >let me know and I'll send you some code. >��������������������������������������������������������� Diego > >-----Original Message----- >From: Vinod Menon [mailto:[EMAIL PROTECTED] >Sent: Lunes 29 de Diciembre de 2003 14:46 >To: [EMAIL PROTECTED] >Subject: serialize a Bean with Axis > > >How can I get axis to serialize a complex type. Any help is appreciated. > >Thx > >-Vinod > >_________________________________________________________________ >Tired of slow downloads? Compare online deals from your local high-speed >providers now.� https://broadband.msn.com > > >http://www.portalsociete.com >Vis�tenos, lo estamos esperando. > >============================================================ >La informaci�n aqu� contenida es confidencial y est� dirigida >solamente a las personas direccionadas en el mail. >No debe ser considerada como recomendaci�n de compra o venta >de valores. Todo acceso no autorizado, uso, reproducci�n, o >divulgaci�n est� prohibido. >Ni SOCIETE GENERALE ni ninguna de sus subsidiarias o filiales >asumir�n responsabilidad ni obligaci�n legal alguna por cualquier >informaci�n incorrecta o alterada contenida en este mensaje. > >The information contained herein is confidential and is intended >solely for the addressee(s).� It shall not be construed as a >recommendation to buy or sell any security.� Any unauthorized >access, use, reproduction, disclosure or dissemination is prohibited. >Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates >shall assume any legal liability or responsibility for any incorrect, >misleading or altered information contained herein. >============================================================ > >
DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you. Copyright Valid Information Systems Limited. http://www.valinf.com Address Morline House, 160 London Road, Barking, Essex, IG11 8BB. Tel: 020 8215 1414 Fax: 020 8215 2040. |
- serialize a Bean with Axis Vinod Menon
- RE: serialize a Bean with Axis FONTDEVILA Diego
- RE: serialize a Bean with Axis Vinod Menon
- RE: serialize a Bean with Axis Ed Pond
- RE: serialize a Bean with Axis FONTDEVILA Diego
