use of org.wso2.carbon.apimgt.impl.wsdl.model.WSDLInfo in project carbon-apimgt by wso2.
the class WSDL11ProcessorImpl method getWsdlInfo.
@Override
public WSDLInfo getWsdlInfo() throws APIMgtWSDLException {
WSDLInfo wsdlInfo = new WSDLInfo();
Map<String, String> endpointsMap = getEndpoints();
wsdlInfo.setEndpoints(endpointsMap);
wsdlInfo.setVersion(APIConstants.WSDL_VERSION_11);
return wsdlInfo;
}
use of org.wso2.carbon.apimgt.impl.wsdl.model.WSDLInfo in project carbon-apimgt by wso2.
the class WSDL20ProcessorImpl method getWsdlInfo.
@Override
public WSDLInfo getWsdlInfo() throws APIMgtWSDLException {
Map<String, String> endpointsMap = getEndpoints();
WSDLInfo wsdlInfo = new WSDLInfo();
wsdlInfo.setEndpoints(endpointsMap);
wsdlInfo.setVersion(WSDL_VERSION_20);
return wsdlInfo;
}
use of org.wso2.carbon.apimgt.impl.wsdl.model.WSDLInfo in project carbon-apimgt by wso2.
the class APIMappingUtil method fromWSDLValidationResponseToDTO.
/**
* Converts a WSDL validation response model to DTO.
*
* @param validationResponse validation response model
* @return Converted WSDL validation response model to DTO
*/
public static WSDLValidationResponseDTO fromWSDLValidationResponseToDTO(WSDLValidationResponse validationResponse) {
WSDLValidationResponseDTO wsdlValidationResponseDTO = new WSDLValidationResponseDTO();
WSDLInfo wsdlInfo;
if (validationResponse.isValid()) {
wsdlValidationResponseDTO.setIsValid(true);
wsdlInfo = validationResponse.getWsdlInfo();
WSDLValidationResponseWsdlInfoDTO wsdlInfoDTO = new WSDLValidationResponseWsdlInfoDTO();
wsdlInfoDTO.setVersion(wsdlInfo.getVersion());
List<WSDLValidationResponseWsdlInfoEndpointsDTO> endpointsDTOList = fromEndpointsMapToWSDLValidationResponseEndpointsDTO(wsdlInfo.getEndpoints());
wsdlInfoDTO.setEndpoints(endpointsDTOList);
wsdlValidationResponseDTO.setWsdlInfo(wsdlInfoDTO);
} else {
wsdlValidationResponseDTO.setIsValid(false);
wsdlValidationResponseDTO.setErrors(getErrorListItemsDTOsFromErrorHandler(validationResponse.getError()));
}
return wsdlValidationResponseDTO;
}
Aggregations