Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 77815 invoked from network); 26 Sep 2006 20:53:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 20:53:31 -0000 Received: (qmail 89449 invoked by uid 500); 26 Sep 2006 20:53:30 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 89417 invoked by uid 500); 26 Sep 2006 20:53:30 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 89405 invoked by uid 99); 26 Sep 2006 20:53:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [204.127.200.83] (HELO sccrmhc13.comcast.net) (204.127.200.83) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 13:53:29 -0700 Received: from [192.168.3.100] (c-71-205-191-164.hsd1.mi.comcast.net[71.205.191.164]) by comcast.net (sccrmhc13) with ESMTP id <200609262053080130045smqe>; Tue, 26 Sep 2006 20:53:08 +0000 Message-ID: <45199327.5050408@envoisolutions.com> Date: Tue, 26 Sep 2006 16:52:55 -0400 From: Dan Diephouse User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Daniel Kulp CC: cxf-dev@incubator.apache.org Subject: Re: Get schema types from JAXB? References: <45198287.50207@envoisolutions.com> <200609261648.37456.daniel.kulp@iona.com> In-Reply-To: <200609261648.37456.daniel.kulp@iona.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Daniel Kulp wrote: > Dan, > > > >> Anyone know if there is a way to get the schema type names from JAXB for >> a particular class? In XFire we always used Aegis for non JAXB types and >> we wrote some code to read the xml type names from the annotations too. >> I don't see anything that covers all the bases in the JAXB apis - so I'm >> wondering what Celtix did. >> > > I don't think we have anything cause I don't think Celtix ever NEEDED that > functionality/information. What's the use case? > > >> Basically I'm looking for something that >> returns "xsd:string" when I give it a String.class. >> > > Well, the problem is, String.class can also map to xsd:normalizedString or > some of the SimpleType restrictions. Thus, that's not reliable. > > > Use case is we're taking a class and generating a WSDL for it. To do this you have to figure out what the schema types are of the operation parameters. - Dan -- Dan Diephouse Envoi Solutions http://envoisolutions.com http://netzooid.com/blog