简体   繁体   English

javax.xml.ws.WebServiceException:找不到名为的服务

[英]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.javatargetNamespace值应该来自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.

相关问题 javax.xml.ws.WebServiceException:找不到以wsdl命名的服务 - javax.xml.ws.WebServiceException: Could not find service named in wsdl 调用 WSDL 服务时出现 javax.xml.ws.WebServiceException - javax.xml.ws.WebServiceException when invoking WSDL service “ javax.xml.ws.WebServiceException:不是有效的服务。”代理问题? - “javax.xml.ws.WebServiceException: is not a valid service.” proxy issue? 无法创建服务异常javax.xml.ws.WebServiceException: - Failed to create service exception javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException:不是有效的端口 - javax.xml.ws.WebServiceException: is not a valid port javax.xml.ws.WebServiceException:org.apache.cxf.service.factory.ServiceConstructionException:创建服务失败 - javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service javax.xml.ws.WebServiceException:类在Web服务中返回HashMap时没有名称为return的属性 - javax.xml.ws.WebServiceException: class do not have a property of the name return when returning HashMap in web service javax.xml.ws.WebServiceException: 无法访问 WSDL - javax.xml.ws.WebServiceException: Failed to access the WSDL 在 java 中导入 javax.xml.ws.WebServiceException 时出错 class - Error while importing javax.xml.ws.WebServiceException in java class javax.xml.ws.WebServiceException:未定义的端口类型: - javax.xml.ws.WebServiceException: Undefined port type:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM