Barracuda Email Security Gateway
Why is my XMLRPC API script stating "no such path"?
Scope:
Email Security Gateway, API
Answer:
XMLRPC API script is returning "no such path" when executing.
You will need to analyze the XML input before and after it is sent to the XMLRPC engine on the Barracuda.
Here is an example where the XML input was throwing in an a whitespace (blank) string, instead of a ![CDATA] block to represent nothing there.
<?xml version="1.0" encoding="UTF8"?>
<methodCall>
<methodName>config.list</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>child_type</name>
<value>
<string>
<![CDATA[domain]]>
</string>
</value>
</member>
<member>
<name>path</name>
<value>
<string></string> <-- should be <string><![CDATA[]]></string>
</value>
</member>
<member>
<name>type</name>
<value>
<string>
<![CDATA[global]]>
</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
The proper XML input should appear like so with a valid ![CDATA] on sections where input is expected from the API server (Barracuda):
---XML REQUEST FORMAT EXAMPLE---
<?xml version="1.0" encoding="UTF-8" ?>
<methodCall>
<methodName>config.list</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>child_type</name>
<value>
<string><![CDATA[domain]]></string>
</value>
</member>
<member>
<name>path</name>
<value>
<string><![CDATA[]]></string>
</value>
</member>
<member>
<name>type</name>
<value>
<string><![CDATA[global]]></string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
---XML REQUEST END ---