Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 93802 invoked from network); 18 Sep 2003 09:10:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Sep 2003 09:10:03 -0000 Received: (qmail 27459 invoked by uid 500); 18 Sep 2003 09:09:20 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 27444 invoked by uid 500); 18 Sep 2003 09:09:20 -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 27433 invoked from network); 18 Sep 2003 09:09:20 -0000 From: "Wolfgang Vullhorst" To: "Axis-Userlist (E-Mail)" Subject: SerializationTester and Vector serialization Date: Thu, 18 Sep 2003 11:11:32 +0200 Message-ID: <002e01c37dc4$daf817e0$37020a0a@hw0358> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 18.09.2003 11:09:32, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 18.09.2003 11:09:32, Serialize complete at 18.09.2003 11:09:32 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, a few days ago I found a SerializationTester in this list (written by Toshiyuki Kimura). It works fine but I have a problem with the serialization of an object "AnalysisRequest" that contains a Vector of "AnalysisRequestElement" objects. I registered the type mappings for "Request", "RequestElement" and Vector" with SerializationTester st = new SerializationTester(); st.registerTypeMapping(AnalysisRequest.class, new QName("http://www.s-und-n.de/journal/analysis", "AnalysisRequest"), BeanSerializerFactory.class, BeanDeserializerFactory.class); st.registerTypeMapping(AnalysisRequestElement.class, new QName("http://www.s-und-n.de/journal/analysis", "AnalysisRequestElement"), BeanSerializerFactory.class, BeanDeserializerFactory.class); st.registerTypeMapping(Vector.class, new QName("http://www.s-und-n.de/journal/analysis", "AnalysisRequestElement"), VectorSerializerFactory.class, VectorDeserializerFactory.class); st.test(req); // <- req is an object of AnalysisRequest The tester gives me the following result: Your class : [de.sundn.prod.journal.analysis.definition.AnalysisRequest] ===> Serializer: [org.apache.axis.encoding.ser.BeanSerializer@13ad085] ========== Result: start ========== ========== Result: end ========== *** Serialization was succeed !! *** How can I configure the serializer to serialize the Vector too? I tried the tester because I want to pass a java object as a part of a message style SOAP request. Perhaps there is another way to do this? Thanks for your help, Wolfgang