AnsweredAssumed Answered

capam_command and batchsequence

Question asked by nmm.nb on Jan 23, 2018
Latest reply on Jan 23, 2018 by prira01

Helllo

 

Has anyone ever tried running batchsequences ?

I'm trying to send a batchsequence command using the CAPAM CLI, but it's complaining about the schema validation.

Based on the AddAll.xml sample that's on the documentation, I created the following one:

<?xml version="1.0" encoding="UTF-8"?>
<CLI_REQUEST>
   <COMMAND name="addTargetApplication">
      <COMMAND_PARAMETERS>
         <PARAMETER>
            <NAME>TargetServer.hostName</NAME>
            <VALUE>10.1.1.1</VALUE>
         </PARAMETER>
         <PARAMETER>
            <NAME>TargetApplication.type</NAME>
            <VALUE>Generic</VALUE>
         </PARAMETER>
         <PARAMETER>
            <NAME>TargetApplication.name</NAME>
            <VALUE>GEN-Test</VALUE>
         </PARAMETER>
         <PARAMETER>
            <NAME>Attribute.descriptor1</NAME>
            <VALUE>Test</VALUE>
         </PARAMETER>
         <PARAMETER>
            <NAME>Attribute.descriptor2</NAME>
            <VALUE>Test</VALUE>
         </PARAMETER>
      </COMMAND_PARAMETERS>
   </COMMAND>
</CLI_REQUEST>

 

But I'm getting the following error.

Jan 23, 2018 10:45:29 AM com.cloakware.cspm.common.util.ab b
SEVERE: Failed to validate XML document schema
org.xml.sax.SAXParseException; cvc-elt.1.a: Cannot find the declaration of element 'CLI_REQUEST'.

 

For me, this error doesn't make sense since my request respects the schema provided on the documentation.

Does anyone ever saw this error?

Thanks in advance

 

Best regards

Outcomes