Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 26886 invoked from network); 18 Nov 2008 11:00:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Nov 2008 11:00:44 -0000 Received: (qmail 33790 invoked by uid 500); 18 Nov 2008 11:00:52 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 33774 invoked by uid 500); 18 Nov 2008 11:00:52 -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 33763 invoked by uid 99); 18 Nov 2008 11:00:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 03:00:52 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 10:59:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 32E4D234C286 for ; Tue, 18 Nov 2008 02:59:44 -0800 (PST) Message-ID: <995130339.1227005984193.JavaMail.jira@brutus> Date: Tue, 18 Nov 2008 02:59:44 -0800 (PST) From: "Glen Mazza (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1920) Oracle WSDL files contain ESB port entry that causes connection failures In-Reply-To: <1190592365.1226986664378.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648573#action_12648573 ] Glen Mazza commented on CXF-1920: --------------------------------- I suspect Dan would understand this problem more, but in the meantime, can you create for us a dummy WSDL generated by Oracle ESB that does this? I want to make sure it is a doc/lit one and not a an rpc/encoded or similar that CXF can't handle anyway. Also, it might be good to see if Metro can handle that WSDL (http://www.jroller.com/gmazza/entry/creating_a_wsdl_first_web1) --if it does so without complaint that would add a lot of weight for us to make this change. If it also halts with Metro though, that might indicate (1) we're behaving as we're supposed to with respect to the JAX-WS spec, or (2) something is wrong with those Oracle WSDL's, or (3) there's legitimate user reasons for halting with such an error ("Ignore its existence and continue working with the SOAP port would be advantageous" might not be so helpful if there was a typo or similar problem--users would *want* in this case CXF to halt and let them know about it.) > Oracle WSDL files contain ESB port entry that causes connection failures > ------------------------------------------------------------------------ > > Key: CXF-1920 > URL: https://issues.apache.org/jira/browse/CXF-1920 > Project: CXF > Issue Type: Bug > Components: Core, JAX-WS Runtime, Soap Binding > Affects Versions: 2.1.3 > Reporter: Frank Adcock > Priority: Critical > > A WSDL file generated by Oracle ESB web services creates a port-type entry which is not supported by CXF of the form > > CXF attempts to create a binding to the port name which fails with the following > Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Cannot find the destination factory, check the port //wsdl:port[@name={0}] > A correct soap name is available in the WSDL but because there is no defined port name or matching transport CXF throws this exception when working with Oracle ESB web services. > A quick fix for it may be to check for a null bindingId in the method org.apache.cxf.jaxws.ServiceImpl.addPort and not add if null bindingId. I am unable to download the sources here to be able to verify if this will hold up. > public final void addPort(QName portName, String bindingId, String address) { > PortInfoImpl portInfo = new PortInfoImpl(bindingId, portName, serviceName); > portInfo.setAddress(address); > portInfos.put(portName, portInfo); > } > In 2.1.2 the same exception was being thrown when initially creating the service which has since been modified as part of the 2.1.3 release. > In my particular case I am not interested in the Oracle ESB port so to ignore its existence and continue working with the SOAP port would be advantageous. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.