Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB6B7C7FC for ; Tue, 1 Oct 2013 08:31:38 +0000 (UTC) Received: (qmail 10148 invoked by uid 500); 1 Oct 2013 08:25:38 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 10101 invoked by uid 500); 1 Oct 2013 08:25:28 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 10072 invoked by uid 99); 1 Oct 2013 08:25:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 08:25:24 +0000 Date: Tue, 1 Oct 2013 08:25:24 +0000 (UTC) From: "Grzegorz Grzybek (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5254) Unmarshall exception if a sequence is used in a struct. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5254?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D137827= 17#comment-13782717 ]=20 Grzegorz Grzybek commented on CXF-5254: --------------------------------------- One more thing. [CORBA to WSDL/SOAP Interworking (C2WSDL) spec|http://www.o= mg.org/spec/C2WSDL/] says in chapter "4.1.7.5 Sequences": bq. XML Schema for WS-I conformant RPC/Literal Soap Binding =E2=80=93 an ID= L sequence is mapped onto a sequence complex type (the SOAP encoding soapen= c:Array type MUST NOT be used with WS-I conformant soap bindings). So I think that the sequences - even the ones contained in structs should h= ave separate complex type and the struct's member of type sequence should b= e separate element (in Juergen's case: "s1") with the type of IDL sequence = mapped to XSD complexType. > Unmarshall exception if a sequence is used in a struct. > --------------------------------------------------------------- > > Key: CXF-5254 > URL: https://issues.apache.org/jira/browse/CXF-5254 > Project: CXF > Issue Type: Bug > Components: CORBA Binding > Affects Versions: 2.7.5, 2.7.6 > Environment: JAVA7 / Windows 7 > Reporter: Juergen Bockhorn > Priority: Blocker > Attachments: CorbaBugRepro.zip > > > A server function returns a struct. This struct contains another struct w= hich contains a sequence. Calling this method with a CXF/Corba-Clie= nt leads to an unmarshall exception: > {code} > Warnung: Interceptor for {http://cxf.apache.org/bindings/corba/idl/repro}= repro.ServiceCORBAService#{http://cxf.apache.org/bindings/corba/idl/repro}g= etFirst has thrown exception, unwinding now > org.apache.cxf.interceptor.Fault: Unmarshalling Error: unerwartetes Eleme= nt (URI:"", lokal:"item"). Erwartete Elemente sind <{http://cxf.apache.org/= bindings/corba/idl/repro}id>,<{http://cxf.apache.org/bindings/corba/idl/rep= ro}s1>=20 > =09at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecode= r.java:808) > =09at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecode= r.java:629) > =09at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157) > =09at org.apache.cxf.interceptor.BareInInterceptor.handleMessage(BareInIn= terceptor.java:138) > ... > {code} > (sorry for german). > Using a pure CORBA-client works. > I will attach a repro project to this issue if I have figured out how it = works :-) -- This message was sent by Atlassian JIRA (v6.1#6144)