Why do I get "Could not find service named null in wsdl" exception while using @WebServiceRef and trying to use an EJB as WebServiceClient ?

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content