实例化SOAP客户端时,我收到NullPointerException
@WebServiceClient(name = "QWEServiceManager", targetNamespace = "http://external.ws.services.abc.com/", wsdlLocation = "file:/C:/Users/XYZ/Desktop/77777/QWEServiceManagerService.wsdl")
public class QWEServiceManagerService extends Service
当我尝试创建客户端实例以调用SOAP服务
QWEServiceManagerService serv = new QWEServiceManagerService()
以上抛出
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to createEndpointReference Provider
at javax.xml.ws.spi.Provider.provider(Provider.java:160)
at javax.xml.ws.Service.<init>(Service.java:92)
at QWEServiceManagerService.<init>(QWEServiceManagerService .java:48)
at WsClient.main(WsClient.java:26)
Caused by: java.lang.NullPointerException
at javax.xml.ws.spi.Provider.provider(Provider.java:152)
... 3 more