7 Replies Latest reply on May 21, 2014 11:25 AM by Moses Arockiadass

    How to pass NAMED_OBJECT values in SOAP?

      I am trying to pass jobKey and jobRunId to cancel a job, it works in NSH but failing through SOAP UI. Please suggest.


      ----------------------------------------------------------------------------------------------------------------------------------------------------------------


      SOAP request:

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://bladelogic.com/webservices/framework/xsd" xmlns:clit="http://bladelogic.com/webservices/skeleton/clitunnel">

         <soapenv:Header>

            <xsd:transactionId></xsd:transactionId>

            <xsd:sessionId>urn:uuid:B9EDD4FF36A3F6970A1399462434386</xsd:sessionId>

         </soapenv:Header>

         <soapenv:Body>

            <clit:executeCommandByParamList>

               <!--Optional:-->

               <clit:nameSpace>JobRun</clit:nameSpace>

               <!--Optional:-->

               <clit:commandName>cancel</clit:commandName>

               <!--Zero or more repetitions:-->

               <clit:commandArguments>NAMED_OBJECT=jobKey</clit:commandArguments>

               <clit:commandArguments>122955</clit:commandArguments>

               </clit:executeCommandByParamList>

         </soapenv:Body>

      </soapenv:Envelope>

       

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       

      ERROR MESSAGE

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

         <soapenv:Body>

            <soapenv:Fault>

               <faultcode>soapenv:Server</faultcode>

               <faultstring>CommandNotFoundException</faultstring>

               <detail>

                  <ns6:CommandNotFoundException xmlns:ns6="http://bladelogic.com/webservices/skeleton/clitunnel">

                     <ns6:CommandNotFoundException xsi:type="ns2:CommandNotFoundException" xmlns:ns2="http://bladelogic.com/webservices/cli/factory/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                        <Exception xsi:type="s630:string" xmlns:s630="http://www.w3.org/2001/XMLSchema">Found command 'JobRun.cancel' but with mismatching arguments.</Exception>

                     </ns6:CommandNotFoundException>

                  </ns6:CommandNotFoundException>

               </detail>

            </soapenv:Fault>

         </soapenv:Body>

      </soapenv:Envelope>