Contact Us 1-800-596-4880

@WsdlBodyEnricher

DevKit is compatible only with Studio 6 and Mule 3. To build Mule 4 connectors, see the Mule SDK documentation.

With the release of DevKit 3.9.0. the @WsdlBodyEnricher annotation is intended for the session token to be injected into the SOAP body.

Implementation

The method marked as @WsdlBodyEnricher should receive an object representing the message payload, and return it modified with the session token.

@WsdlBodyEnricher
    public Document cookPayload(ServiceDefinition serviceDefinition, String operationName, Document payload){
        // Customize payload with session token
    }

Background

As with the SOAP headers modifier, the invocation of this body enricher method occurs after all the connection and initialization steps are complete.