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.


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

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


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

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub