We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.

Why is my XMLRPC API script stating "no such path"?

  • Type: Knowledgebase
  • Date changed: 7 months ago
Solution #00005600

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 ---