You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2026/10/08 12:36:00 UTC
[jira] [Resolved] (CXF-5502) WsdlServiceFactory does not fill service endpoints
[ https://issues.apache.org/jira/browse/CXF-5502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved CXF-5502.
--------------------------------------
Resolution: Fixed
> 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
> Assignee: Colm O hEigeartaigh
> Priority: Major
> Fix For: 4.2.5, 4.1.10
>
>
> *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 JAXWS frontend. JAXWS 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
(v8.20.10#820010)