Andrey Poltavtsev created CXF-5502:
--------------------------------------

             Summary: WsdlServiceFactory does not fill service endpoints.
                 Key: CXF-5502
                 URL: https://issues.apache.org/jira/browse/CXF-5502
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.7.8
            Reporter: Andrey Poltavtsev


*How 2 reproduce:*

        JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
        Client client = dcf.createClient("Library.wsdl");
        Endpoint epc = client.getEndpoint();
        System.out.println("Service name: " + epc.getService().getName());
        Map<QName, Endpoint> epm = epc.getService().getEndpoints();  // the 
problem is: epm = null
                
*The reason of problem:*
                        "WsdlServiceFactory" 
(/cxf-rt-core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceFactory.java) does 
not create endpoints during service creation. 
                        This problem is not actual for simple frontend. Simple 
frontend uses ReflectionServiceFactoryBean 
(/cxf-rt-core/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java)
                        instead of WsdlServiceFactory. Endpoints in this case 
are filled during service creation without any problems (see 
ReflectionServiceFactoryBean:createEndpoints() for details).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to