Create Custom Connector Using Mule XML SDK

MuleSoft creates a great opportunity of reusing the readily available connectors but in some cases, the connector might not be available for connecting to a particular system. We need to write custom logic like spring beans/Java code to connect to it. However, if we don't want to include the same logic in every API which implements the requirement, we can create a custom connector. There are broadly two types of custom connectors:

  1. Java SDK
  2. XML SDK.

This article will look at the XML SDK, which provides an easier learning curve than Java SDK and is more like developing a Mule application.

Mule custom connector using XML SDK

Why do we need a custom connector when there is already a lot of connectors available from MuleSoft? Well, reasons can be various such as reusability, simplicity of use, compactness, etc.

Suppose you have a legacy system for which there is no connector available and it is a complex one to connect, so now you want to hide this complex logic somewhere and make sure all the API which are planning to connect to this legacy system does without knowing the complexity of it.