> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Format to XML-RPC

> Wraps your data in an XML-RPC method call and converts it to XML.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Turns your data into an XML-RPC request. XML-RPC is a simple protocol for calling a function on a remote system over the web. This formatter wraps your data as the arguments of the function you name and produces the XML the remote system expects, with a `methodCall` element at the top.

If your data already contains a `params` section, that section is used as the call arguments; otherwise your whole payload is used as the arguments.

This documentation describes: [Schema](/schemas/serializer/xmlrpc-serializer)

## Fields

<FormField property="methodName" label="Remote Procedured" required>
  The name of the function to call on the remote system, for example `stock.update`. This field accepts [placeholders](/references/placeholders), so you can build the name from your data, such as `&{operation}`.
</FormField>

## Sample data

| Field             | Value          |
| ----------------- | -------------- |
| Remote Procedured | `stock.update` |

Input:

```json theme={null}
{
    "sku": "A1",
    "quantity": 5
}
```

Output:

```xml theme={null}
<?xml version="1.0"?>
<methodCall><methodName>stock.update</methodName><params><sku>A1</sku><quantity>5</quantity></params></methodCall>
```

```json Configuration theme={null}
{
  "prototype": "xmlrpc-serializer",
  "parameters": {
    "methodName": "stock.update"
  }
}
```
