我从java eclipse调用asp.net的web服务。
我呼叫的地址以asmx结尾:
http://mgn111:8011/MDP_InsuredDetails_WS/InsuredDetails.asmx
当我将请求发送到此srvice中的方法时,我在日志中收到此错误:
19/02/13 12:13:05 ERROR [xxxService]: ServiceProxy Update exception: 'No endpoint'
19/02/13 12:13:05 ERROR [xxxrvice]: ServiceProxy Update exception (toString): 'No
这是代码:
InsuredDetailsLocator locator_MDP =new InsuredDetailsLocator();
locator_MDP.setInsuredDetailsSoapEndpointAddress("http: //mgnt184:8056/MDP_InsuredDetails_WS/InsuredDetails.asmx");
InsuredDetailsSoapStub service = new InsuredDetailsSoapStub();
UpdateInsuredDetails_Input request_MDP =new UpdateInsuredDetails_Input();
request_MDP.setSystemName(urlProps.getProperty(MDP_USERNAME));
request_MDP.setSystemPassword(urlProps.getProperty(MDP_PASSWORD));
request_MDP.setMS_ZIHUY(insuree.getMsZihuy());
request_MDP.setKOD_CHEVRA(insuree.getKodChevra());
request_MDP.setFAMILY_NAME(insuree.getFamilyName());
request_MDP.setFIRST_NAME(insuree.getFirstName());
request_MDP.setKOD_MIN(insuree.getKodMin());
request_MDP.setSMOKING(insuree.getSmoking());
request_MDP.setCURRENT_OCCUPATION(insuree.getCurrOcupation());
request_MDP.setINTERNET_INDICATOR(insuree.getInternetInd());
request_MDP.setMS_SOCHEN_MEVUTACH_VIP(0);
if(insuree.getSemelYeshuv()!=null)
request_MDP.setSEMEL_YESHUV(insuree.getSemelYeshuv().toString());
if(insuree.getShemYeshuv()!=null)
request_MDP.setSHEM_YESHUV(insuree.getShemYeshuv().toString());
request_MDP.setSEMEL_RECHOV(insuree.getSemelRechov());
request_MDP.setSHEM_RECHOV(insuree.getShemRechov());
//I get here the exception :No endpoint
//calling the method:
UpdateInsuredDetails_Output response_MDP= service.recieveMDMDataInsuredDetails (request_MDP);