IT Process Automation

  • 1.  PAM 4.0 Webservices

    Posted Dec 06, 2012 03:54 AM
    Good Morning All

    I'm having a small issue with the PAM 4.0 web services.

    I'm trying to execute the "getProcessStatus" SOAP call.
    The SOAP call requires the ROID of the Process and a Pair of Auth details.

    My SOAP call is as below:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:itp="http://www.ca.com/itpam">
    <soapenv:Header/>
    <soapenv:Body>
    <itp:getProcessStatus>
    <itp:flow>
    <itp:ROID>13</itp:ROID>
    <itp:auth>
    <itp:user>Usname Removed</itp:user>
    <itp:password>Password Removed</itp:password>
    </itp:auth>
    </itp:flow>
    </itp:getProcessStatus>
    </soapenv:Body>
    </soapenv:Envelope>
    ^^ The 13 as shown above is from the process data set via the web GUI,

    I cant figure out how to pass the ROID of the process to the web service.
    I have tried as above, ROID enclosed in CDATA tags and the ROID enclosed in " and '

    All of the above return the same error :
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>error retrieving flow state</faultstring>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    Any ideas or help would be greatly appreciated :)

    Cheers

    Charl


  • 2.  RE: PAM 4.0 Webservices
    Best Answer

    Posted Dec 07, 2012 12:14 PM
    You are submitting the ROID correctly, but (even though the documentation says otherwise) you must submit

    <itp:action>check</itp:action>

    So your XML payload becomes

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:itp="http://www.ca.com/itpam">
    <soapenv:Header/>
    <soapenv:Body>
    <itp:getProcessStatus>
    <itp:flow>
    <itp:ROID>13</itp:ROID>
    <itp:action>check</itp:action>
    <itp:auth>
    <itp:user>Usname Removed</itp:user>
    <itp:password>Password Removed</itp:password>
    </itp:auth>
    </itp:flow>
    </itp:getProcessStatus>
    </soapenv:Body>
    </soapenv:Envelope>


  • 3.  RE: PAM 4.0 Webservices

    Posted Dec 11, 2012 06:30 AM

    Kaj.Wierda wrote:

    You are submitting the ROID correctly, but (even though the documentation says otherwise) you must submit

    <itp:action>check</itp:action>

    So your XML payload becomes

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:itp="http://www.ca.com/itpam">
    <soapenv:Header/>
    <soapenv:Body>
    <itp:getProcessStatus>
    <itp:flow>
    <itp:ROID>13</itp:ROID>
    <itp:action>check</itp:action>
    <itp:auth>
    <itp:user>Usname Removed</itp:user>
    <itp:password>Password Removed</itp:password>
    </itp:auth>
    </itp:flow>
    </itp:getProcessStatus>
    </soapenv:Body>
    </soapenv:Envelope>
    Thanks Kaj, Works Just like expected :grin: