Search in sources :

Example 1 with SoapOperationMetadata

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

the class InvokeOutputTypeResolver method getOutputType.

/**
 * {@inheritDoc}
 */
@Override
public MetadataType getOutputType(MetadataContext context, WebServiceTypeKey key) throws MetadataResolvingException, ConnectionException {
    SoapClient client = getClient(context, key);
    SoapOperationMetadata metadata = client.getMetadataResolver().getOutputMetadata(key.getOperation());
    return buildOutputType(metadata.getBodyType(), metadata.getHeadersType(), metadata.getAttachmentsType(), context.getTypeBuilder());
}
Also used : SoapClient(org.mule.runtime.soap.api.client.SoapClient) SoapOperationMetadata(org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata)

Example 2 with SoapOperationMetadata

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

the class InvokeRequestTypeResolver method getInputMetadata.

/**
 * {@inheritDoc}
 */
@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.getBodyType();
}
Also used : SoapClient(org.mule.runtime.soap.api.client.SoapClient) SoapOperationMetadata(org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata)

Example 3 with SoapOperationMetadata

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

the class InvokeInputHeadersTypeResolver method getInputMetadata.

/**
 * {@inheritDoc}
 */
@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.getHeadersType();
}
Also used : SoapClient(org.mule.runtime.soap.api.client.SoapClient) SoapOperationMetadata(org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata)

Example 4 with SoapOperationMetadata

use of org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata 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)4 SoapOperationMetadata (org.mule.runtime.soap.api.client.metadata.SoapOperationMetadata)4