Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 33256 invoked from network); 8 Nov 2007 19:07:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2007 19:07:57 -0000 Received: (qmail 3231 invoked by uid 500); 8 Nov 2007 19:07:36 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 3193 invoked by uid 500); 8 Nov 2007 19:07:36 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Delivered-To: moderator for cxf-user@incubator.apache.org Received: (qmail 96394 invoked by uid 99); 8 Nov 2007 19:03:24 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sven.rega@gmx.de designates 213.165.64.20 as permitted sender) X-Authenticated: #593151 X-Provags-ID: V01U2FsdGVkX1+6oYIj/Ri6UdtqmSjTwbDsY/jl5uKeWh5FMYhy1m Z+bvhIqq/d+a1s Message-ID: <47335D65.8000104@gmx.de> Date: Thu, 08 Nov 2007 20:03:01 +0100 From: Sven Rega User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: Re: wsdl2java code generation problem ArrayOf Problem References: <4731FB9E.4080609@gmx.de> <1194469206.31575.9.camel@gmazza-desktop> <47334AD3.3060605@gmx.de> <1194545703.25841.3.camel@gmazza-desktop> In-Reply-To: <1194545703.25841.3.camel@gmazza-desktop> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org hello, the would be a solution, but i read in the jaxb tutorial, that it is possible to make customize the binding for jaxb2 in external files. jaxb2 provided by the architecture for customize binding. i prefer solutions where to use the inbuild features. may be, i have to read the complete jaxb2 guide to understand the binding. Glen Mazza schrieb: > You should be able to do that with XSLT. Take your WSDL and convert it > to a WSDL with the change below that you want. XSLT has a substring > function that can help you, but really, XSLT is beyond the scope of this > list--I would check with Mulberry[1] if you have any questions. > > Regards, > Glen > > [1] http://www.mulberrytech.com/xsl/xsl-list/ > > Am Donnerstag, den 08.11.2007, 18:43 +0100 schrieb Sven Rega: > >> thanks for your fast answer. >> exist there any possibility for create an external cusomize binding >> file, where i can map/bind ALL types which begins with ArrayOf... are >> mapped/binded to real java arrays?? >> >> regards, sven >> >> Glen Mazza schrieb: >> >>> Am Mittwoch, den 07.11.2007, 18:53 +0100 schrieb Sven: >>> >>> >>> >>>> this class 'PlaceBetsReq' takes an array of PlaceBets but wsdl2java >>>> generates a class 'ArrayOfPlaceBets' but i need PlaceBets[]. >>>> i axis 1.4 is see it works, but not at me with xfire. >>>> >>>> >>>> >>> I have not done this before, but I think I have an answer for you. >>> (BTW, this answer is for *CXF*, not XFire, I don't know how similar >>> XFire would be here.) >>> >>> Your problem seems to be described in Mark Hansen's SOA Using Java Web >>> Services book, pp. 201-202 and 206-207. Anyway, if you want to switch >>> >from a list to an array property, the WSDL jaxb:property annotation can >>> help you (you'll need to modify the WSDL you keep locally for this >>> though). >>> >>> Something like this: >>> >>> >>> >>> >>> >>> >>> >>> >> name="PlaceBets" nillable="true" type="types:PlaceBets"/> >>> >>> >>> We use the same JAXB as GlassFish Metro, so you can query their >>> JAXB/Metro forum[1] as well if it might help. >>> >>> Regards, >>> Glen >>> >>> [1] http://forums.java.net/jive/forum.jspa?forumID=46 >>> >>> >>> >>> >>>> may be someone can give my some tips or better a solution. >>>> >>>> sven >>>> >>>> >>>> >>>>