服务接口没有端点! “错误”

发布于 2024-12-05 05:31:51 字数 940 浏览 2 评论 0原文

当我尝试访问我的网络服务时,出现“无端点和附件支持”错误。

我可以进行授权,但由于出现“无端点”错误,我无法访问网络服务。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

向地狱狂奔 2024-12-12 05:31:51

我通过使用定位器类调用服务而不是直接加载存根类解决了这个问题 -

GlobalWeatherLocator locator = new GlobalWeatherLocator();
        String cityName = "delhi";
        String countryName = "India";
        String data = locator.getGlobalWeatherSoap().getWeather(cityName, countryName);

I have solved this problem by calling the service using locator class rather than directly loading stub class -

GlobalWeatherLocator locator = new GlobalWeatherLocator();
        String cityName = "delhi";
        String countryName = "India";
        String data = locator.getGlobalWeatherSoap().getWeather(cityName, countryName);
音栖息无 2024-12-12 05:31:51

可以通过先调用 Locator 文件,然后调用 SOAP Webservice 中要调用的方法来解决。
可以使用下面的代码:

ADUserProdAuthMainServiceLocator loc=new ADUserProdAuthMainServiceLocator();
Employee result=loc.getADUserProdAuthMain().run(username, password);

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 :

ADUserProdAuthMainServiceLocator loc=new ADUserProdAuthMainServiceLocator();
Employee result=loc.getADUserProdAuthMain().run(username, password);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文