WSDL& PHP。 phpType是struct,但value不是数组

时间:2011-06-13 04:43:41

标签: php wsdl

我被赋予了将两个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',
                                        )
                        );

非常感谢任何帮助!谢谢!

1 个答案:

答案 0 :(得分:0)

你没有给予太多的帮助。您是否有机会使用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