0

我在尝试访问我的网络服务时收到无端点和附件支持错误。

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

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)
4

2 回答 2

1

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

GlobalWeatherLocator locator = new GlobalWeatherLocator();
        String cityName = "delhi";
        String countryName = "India";
        String data = locator.getGlobalWeatherSoap().getWeather(cityName, countryName);
于 2016-06-23T06:13:34.813 回答
0

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

ADUserProdAuthMainServiceLocator loc=new ADUserProdAuthMainServiceLocator();
Employee result=loc.getADUserProdAuthMain().run(username, password);
于 2020-10-08T16:00:38.203 回答