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

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=\"\" xmlns:itp=\"\">
<executeProcess xmlns=\"\">
<flow action=\"start\" name=\"/Integration/Testing/Send_to_AssetInfo\">
<param name=\"AssetName\">PC123456</param>
<param name=\"AssetIP\"></param>
<param name=\"OperatingSystem\">WIN7</param>
</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' => '',
'OperatingSystem' => 'WIN7'


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,