服务接口没有端点! “错误”
当我尝试访问我的网络服务时,出现“无端点和附件支持”错误。
我可以进行授权,但由于出现“无端点”错误,我无法访问网络服务。
Console:
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint
faultSubcode:
faultString: No endpoint <------------
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:org.apache.axis.NoEndPointException
{http://xml.apache.org/axis/}stackTrace:No endpoint <--------------
at functions.rfc.sap.document.sap_com.Zws001_BindingStub.ZF_GET_CUSTOMERS(Zws001_BindingStub.java:414)
at test.test1.main(test1.java:23)
{http://xml.apache.org/axis/}hostname:logosi3
No endpoint
at functions.rfc.sap.document.sap_com.Zws001_BindingStub.ZF_GET_CUSTOMERS(Zws001_BindingStub.java:414)
at test.test1.main(test1.java:23)
I'm getting No end point and attachment support error while I'm trying to reach my webservice.
I can make the authorization but then I can not be able to get to the webservice because of this "No end point" error.
Console:
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint
faultSubcode:
faultString: No endpoint <------------
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:org.apache.axis.NoEndPointException
{http://xml.apache.org/axis/}stackTrace:No endpoint <--------------
at functions.rfc.sap.document.sap_com.Zws001_BindingStub.ZF_GET_CUSTOMERS(Zws001_BindingStub.java:414)
at test.test1.main(test1.java:23)
{http://xml.apache.org/axis/}hostname:logosi3
No endpoint
at functions.rfc.sap.document.sap_com.Zws001_BindingStub.ZF_GET_CUSTOMERS(Zws001_BindingStub.java:414)
at test.test1.main(test1.java:23)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过使用定位器类调用服务而不是直接加载存根类解决了这个问题 -
I have solved this problem by calling the service using locator class rather than directly loading stub class -
可以通过先调用 Locator 文件,然后调用 SOAP Webservice 中要调用的方法来解决。
可以使用下面的代码:
It can be solved by calling the Locator file first and then calling the method which you want to invoke in the SOAP Webservice .
Below code can be used :