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 9FF1BFA4A for ; Mon, 8 Apr 2013 05:07:18 +0000 (UTC) Received: (qmail 82855 invoked by uid 500); 8 Apr 2013 05:07:18 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 82691 invoked by uid 500); 8 Apr 2013 05:07:17 -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 82623 invoked by uid 99); 8 Apr 2013 05:07:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 05:07:16 +0000 Date: Mon, 8 Apr 2013 05:07:16 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CXF-4928) CXF-rt-frontend-simple - incorrect "location" attribute with "wsdl:import" tag 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-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang reassigned CXF-4928: --------------------------------- Assignee: Freeman Fang > CXF-rt-frontend-simple - incorrect "location" attribute with "wsdl:import" tag > ------------------------------------------------------------------------------ > > Key: CXF-4928 > URL: https://issues.apache.org/jira/browse/CXF-4928 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.6.2, 2.7.3 > Environment: OpenEJB embedded server with CXF implementation > Reporter: Pawel Ruta > Assignee: Freeman Fang > Attachments: WSDLGetUtils.java > > > I'm using CXF 2.6.2 implementation with OpenEJB embedded 4.5.0 for functional testing in my project. > When using interface for WebService and implementation of this interface but without "name" and "targetNamespace" attribute in @WebServic, OpenEJB server publish wsdl with "wsdl:import" that has incorrect "location" attribute. > CXF implementation with Jboss 7 behave correctly. > Example. > 1. Interface > {code} > @WebService(name = "WSTest ", targetNamespace = "http://test.com/wstest") > public interface WSTest { > //... > } > {code} > 2. Implementation > {code} > @Stateless > @WebService > public class WSTestImpl implements WSTest { > //... > } > {code} > 3. Published wsdl by OpenEJB under http://127.0.0.1:8983/test/WSTestImpl?wsdl : > {code} > > > {code} > The "?wsdl" keyword is repeated 2 times: > OpenEJB or CXF doesn't set any properties of the endpoint WS (like PUBLISHED_ENDPOINT_URL) and this cause that WSDLGetUtils.updateDoc method take the whole address of wsdl (http://127.0.0.1:8983/test/WSTestImpl?wsdl) and append to it another "?wsdl" keyword causing this bug. > I've made quick, not elegant, fix to WSDLGetUtils.java version 2.6.2 (but problem exists also with newest 2.7.3). Simply cutting the end of base location if it has "?wsdl" substring. > {code} > // FIX base adres can be like http://aaa.com/Service?wsdl > // remove wsdl parameter > int indexOfParam = base.indexOf("?"); > if (indexOfParam != -1){ > base = base.substring(0, indexOfParam); > } > {code} > Probably more elegant solution is needed. > Attached source of the whole class WSDLGetUtils.java version 2.6.2 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira