Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 15376 invoked from network); 17 Jun 2010 11:59:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jun 2010 11:59:35 -0000 Received: (qmail 58156 invoked by uid 500); 17 Jun 2010 10:12:53 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 58029 invoked by uid 500); 17 Jun 2010 10:12:49 -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 58013 invoked by uid 99); 17 Jun 2010 10:12:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 10:12:48 +0000 X-ASF-Spam-Status: No, hits=-1526.8 required=10.0 tests=ALL_TRUSTED,AWL 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; Thu, 17 Jun 2010 10:12:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5HACRoi007165 for ; Thu, 17 Jun 2010 10:12:27 GMT Message-ID: <19447245.53001276769547170.JavaMail.jira@thor> Date: Thu, 17 Jun 2010 06:12:27 -0400 (EDT) From: "Nilup Bandara (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2851) Schemas passed by ServiceFactoryBean.setSchemaLocation() are not accessible in DataBinding model MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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.