public class ConsumeOperation extends Object
WebServiceConsumer operation. the ConsumeOperation consumes an operation of the connected web service
and returns it's response.
The consume operation expects an XML body and a set of headers and attachments if required.
For the cases where no input parameters are required the SoapRequestGenerator will generate a body to perform the
operation if a null value is passed.
| Constructor and Description |
|---|
ConsumeOperation() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<Object,WscAttributes> |
consume(WebServiceConsumer config,
WscConnection connection,
String operation,
SoapMessageBuilder message)
Consumes an operation from a SOAP Web Service.
|
@OnException(value=WscExceptionEnricher.class) @Throws(value=ConsumeErrorTypeProvider.class) @OutputResolver(output=ConsumeOutputResolver.class, attributes=WscAttributesResolver.class) public org.mule.runtime.extension.api.runtime.operation.Result<Object,WscAttributes> consume(@UseConfig WebServiceConsumer config, @Connection WscConnection connection, @MetadataKeyId(value=OperationKeysResolver.class) String operation, @NullSafe @Optional @TypeResolver(value=MessageBuilderResolver.class) SoapMessageBuilder message) throws SoapFaultException
connection - the connection resolved to execute the operation.operation - the name of the web service operation that aims to invoke.message - the constructed SOAP message to perform the request.SoapFaultExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.