[英]javax.xml.ws.WebServiceException: Could not find service named
I'm getting the following error while calling a SOAP
webservice调用SOAP
出现以下错误
Caused by: javax.xml.ws.WebServiceException: Could not find service named { http://services.yell.es }LogonSrv in wsdl http://piquio.intrayell.com:10180/docmanagementapp-5.1/services/LogonSrv?wsdl引起:javax.xml.ws.WebServiceException:在 wsdl http://piquio.intrayell.com:10180/docmanagementapp-5.1/services/LogonSrv 中找不到名为 { http://services.yell.es }LogonSrv 的服务? wsdl
My WSDL
file is: http://piquio.intrayell.com:10180/docmanagementapp-5.1/services/LogonSrv?wsdl我的WSDL
文件是: http : //piquio.intrayell.com : 10180/docmanagementapp-5.1/services/LogonSrv?wsdl
Can anyone please tell me what I am doing wrong?谁能告诉我我做错了什么?
客户端中指定的名称空间( http://services.yell.es )与wsdl文件中的名称空间不匹配。
The targetNamespace
value in your LogonSrv.java
should get from http://piquio.intrayell.com:10180/docmanagementapp-5.1/services/LogonSrv?wsdl LogonSrv.java
的targetNamespace
值应该来自http://piquio.intrayell.com:10180/docmanagementapp-5.1/services/LogonSrv?wsdl
In my situation, I open my wsdl url in chrome, then find targetNamespace
attribute at the begining, set it into my xxxSrv.java
.在我的情况下,我在 chrome 中打开我的 wsdl url,然后在xxxSrv.java
找到targetNamespace
属性,将其设置到我的xxxSrv.java
。
Apart from this, I aslo have another file associate to something HttpPort
, the name
in it, I copy from the same wsdl url.除此之外,我还有另一个与HttpPort
相关联的文件,其中的name
是我从同一个 wsdl url 复制的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.