use of org.mule.runtime.extension.api.soap.WebServiceDefinition in project mule by mulesoft.
the class InvokeKeysResolver method buildServiceKey.
private MetadataKey buildServiceKey(ForwardingSoapClient connection, WebServiceDefinition ws) {
String serviceId = ws.getServiceId();
SoapMetadataResolver resolver = connection.getSoapClient(serviceId).getMetadataResolver();
MetadataKeyBuilder key = newKey(serviceId).withDisplayName(ws.getFriendlyName());
List<String> excludedOperations = ws.getExcludedOperations();
resolver.getAvailableOperations().stream().filter(ope -> !excludedOperations.contains(ope)).forEach(ope -> key.withChild(newKey(ope).withDisplayName(NameUtils.titleize(ope))));
return key.build();
}
Aggregations