* @param epName endpoint name
* @return address endpoint data of the endpoint
* @throws Exception incase of an error
*/
public DefaultEndpointData getDefaultEndpoint(String epName) throws Exception {
DefaultEndpointData data = new DefaultEndpointData();
try {
org.wso2.carbon.endpoint.stub.types.common.to.DefaultEndpointData tempData
= stub.getDefaultEndpoint(epName);
data.setEpName(tempData.getEpName());
data.setEpType(tempData.getEpType());
data.setErrorCodes(tempData.getErrorCodes());
data.setFormat(tempData.getErrorCodes());
data.setMaxSusDuration(tempData.getMaxSusDuration());
data.setMtom(tempData.getMtom());
data.setPox(tempData.getPox());
data.setRest(tempData.getRest());
data.setGet(tempData.getGet());
data.setRetryDelay(tempData.getRetryDelay());
data.setRetryTimeout(tempData.getRetryTimeout());
data.setRmPolKey(tempData.getRmPolKey());
data.setSecPolKey(tempData.getSecPolKey());
data.setSepList(tempData.getSepList());
data.setSoap11(tempData.getSoap11());
data.setSoap12(tempData.getSoap12());
data.setSuspendDurationOnFailure(tempData.getSuspendDurationOnFailure());
data.setSusProgFactor(tempData.getSusProgFactor());
data.setSwa(tempData.getSwa());
data.setTimdedOutErrorCodes(tempData.getTimdedOutErrorCodes());
data.setTimeoutAct(tempData.getTimeoutAct());
data.setTimeoutActionDur(tempData.getTimeoutActionDur());
data.setWsadd(tempData.getWsadd());
data.setWsrm(tempData.getWsrm());
data.setWssec(tempData.getWssec());
data.setRetryDisabledErrorCodes(tempData.getRetryDisabledErrorCodes());
data.setDescription(tempData.getDescription());
data.setProperties(tempData.getProperties());
} catch (Exception e) {
handleFault(e);
}
return data;
}