AnsweredAssumed Answered

Passing Parameters to a PA Process on Start via PHP (SOAP)

Question asked by kevwong on Jun 12, 2013
Latest reply on Apr 2, 2014 by Agsantos
Hi,

I have a requirement to initiate a Start of a CA PA Process via PHP, however, I seem to have run into a brick wall. The process starts, but I'm unable to read any of the name/value pairs in the parameters I'm sending.
I'm on a Windows Server 2013 system running CA PA 3.1 SP1.

Using SoapUI this is the SOAP Message which works:

[font=Courier New]<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:itp=\"http://www.ca.com/itpam\">
<soapenv:Header/>
<soapenv:Body>
<executeProcess xmlns=\"http://www.ca.com/itpam\">
<flow action=\"start\" name=\"/Integration/Testing/Send_to_AssetInfo\">
<auth>
<user>itpamadmin</user>
<password>apassword</password>
</auth>
<params>
<param name=\"AssetName\">PC123456</param>
<param name=\"AssetIP\">10.20.30.40</param>
<param name=\"OperatingSystem\">WIN7</param>
</params>
</flow>
</executeProcess>
</soapenv:Body>
</soapenv:Envelope>[font=Courier New][font][font]

This is the PHP fragment of the parameters I'm trying to send:

[font=Courier New]<?php

$url = "http://localhost:8080/itpam/soap?wsdl";

$PA_Params = array(
'flow' => array(
'action' => "start",
'name' => "/Integration/Testing/Send_to_AssetInfo",
'auth' => array (
'user' => "itpamadmin",
'password' => "apassword"
),
'params' => array (
'param' => array (
'AssetName' => 'PC123456',
'AssetIP' => '10.20.30.40',
'OperatingSystem' => 'WIN7'
)
)
)
);

?>[font]

Within the Send_to_AssetInfo process, the first operator is referencing the param data like:

Process.InboundAssetName = Process.AssetName

Using PHP, the process kicks off successfully, but the values I'm trying to read in are blank/undefined.
Using SoapUI, everything works perfectly.

Can anyone help with the correct method of referencing the name/value pairs in the PHP? I have searched everywhere through the documentation, but there is no reference to structuring this kind of call.

Any help would be greatly appreciated!

Kind regards,

Kevin.

Outcomes