cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude GUYOMARD (JIRA)" <>
Subject [jira] Created: (CXF-1651) No binding factory for namespace registered [related or similar to CXF-1517]
Date Tue, 17 Jun 2008 12:43:45 GMT
No binding factory for namespace registered [related
or similar to CXF-1517]

                 Key: CXF-1651
             Project: CXF
          Issue Type: Test
          Components: JAXB Databinding
    Affects Versions: 2.1, 2.0.5
         Environment: Microsoft Windows XP [version 5.1.2600]
Java 1.6.0_03
            Reporter: Claude GUYOMARD
             Fix For: 2.1

[ Related to issue CXF-1517 ]


Investigating CXF 2.1, i tried to create a client to consume the following service:
" Metric Weight Unit Convertor "

WSDL url :

Commands I ran:

Client code generation:

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:
Exception in thread "main" org.apache.cxf.service.factory.ServiceConstructionException
    at org.apache.cxf.jaxws.ServiceImpl.getPort(
    at org.apache.cxf.jaxws.ServiceImpl.getPort(
    at net.webservicex.MetricWeightUnit.getMetricWeightUnitHttpPost(
    at test.WsCaller.testChangeMetricWeightUnitWithPost(
    at test.WsCaller.main(
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
    at org.apache.cxf.frontend.ClientFactoryBean.create(
    at org.apache.cxf.frontend.ClientProxyFactoryBean.create(
    at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(
    at org.apache.cxf.jaxws.ServiceImpl.createPort(
    at org.apache.cxf.jaxws.ServiceImpl.getPort(
    ... 5 more
Caused by: org.apache.cxf.BusException: No binding factory for namespace
    at org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(
    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
    at org.apache.cxf.frontend.ClientFactoryBean.create(
    ... 9 more

My observations using the Eclipse debugger:

In the method JaxWSClientFactoryBean#bind(), a test for equality is done with the 2 following

1- ( data from the generated code )

2- SOAPBinding.SOAP11HTP_BINDING ( = )

I googled "". 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 ""
 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 =
A new comparison is run between :
n = versus WSDLConstants.NS_SOAP11 =
Is this really compare apples to apples ?

Just hoping that this will help to solve the problem.
Best regards,

Personal Software System (PSS)
Santa Cruz de Tenerife, Spain

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message