02 ° Service 02 / MuleSoft · Development & Connectors

MuleSoft development.
Mule 4, DataWeave, connectors.

For us, MuleSoft development for the Anypoint Platform means building Mule 4 applications and APIs, connecting SAP, Salesforce, and other systems through connectors, and carrying existing applications forward. Over four years, we built and extended 20 Mule services between Salesforce and SAP for a payment provider and supported them as a managed service.

Tagline Mule 4 · Connectors · DataWeave · MUnit · Mule SDK · MCP
° dl / service-02
° Platform · Building blocks

What we develop.

MuleSoft development in eight building blocks covers applications, connectors, transformations, tests, and ongoing maintenance.

°01 · Development
20
Mule services between
Salesforce and SAP
Payment provider · 2018-2022
°02 · Salesforce

Salesforce Connector

Integration through Salesforce's SOAP, REST, Bulk, and Streaming APIs to read and write records, transfer bulk data, and react to events.

°03 · SAP

SAP Connector

Send and receive IDocs, call BAPIs over RFC. From our projects, we know IDoc integrations for a payment provider and RFC calls to SAP R/3.

°04 · Custom connectors
Mule SDK
Custom connectors for systems without a prebuilt connector bundle connection, operations, and error types in one place.
°05 · Maintenance
9 years
Mule platform of a news agency
developed and maintained
around 35 Mule services · NewsML-G2
°06 · Data & messaging

Databases, JMS, and Kafka

Relational databases through JDBC, queues and topics through JMS, event streams through Apache Kafka. Plus HTTP for REST and the Web Service Consumer for SOAP.

°07 · DataWeave & MUnit

DataWeave and MUnit

Transformations between JSON, XML, and CSV with DataWeave, safeguarded by unit and integration tests with MUnit that run in the pipeline through Maven.

°08 · AI agents
MCP
Existing APIs serve as tools for AI agents when a Mule application works as an MCP server with the MCP Connector.
° Stack & tools

What we develop with.

The connectors to the connected systems and the tools of the Anypoint Platform for development, transformation, and testing.

01

MuleSoft connectors

Salesforce ConnectorSAP ConnectorDatabase ConnectorHTTP ConnectorJMS ConnectorApache Kafka ConnectorSFTP ConnectorAmazon S3 Connector
02

Development & test

DataWeaveAPIkitMUnitMule SDKAnypoint StudioAnypoint Code Builder
03

AI & MCP

Model Context ProtocolMCP ConnectorA2A ConnectorMCP policiesJSON Schema
° Mule 4 · Architecture & error handling

MuleSoft development with Mule 4, from architecture to error handling

Two questions come up early in every Mule 4 application. The first concerns the structure in flows, the second the behavior when a connected system does not respond or delivers faulty data. The Mule runtime provides clear means for both. This is how we use them in development.

Mule 4 architecture with events, flows, and configuration

A Mule application processes events. An event carries the message with payload and attributes as well as variables and passes through the components of a flow. We structure larger applications into several flows and subflows that call each other through Flow Reference. Connection details and other shared settings live in global elements that all flows reference.

On Error Continue or On Error Propagate

Mule 4 assigns every error a type, such as HTTP:NOT_FOUND or DB:CONNECTIVITY, and the error handler selects the first matching handling. On Error Propagate executes its steps and passes the error on to the calling level, and a transaction owned by the flow is rolled back. On Error Continue executes its steps and ends the flow as if it had completed successfully, and the transaction is committed. Which variant fits depends on whether the caller needs to learn about the error.

Flows organize an application by tasks, error types organize what can go wrong along the way.

The levels of error handling in Mule 4

The runtime offers several levels. A global error handler applies to the entire application. Every flow can bring its own error handling, and a subflow uses that of the calling flow. The Try scope encloses individual steps and handles their errors on the spot. For transient faults, the Until Successful scope repeats a step up to a defined number of attempts, and connectors re-establish a dropped connection through their reconnection strategy. We combine these means per integration.

For an industrial company, we built an integration layer on CloudHub 2.0 that brings business credit data from D&B Direct+ into the SAP process in real time. The flows are designed to be resilient, so that a failed query does not block the SAP process if the external service does not respond at some point.


° MuleSoft connectors

MuleSoft connectors from Salesforce and SAP to Kafka.

Mule connects systems through connectors. Six integrations and what the respective connector does.

01

Salesforce Connector

Works with Salesforce's SOAP, REST, Bulk, and Streaming APIs. For a payment provider, it carried leads from Salesforce into the integration layer in front of SAP.

SalesforceBulk APIStreaming API
02

SAP Connector

Sends and receives IDocs and calls BAPIs over RFC. Our projects include IDoc integrations for a payment provider and RFC calls to the SAP R/3 of a publishing company.

SAPIDocRFC
03

Database Connector

Connects Mule to relational databases through JDBC, with preconfigured connections for MySQL, Oracle, and Microsoft SQL Server. Queries run with input parameters.

JDBCSQLDatabase
04

JMS and Apache Kafka

The JMS Connector sends and receives messages through queues and topics, and the Apache Kafka Connector connects Kafka clusters. Asynchronous integrations decouple the systems involved.

JMSKafkaMessaging
05

HTTP and web services

The HTTP Connector exposes REST APIs and calls them, and the Web Service Consumer connects SOAP services. For an industrial company, Mule talks to D&B Direct+ over REST and OAuth 2.0.

RESTSOAPOAuth 2.0
06

Files, SFTP, and Amazon S3

The File, FTP, and SFTP connectors read, write, and move files with the same operations. The Amazon S3 Connector connects the object storage of AWS.

SFTPAmazon S3Files
° Deep dive · Custom connectors & MCP
As of 2026  ·  2 min read

Beyond the prebuilt connectors with Mule SDK and MCP

MuleSoft's connectors cover widely used systems and protocols. Two tasks go beyond that. One is systems for which there is no prebuilt connector, the other is AI agents that are meant to access existing APIs. For the first there are the Mule SDK and the Connector Builder, for the second the MCP Connector. Both are part of our MuleSoft development.

01

A custom connector with the Mule SDK

The Mule SDK lets you extend the Mule runtime with your own modules, in Java or, for simpler cases, in XML. A custom connector brings connection setup, operations, and error types for a system together in one place and is available to all Mule applications through Exchange. For HTTP-based services with an OpenAPI specification, MuleSoft also offers the Connector Builder.

A connector is software with its own lifecycle that is versioned, tested, and adapted to new versions of the runtime and the target system. We take on this maintenance as well. For the archive migration of a photo agency, we wrote the connector for loading the AWS Snowball devices ourselves.

  • °
    Connection   Establishing, validating, and reusing the connection to the target system.
  • °
    Operations   The calls of the system as building blocks for flows.
  • °
    Error types   Custom error types that flows can respond to specifically.
  • °
    Maintenance   Versioning, tests, and adaptation to new runtime versions.
02

Existing APIs for AI agents with the MCP Connector

The Model Context Protocol (MCP) is an open protocol through which AI agents use tools and data from external systems. With MuleSoft's MCP Connector, a Mule application works as an MCP server. A flow with a Tool Listener becomes a tool, described by a name, a description, and a JSON schema of its inputs. Behind it, the flow calls the existing API, which remains unchanged.

MuleSoft recommends offering complex endpoints as simpler, clearly scoped tools. We therefore design the tools around business tasks and check in advance whether the API specification describes operations, parameters, and schemas unambiguously. We have already delivered an MCP project for a client. For communication between agents, there is also the A2A Connector.

  • °
    Server   A Mule application with the MCP Connector in your Mule runtime environment.
  • °
    Tools   One tool per business task, with name, description, and input schema.
  • °
    Transport   Streamable HTTP, the transport recommended by the vendor.
  • °
    Security   Authentication, access control, and rate limits through policies.
° Best practices

MuleSoft development best practices in six rules.

Six rules that our MuleSoft developers follow in every Mule application. Each one is based on what the MuleSoft documentation provides for.

01

The API specification comes first  · API design

APIkit generates the scaffolding of the application from a RAML or OpenAPI specification and validates incoming requests against this contract.

In practice. We design the interface before the implementation and align it with everyone involved. For a publishing company, RAML fragments and business types formed the shared contract between SugarCRM and SAP R/3.

02

Choose DataWeave functions deliberately  · Transformation

DataWeave is the transformation and expression language of the Mule runtime. Its functions differ in the details. For example, map iterates over arrays and mapObject over objects. The function isBlank also treats whitespace and null as empty.

In practice. We put recurring mappings into dedicated DataWeave modules so that they are maintained and tested in one place.

03

Tests with MUnit are part of the build  · Quality

MUnit is the testing framework for Mule applications. It covers unit and integration tests, replaces connected systems with mocks, and is integrated with Maven.

In practice. The tests run in the pipeline with every change. At a payment provider, every change went through build, MUnit tests, and deployment.

04

Logging that helps with troubleshooting  · Operations

Mule logs through Log4j 2. The file log4j2.xml defines per application what is written at which level and whether synchronously or asynchronously.

In practice. We define per integration which steps are logged. Read more in our articles on logging with Log4j2 and on logging HTTP communication.

05

Configuration separate from the flow  · Security

Mule reads settings from property files and environment variables. Confidential values can be stored encrypted with secure configuration properties.

In practice. Addresses, timeouts, and credentials are not in the flow. Connections live in global elements that all flows reference.

06

Access rules as a policy  · Governance

Authentication, rate limits, and similar rules can be applied to an API as policies without changing the application. In Mule 4, you can also develop custom policies and make them available through Exchange.

In practice. Flows contain the business logic, policies the rules for access. Read more on the page API Management & Security.

° Frequently asked questions about MuleSoft development

Questions about Mule 4, connectors, and maintenance.

01 What does MuleSoft development at dataliquid include?

We develop Mule 4 applications and APIs for the Anypoint Platform, from the specification through flows, transformations with DataWeave, and connecting the systems through connectors to tests with MUnit and delivery through a pipeline. On top of that come custom connectors with the Mule SDK and the further development of existing applications. The page MuleSoft Consulting shows the full offering.

02 Are there services for the maintenance of Mule applications and Mule connectors?

Yes. We take existing Mule applications and connectors into maintenance and develop them further, as a managed service if you wish. For a payment provider, we built and extended 20 Mule services over four years and supported them as a managed service. For a news agency, we developed and maintained around 35 services over nine years. Details on operations are on the page Platform Enablement & Services.

03 Which MuleSoft connectors are available for SAP and Salesforce?

The SAP Connector sends and receives IDocs and calls BAPIs over RFC, and there are dedicated connectors for SAP S/4HANA. The Salesforce Connector works with Salesforce's SOAP, REST, Bulk, and Streaming APIs. In our projects, we connected Salesforce with SAP via IDoc for a payment provider and connected SugarCRM to SAP R/3 via RFC for a publishing company. At an energy utility whose solution architecture we are responsible for, the integrations to SAP IS-U and S/4HANA Utilities use OData and RFC.

04 What is DataWeave used for in Mule 4?

DataWeave is the Mule runtime's language for data transformations and at the same time its expression language in components and connectors. A script reads data in one format, reshapes it, and writes it in another, for example from CSV to JSON or from XML to a flat file format. Our article Mule DataWeave Basics shows the fundamentals with examples.

05 When do you need a custom MuleSoft connector?

When there is no prebuilt connector for a system and several Mule applications access it. A custom connector then bundles connection, operations, and error types in one place. With the Mule SDK, it is built in Java or XML, and for HTTP-based services with an OpenAPI specification there is the Connector Builder. We develop such connectors and take on their maintenance.

06 Is there a MuleSoft connector for MCP?

Yes. MuleSoft's MCP Connector implements the Model Context Protocol. With it, a Mule application works as an MCP server and exposes operations of existing APIs as tools for AI agents, or it calls the tools of other servers as an MCP client. Useful tools require a specification that describes operations, parameters, and schemas unambiguously. Authentication and access are governed through policies.

MuleSoft Development

Let's talk about your Mule applications.

The initial call with an engineer covers your systems, your initiative, and a sensible next step.

01 Submit a request
* Required field
Topic
Encrypted transmission · TLS 1.3