Return-Path: X-Original-To: apmail-tuscany-dev-archive@www.apache.org Delivered-To: apmail-tuscany-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7D5E91C4 for ; Sat, 24 Mar 2012 10:18:48 +0000 (UTC) Received: (qmail 28654 invoked by uid 500); 24 Mar 2012 10:18:48 -0000 Delivered-To: apmail-tuscany-dev-archive@tuscany.apache.org Received: (qmail 28630 invoked by uid 500); 24 Mar 2012 10:18:48 -0000 Mailing-List: contact dev-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list dev@tuscany.apache.org Received: (qmail 28623 invoked by uid 99); 24 Mar 2012 10:18:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2012 10:18:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2012 10:18:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1364D343880 for ; Sat, 24 Mar 2012 10:18:27 +0000 (UTC) Date: Sat, 24 Mar 2012 10:18:27 +0000 (UTC) From: "Simon Laws (Closed) (JIRA)" To: dev@tuscany.apache.org Message-ID: <369696606.12622.1332584307080.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2072066441.12292.1332562884496.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (TUSCANY-4036) WSDL service names are duplicated when user does not provide WSDL 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/TUSCANY-4036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon Laws closed TUSCANY-4036. ------------------------------- Resolution: Fixed Fix Version/s: Java-SCA-2.0 Applied at revision: 1304746. Thanks for the patch Greg. > WSDL service names are duplicated when user does not provide WSDL > ----------------------------------------------------------------- > > Key: TUSCANY-4036 > URL: https://issues.apache.org/jira/browse/TUSCANY-4036 > Project: Tuscany > Issue Type: Bug > Affects Versions: Java-SCA-2.0 > Reporter: Greg Dritschler > Assignee: Simon Laws > Priority: Minor > Fix For: Java-SCA-2.0 > > Attachments: TUSCANY-4036.patch > > > Scenario: An SCA composite has multiple components which > * use binding.ws > * do not provide a WSDL document via the wsdlElement attribute > * implement the same Java interface > In this case, for each web service binding, WSDLServiceGenerator takes the WSDL Definition that is generated by Interface2WSDLGenerator and adds a WSDL service and port to it. In this scenario where multiple components implement the same interface, the resulting WSDL services have the same definition namespace (which is derived from the Java package name) and the same local name (which is derived from the Java class name). This may make it difficult for the runtime to tailor the WSDL to support component-specific policy. > This problem does not exist when the user does provide WSDL (either via wsdlElement or interface.wsdl). In that case WSDLServiceGenerator creates a new WSDL Definition with a modified namespace that includes the component name. This is possible because the generated WSDL can import the user's WSDL document. It is more difficult to do this in the problem scenario because WSDLServiceGenerator is already working with a generated document that has no physical location for the import to refer to. > An alternate solution is for WSDLServiceGenerator to include the component name in the WSDL service name. > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira