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 4AA7611A60 for ; Mon, 9 Jun 2014 15:26:02 +0000 (UTC) Received: (qmail 46896 invoked by uid 500); 9 Jun 2014 15:26:02 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 46865 invoked by uid 500); 9 Jun 2014 15:26:02 -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 46852 invoked by uid 99); 9 Jun 2014 15:26:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 15:26:02 +0000 Date: Mon, 9 Jun 2014 15:26:02 +0000 (UTC) From: "Rebecca Searls (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5792) WSDLGetUtils Customization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14025284#comment-14025284 ] Rebecca Searls commented on CXF-5792: ------------------------------------- The provided patch is a refactoring of org.apache.cxf.frontend.WSDLGetInterceptor and org.apache.cxf.frontend.WSDLGetUtils in order to support this feature. WSDLGetInterceptor has been minimally touched. Interface WSDLGetInterceptorExtension has been created to allow a customized WSDLGetUtil class to be provided. The existing WSDLGetInterceptor.getDocument creats a new instance of WSDLGetUtils each time it is called. The new method getWsdlGetUtil supports this behavior for a custom WSDLGetUtils class. This is an undesirable practice. It is unclear if this behavior is still required? The WSDLGetUtils.getDocument method has been heavily refactored, but the other methods have been relatively untouched. The original WSDLGetUtils.getDocument method was performing both wsdl file write and read and xsd file read. These functions have been refactored into methods, writeWSDLDocument and readXSDDocument respectively. The code that determines which of these task to preform has been refactored as well. Interface WSDLDocumentUtils has been created to allow customization of WSDLGetUtils. There are now 2 getDocument methods. One to support legacy code which has an obsolete input parameter, ctxUri. This method is now just a wrapper method to one without this parameter. I have concerns about methods getWSDLIds and getSchemaLocations because they each are creating an new instance of this class to process a wsdl file. This is an undesirable practice. If 3rd parties are using these methods and they have customized this class then they would also need to be aware that they would want to override these methods with their customized class. It is unclear if this behavior is still required by these 2 methods? > WSDLGetUtils Customization > -------------------------- > > Key: CXF-5792 > URL: https://issues.apache.org/jira/browse/CXF-5792 > Project: CXF > Issue Type: New Feature > Components: Simple Frontend > Reporter: Rebecca Searls > Attachments: jbossws.patch > > > JbossWS requests the ability to customize the published URL of the soap:address > location written to the wsdl file. > We propose doing this by replacing the existing WSDLGetUtils in WSDLGetInterceptor > in the following manner. > for (Endpoint ep : getService().getEndpoints().values()) { > final List> inList = ep.getInInterceptors(); > for (Interceptor in : inList) { > if (in instanceof WSDLGetInterceptor) { > ((WSDLGetInterceptor)in).setWsdlGetUtil(new WSDLSoapAddressRewriteUtils()); > } > } > } -- This message was sent by Atlassian JIRA (v6.2#6252)