Search in sources :

Example 6 with SoapClient

use of org.mule.runtime.soap.api.client.SoapClient in project mule by mulesoft.

the class InvokeInputAttachmentsTypeResolver method getInputMetadata.

@Override
public MetadataType getInputMetadata(MetadataContext context, WebServiceTypeKey key) throws MetadataResolvingException, ConnectionException {
    SoapClient client = getClient(context, key);
    SoapOperationMetadata metadata = client.getMetadataResolver().getInputMetadata(key.getOperation());
    return metadata.getAttachmentsType();
}
Also used : SoapClient(org.mule.runtime.soap.api.client.SoapClient) SoapOperationMetadata(org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata)

Aggregations

SoapClient (org.mule.runtime.soap.api.client.SoapClient)6 SoapOperationMetadata (org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata)4 SoapResponse (org.mule.runtime.soap.api.message.SoapResponse)2 InputStream (java.io.InputStream)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Optional (java.util.Optional)1 Inject (javax.inject.Inject)1 Test (org.junit.Test)1 Registry (org.mule.runtime.api.artifact.Registry)1 BindingContext (org.mule.runtime.api.el.BindingContext)1 MuleExpressionLanguage (org.mule.runtime.api.el.MuleExpressionLanguage)1 OperationModel (org.mule.runtime.api.meta.model.operation.OperationModel)1 DataType (org.mule.runtime.api.metadata.DataType)1 INPUT_STREAM (org.mule.runtime.api.metadata.DataType.INPUT_STREAM)1 TypedValue (org.mule.runtime.api.metadata.TypedValue)1 TransformationService (org.mule.runtime.api.transformation.TransformationService)1 Exceptions.wrapFatal (org.mule.runtime.core.api.rx.Exceptions.wrapFatal)1 MessageTransformerException (org.mule.runtime.core.api.transformer.MessageTransformerException)1 TransformerException (org.mule.runtime.core.api.transformer.TransformerException)1