我的任务是将两个ASP应用程序连接在一起以执行各种功能。显然作为一个PHP开发人员ASP是不用担心的,哈!到目前为止,我遇到了一些小问题,但遇到了这个错误,看不到问题。正如标题所述,当解析我的调用数组(在本例中为"org")中的某个选项时,我会得到"phpType是struct,但value不是数组"。
我的代码
$result = $client->call('UserCreate',
array ( 'id' => '0',
'email' => 'josh@on.co.nz',
'sendCreationEmail' => 'TRUE',
'role_id' => 'Site Admin',
'org' => '2',
)
);
非常感谢您的帮助!谢谢
你没有付出太多。你有机会使用NuSoap吗?
我认为您的第二个参数需要是一个嵌套数组。我已经很久没有用过这个了,但这里是我在片段中的一个示例:
// call Web services function
$result = $client->call('Report.QueueOvertime', // function name
array('reportDescription' => array(
'reportSuiteID'=>'rsid',
'date'=>'2010-06-22',
'metrics'=>array(array('id'=>'pageViews')),
'locale'=>'en-US'), // end reportDescription
'http://website.com', // namespace
'', // SOAP Action
get_header($username, $secret) // security header
); // end SOAP