javax.xml.ws.handler.PortInfo getBindingID() incorrect
------------------------------------------------------

                 Key: CXF-693
                 URL: https://issues.apache.org/jira/browse/CXF-693
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.0-RC
            Reporter: Bharath Ganesh


The binding id returned in javax.xml.ws.handler.PortInfo getBindingID() method 
is incorrect. 
initializePorts() in ServiceImpl uses EndpointInfo.getTransportId() to set the 
bindingId. Even  ei.getBinding().getBindingId() is broken. 
Ideally ei.getBinding().getBindingId() should return the proper binding id. 
The stack trace of bindingID initialization is here: 
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1158)
        at org.apache.cxf.service.model.BindingInfo.<init>(BindingInfo.java:45)
        at 
org.apache.cxf.binding.soap.model.SoapBindingInfo.<init>(SoapBindingInfo.java:45)
        at 
org.apache.cxf.binding.soap.model.SoapBindingInfo.<init>(SoapBindingInfo.java:40)
        at 
org.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java:252)
        at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLServiceBuilder.java:471)
        at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:262)
        at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:159)
        at 
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
        at 
org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:108)
        at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:99)
        at 
org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
        at javax.xml.ws.Service.<init>(Service.java:57)
                     .....(Cut shorted)
JAXWS TCK tests fail becuse of this. 




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

Reply via email to