Why do I get "Could not find service named null in wsdl" exception while using @WebServiceRef and trying to use an EJB as WebServiceClient ?
Issue
- We are using @WebServiceRef and trying to use an EJB as WebServiceClient and get the following Exception:
Caused by: javax.xml.ws.WebServiceException: Could not find service named null in wsdl file:/path-to-wsdl/META-INF/WSProvider.wsdl
at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:160)
at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:148)
at org.jboss.wsf.stack.cxf.client.ProviderImpl.createServiceDelegate(ProviderImpl.java:141)
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
