properties.setProperty(WSDLEndpointFactory.SKIP_WSDL_PARSING,"true");
Endpoint endpoint = EndpointFactory.getEndpointFromElement(endpointEl, factory, false, properties);
if(endpoint!=null && endpoint instanceof WSDLEndpoint){
WSDLEndpoint wsdlEp = (WSDLEndpoint) endpoint;
WSDLEndpointData data = new WSDLEndpointData();
data.setEpName(wsdlEp.getName());
data.setEpUri(wsdlEp.getWsdlURI());
data.setEpServ(wsdlEp.getServiceName());
data.setEpPort(wsdlEp.getPortName());
data.setEpType(WSDL_EP);
data.setEpDur(wsdlEp.getDefinition().getInitialSuspendDuration());
data.setEpwsdlTimeoutAction(wsdlEp.getDefinition().getTimeoutAction());
data.setEpactionDuration(wsdlEp.getDefinition().getTimeoutDuration());
data.setEpaddressingOn(wsdlEp.getDefinition().isAddressingOn());
data.setEpsecutiryOn(wsdlEp.getDefinition().isSecurityOn());
data.setEpwsaddSepListener(wsdlEp.getDefinition().isUseSeparateListener());
data.setEprelMesg(wsdlEp.getDefinition().isReliableMessagingOn());
data.setEpwsdlSecutiryKey(wsdlEp.getDefinition().getWsSecPolicyKey());
data.setEprmKey(wsdlEp.getDefinition().getWsRMPolicyKey());
data.setEperrorCodes(errorCodeListBuilder(wsdlEp.getDefinition().getSuspendErrorCodes()));
data.setRetryDisabledErrorCodes(errorCodeListBuilder(wsdlEp.getDefinition().
getRetryDisabledErrorCodes()).trim());
data.setEpmaxSusDuration(wsdlEp.getDefinition().getSuspendMaximumDuration());
data.setEpsusProgFactor(wsdlEp.getDefinition().getSuspendProgressionFactor());
data.setEptimdedOutErrorCodes(errorCodeListBuilder(wsdlEp.getDefinition().getTimeoutErrorCodes()));
data.setEpretryTimeout(wsdlEp.getDefinition().getRetryDurationOnTimeout());
data.setEpretryDelay(wsdlEp.getDefinition().getRetriesOnTimeoutBeforeSuspend());
if (wsdlEp.getWsdlDoc() != null) {
data.setInLineWSDL(wsdlEp.getWsdlDoc().toString());
}
return data;
//return EndpointSerializer.getElementFromEndpoint(
// synapseConfiguration.getEndpoint(endpointName.trim()));