The Workday Anypoint Connector facilitates connections between Mule integration applications and Workday by making API calls to the Workday Web Services. This example shows you how to use this connector in an integration application where a customer is added to the Workday Revenue Management Console.
The application accepts an XML code which containing the required customer information (customer name, status and category). It parses this xml using the Datamapper component and creates a new customer record in a Workday instance.
In your application in Studio, click the Global Elements tab. Double-click the Workday Revenue Management global element to open its Global Element Properties panel. Change the contents of the user, password and endpoint fields to your account-specific values as follows:
user <USER>@<DOMAIN> password <PASSWORD> endpoint <ENDPOINT_URL>
Click OK to save your changes.
Make an HTTP POST request to http://localhost:9090/ with the request body as follows:
<?xml version="1.0" encoding="UTF-8"?> <root> <Account> <CustomerName>John Doe</CustomerName> <BusinessEntityName>John Doe</BusinessEntityName> <Customer_Category_Reference_Type>Customer_Category_ID</Customer_Category_Reference_Type> <Customer_Category_Reference_Value>CUSTOMER_CATEGORY-5</Customer_Category_Reference_Value> <Customer_Status_Reference_Type>Business_Entity_Status_Value_ID</Customer_Status_Reference_Type> <Customer_Status_Reference_Value>ACTIVE</Customer_Status_Reference_Value> </Account> </root>
|If you understood this example|
|XML only SOAP Web Service - This application illustrates how you can use Mule to expose a SOAP Web Service.||View|
|If you struggled with this example|
|Implementing a Choice Exception Strategy - Understand the concept of error handling in Mule using a choice exception strategy.||View|