开发者

No end point for service interface! "Error"

开发者 https://www.devze.com 2023-04-05 04:45 出处:网络
I\'m getting No end point and attachment support error while I\'m trying to reach my webservice. I can开发者_JS百科 make the authorization but then I can not be able to get to the webservice because

I'm getting No end point and attachment support error while I'm trying to reach my webservice.

I can开发者_JS百科 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)


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


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);
0

精彩评论

暂无评论...
验证码 换一张
取 消