axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sameer Bombatkar" <sameer_...@hotmail.com>
Subject RE: RE: Does AXIS provide serializers/deserializers for nested javabeans?
Date Fri, 13 Jun 2003 10:19:52 GMT
Can you post ur wsdd file?


Sameer.






>From: "Agarwal, Naresh" <nagarwal@informatica.com>
>Reply-To: axis-user@ws.apache.org
>To: <axis-user@ws.apache.org>
>Subject: RE: RE: Does AXIS provide serializers/deserializers for nested 
>javabeans?
>Date: Fri, 13 Jun 2003 01:56:46 -0700
>MIME-Version: 1.0
>Received: from apache.org ([208.185.179.12]) by mc2-f18.law16.hotmail.com 
>with Microsoft SMTPSVC(5.0.2195.5600); Fri, 13 Jun 2003 01:57:03 -0700
>Received: (qmail 27625 invoked by uid 500); 13 Jun 2003 08:56:37 -0000
>Received: (qmail 27600 invoked from network); 13 Jun 2003 08:56:36 -0000
>X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
>Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm
>Precedence: bulk
>list-help: <mailto:axis-user-help@ws.apache.org>
>list-unsubscribe: <mailto:axis-user-unsubscribe@ws.apache.org>
>list-post: <mailto:axis-user@xml.apache.org>
>Delivered-To: mailing list axis-user@ws.apache.org
>content-class: urn:content-classes:message
>X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
>Message-ID: 
><07EC20A3290A504EA73D914B4C08A48602720BE5@usmail14.informatica.com>
>X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: Does AXIS provide 
>serializers/deserializers for nested javabeans?
>Thread-Index: AcMxgfnFB1VVOdWNT5+Wz8LcJtqMJgAB9NXw
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>Return-Path: axis-user-return-15632-sameer_bom=hotmail.com@ws.apache.org
>X-OriginalArrivalTime: 13 Jun 2003 08:57:03.0505 (UTC) 
>FILETIME=[C2352810:01C33189]
>
>Hi Kai,
>
>thanks..now it is working..
>
>But if "outer" bean contains an array of "inner" bean, then things are not 
>working.
>I have declared the bean mapping in wsdd file and registered the tpye 
>mappings in client as before (the case when "outer" bean just contain a 
>single "inner" bean).
>
>Am I missing something?
>
>thanks,
>Naresh Agarwal
>
>-----Original Message-----
>From: Kai Unewisse [mailto:kai.unewisse@innovations.de]
>Sent: Friday, June 13, 2003 12:59 AM
>To: axis-user@ws.apache.org
>Subject: RE:RE: Does AXIS provide serializers/deserializers for nested 
>javabeans?
>
>
>Hi Naresh,
>
>One thing about your Bean classes is, that it should be a public class ...
>
>looks fine, but how looks the variable qn and qn1 ?
>
>My Code looks like :
>
>private QName qn   = new QName("urn:BeanService", "innerbean");
>private QName qn1 = new QName("urn:BeanService", "outerbean");
>
>
>Register ist the same, except I show the package structure :
>
>call.registerTypeMapping(inner.class, qn,
>                       new 
>org.apache.axis.encoding.ser.BeanSerializerFactory(myprograms.complexdatatype.inner.class,

>qn),
>                       new 
>org.apache.axis.encoding.ser.BeanDeserializerFactory(myprograms.complexdatatype.inner.class,

>qn));
>
>Completly the same :
>
><beanMapping qname="myNS:innerbean" xmlns:myNS="urn:BeanService" 
>languageSpecificType="java:myprograms.complexdatatype.inner"/>
><beanMapping qname="myNS:outerbean" 
>xmlns:myNS="urn:BeanService"languageSpecificType="java:myprograms.complexdatatype.outer"/>
>
>
>
>
>  I tried using BeanSerializer but it's not working..
>
>I have declared the bean mapping for both the beans "inner" and "outer" in 
>wsdd file as follows:
>--------
><beanMapping qname="myNS:innerbean" xmlns:myNS="urn:BeanService" 
>languageSpecificType="java:myprograms.complexdatatype.inner"/>
>
><beanMapping qname="myNS:outerbean" 
>xmlns:myNS="urn:BeanService"languageSpecificType="java:myprograms.complexdatatype.outer"/>
>------
>
>I have also registered the type mapping in the client
>
>-------
>call.registerTypeMapping(inner.class, qn,
>                       new 
>org.apache.axis.encoding.ser.BeanSerializerFactory(inner.class, qn),
>                       new 
>org.apache.axis.encoding.ser.BeanDeserializerFactory(inner.class, qn));
>
>   call.registerTypeMapping(outer.class, qn1,
>                         new 
>org.apache.axis.encoding.ser.BeanSerializerFactory(outer.class, qn1),
>                         new 
>org.apache.axis.encoding.ser.BeanDeserializerFactory(outer.class, qn1));
>--------
>
>Am I missing something?
>
>           class inner {
>
>
>     private int Data;
>     public inner()
>
>     public setData(int d) {
>         Data = d;
>     }
>
>     public int getData() {
>         return Data;
>     }
>
>}
>
>class outer {
>
>     private int Data;
>     private inner in;
>
>     public outer()
>     public setData(int d) {
>         Data = d;
>     }
>
>     public int getData() {
>         return Data;
>     }
>
>     public setInnerBean(inner i {
>         in = i;
>     }
>
>     public inner getInnerBean() {
>         return in;
>     }
>
>}
>

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


Mime
View raw message