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 7D3448A0C for ; Fri, 9 Sep 2011 18:31:34 +0000 (UTC) Received: (qmail 30146 invoked by uid 500); 9 Sep 2011 18:31:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 30100 invoked by uid 500); 9 Sep 2011 18:31:34 -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 30092 invoked by uid 99); 9 Sep 2011 18:31:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:31:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Fri, 09 Sep 2011 18:31:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 045478A358 for ; Fri, 9 Sep 2011 18:31:09 +0000 (UTC) Date: Fri, 9 Sep 2011 18:31:09 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: <201542289.9424.1315593069014.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-1651) No binding factory for namespace http://schemas.xmlsoap.org/wsdl/http/ registered [related or similar to CXF-1517] 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/CXF-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-1651. ------------------------------ Resolution: Won't Fix Fix Version/s: Invalid HTTP GET/POST binding unsupported (use JAXRS) and the soap bindings works fine. > No binding factory for namespace http://schemas.xmlsoap.org/wsdl/http/ registered [related or similar to CXF-1517] > ------------------------------------------------------------------------------------------------------------------ > > Key: CXF-1651 > URL: https://issues.apache.org/jira/browse/CXF-1651 > Project: CXF > Issue Type: Test > Components: JAXB Databinding > Affects Versions: 2.0.5, 2.1 > Environment: Microsoft Windows XP [version 5.1.2600] > Java 1.6.0_03 > Reporter: Claude GUYOMARD > Fix For: Invalid > > > [ Related to issue CXF-1517 ] > Hi, > Investigating CXF 2.1, i tried to create a client to consume the following service: > " Metric Weight Unit Convertor " > http://www.webservicex.net/WS/WSDetails.aspx?WSID=33&CATID=13 > WSDL url : http://www.webservicex.net/convertMetricWeight.asmx?WSDL > Commands I ran: > Client code generation: > wsdl2java http://www.webservicex.net/convertMetricWeight.asmx?WSDL > WS consumption: > MetricWeightUnitHttpPost httpPost = service.getMetricWeightUnitHttpPost(); > double res = httpPost.changeMetricWeightUnit("123", MetricWeights.KILOGRAM.toString(), MetricWeights.GRAM.toString()); > Is this a correct use of the generated classes ? > Exception stacktrace I receive: > INFO: Creating Service {http://www.webserviceX.NET/}MetricWeightUnit from WSDL: http://www.webservicex.net/convertMetric > Weight.asmx?WSDL > Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:249) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:234) > at javax.xml.ws.Service.getPort(Service.java:92) > at net.webservicex.MetricWeightUnit.getMetricWeightUnitHttpPost(MetricWeightUnit.java:99) > at test.WsCaller.testChangeMetricWeightUnitWithPost(WsCaller.java:56) > at test.WsCaller.main(WsCaller.java:20) > Caused by: org.apache.cxf.service.factory.ServiceConstructionException > at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:58) > at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:97) > at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:89) > at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:369) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:247) > ... 5 more > Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/http/ registere > d. > at org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:91) > at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:92) > at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51) > ... 9 more > My observations using the Eclipse debugger: > In the method JaxWSClientFactoryBean#bind(), a test for equality is done with the 2 following values: > 1- http://schemas.xmlsoap.org/wsdl/http/ ( data from the generated code ) > 2- SOAPBinding.SOAP11HTP_BINDING ( = http://schemas.xmlsoap.org/wsdl/soap/http ) > I googled "http://schemas.xmlsoap.org/wsdl/soap/http". No result ! Naively : Does using this namespace really have a sense ? couldn't it be the origin of the problem #CXF-1517 ? > Then, just for passing the test, I modified the value of the variable that contained "http://schemas.xmlsoap.org/wsdl/http/" for SOAPBinding.SOAP11HTP_BINDING and then reset this variable to its original value. > A new exception is launched in SoapBindingInfo#resolveSoapVersion(String n) where n = http://schemas.xmlsoap.org/wsdl/http/ > A new comparison is run between : > n = http://schemas.xmlsoap.org/wsdl/http/ versus WSDLConstants.NS_SOAP11 = http://schemas.xmlsoap.org/wsdl/soap/ > Is this really compare apples to apples ? > Just hoping that this will help to solve the problem. > Best regards, > Claude GUYOMARD > Personal Software System (PSS) > Santa Cruz de Tenerife, Spain -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira