0

I get the exception : No endpoint.

This is the code:

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.setID(11111);
request_MDP.setFAMILY_NAME("hhhh");
request_MDP.setFIRST_NAME("dddd");![enter image description here][1]
request_MDP.setKOD_DIVUR_SHIVUKI_ELC(insuree.getKodDivurShivukiElc());
//I get here the exception :No endpoint          
//calling the method:
UpdateInsuredDetails_Output response_MDP= service.recieveMDMDataInsuredDetails(request_MDP);

When the compiler is going to the method: recieveMDMDataInsuredDetails , inside InsuredDetailsSoapStub class - I got the error from there, this is the code inside the method:

public il.co.migdal.ws.tempuri.UpdateInsuredDetails_Output recieveMDMDataInsuredDetails(il.co.migdal.ws.tempuri.UpdateInsuredDetails_Input l_input) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
.....
4

1 回答 1

1

您正在对象上设置端点,locator_MDP但在对象上进行调用,该对象与(至少在发布的代码中)service没有关系locator_MDP

于 2013-02-27T14:01:11.197 回答