Clarity PPM

Expand all | Collapse all

Launching a Job from SOAP Request

  • 1.  Launching a Job from SOAP Request

    Posted 11-09-2018 05:59 AM

    Hi Everyone,

     

    With few threads as example, I used the following content to trigged the "Delete Investments" Job from SOAP request

     

    SOAP Request

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://www.niku.com/xog/InvokeAction">
       <soapenv:Header>
          <inv:Auth>
             <inv:Username>my_username</inv:Username>
             <inv:Password>my_password</inv:Password>
          </inv:Auth>
       </soapenv:Header>
       <soapenv:Body>
          <!-- Delete_Projects is the Job Definition ID of Delete Investments Job -->
          <inv:Process>
             <code>Delete_Projects</code>
             <request/>
          </inv:Process>
       </soapenv:Body>
    </soapenv:Envelope>

     

    SOAP Response

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Header/>
       <soapenv:Body>
          <SessionID xmlns="http://www.niku.com/xog">SESSION_ID</SessionID>
          <ProcessResult xmlns="http://www.niku.com/xog/InvokeAction"/>
       </soapenv:Body>
    </soapenv:Envelope>

     

    The User is granted with "Job - Run" rights. But, I cannot see the Job triggered.

    What am I missing?

     

    NOTE: The Delete Investments job does not require any parameters.



  • 2.  Re: Launching a Job from SOAP Request

    Posted 11-09-2018 06:41 AM

    I might be wrong, but from memory the InvokeAction is used to submit processes not jobs?

     

    These might help; (or search for InvokeAction on the community)

    Launch a job from gel. 

    How to call process using GEL script from command prompt? 



  • 3.  Re: Launching a Job from SOAP Request

    Posted 11-12-2018 10:41 PM