Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 28783 invoked from network); 18 Jun 2010 17:18:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Jun 2010 17:18:49 -0000 Received: (qmail 39906 invoked by uid 500); 18 Jun 2010 17:18:48 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 39886 invoked by uid 500); 18 Jun 2010 17:18:48 -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 39878 invoked by uid 99); 18 Jun 2010 17:18:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 17:18:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 17:18:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5IHIOLs027840 for ; Fri, 18 Jun 2010 17:18:24 GMT Message-ID: <14175946.81981276881504030.JavaMail.jira@thor> Date: Fri, 18 Jun 2010 13:18:24 -0400 (EDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Assigned: (CXF-2851) Schemas passed by ServiceFactoryBean.setSchemaLocation() are not accessible in DataBinding model In-Reply-To: <19447245.53001276769547170.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp reassigned CXF-2851: -------------------------------- Assignee: Daniel Kulp > Schemas passed by ServiceFactoryBean.setSchemaLocation() are not accessible in DataBinding model > ------------------------------------------------------------------------------------------------ > > Key: CXF-2851 > URL: https://issues.apache.org/jira/browse/CXF-2851 > Project: CXF > Issue Type: Bug > Components: Core > Reporter: Nilup Bandara > Assignee: Daniel Kulp > Attachments: CXF-2851.patch > > > I am working on implementing the JiBX databinding implementation for Apache CXF and I've come across the following situation which I think could be a possible shortcoming. I've also attached two patches as a solution for that. > I've used the following code to start up a simple service and I've used serviceFactoryBean.setSchemaLocations() method to pass a list of schema locations. > LibraryServiceImpl libraryServiceImpl = new LibraryServiceImpl(); > ServerFactoryBean svrFactory = new ServerFactoryBean(); > ArrayList schemaLocations = new ArrayList(); > schemaLocations.add("file:///home/nilupa/Documents/experiment/types.xsd"); > svrFactory.setSchemaLocations(schemaLocations); > svrFactory.setServiceClass(LibraryService.class); > svrFactory.setAddress("http://localhost:8080/LibraryService"); > svrFactory.setServiceBean(libraryServiceImpl); > svrFactory.getServiceFactory().setDataBinding(new JiBXDataBinding()); > svrFactory.create(); > However that information is inaccessible in the service model or in the AbstractDataBinding classes. When I looked in more deeply I found that AbstarctDataBinding is populated with schemas that are specified by serviceFactoryBean.setSchemaLocations() when no DataBinding is specified and when ReflectionServiceFactoryBean.createDefaultDataBinding() is invoked. I think AbstarctDataBinding should be populated not only when no databinding is specified but also when particular databinding object is provided with schemas specified by setSchemaLocations() method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.