use of org.mule.runtime.module.extension.soap.internal.runtime.operation.SoapOperationExecutorFactory in project mule by mulesoft.
the class SoapInvokeOperationDeclarer method declare.
/**
* Declares the invoke operation.
*
* @param configDeclarer the soap config declarer
* @param loader a {@link ClassTypeLoader} to load some parameters types.
* @param soapErrors the {@link ErrorModel}s that this operation can throw.
*/
void declare(ConfigurationDeclarer configDeclarer, ClassTypeLoader loader, Set<ErrorModel> soapErrors) {
ReflectionCache reflectionCache = new ReflectionCache();
OperationDeclarer operation = configDeclarer.withOperation(OPERATION_NAME).describedAs(OPERATION_DESCRIPTION).requiresConnection(true).blocking(true).withModelProperty(new ComponentExecutorModelProperty(new SoapOperationExecutorFactory())).withModelProperty(new ConnectivityModelProperty(ForwardingSoapClient.class));
soapErrors.forEach(operation::withErrorModel);
declareMetadata(operation, loader);
declareOutput(operation, loader);
declareMetadataKeyParameters(operation, loader, reflectionCache);
declareRequestParameters(operation, loader);
}
Aggregations