How to pass an array into a PHP SoapClient call

后端 未结 6 1954
[愿得一人]
[愿得一人] 2020-12-05 19:33

Using PHP and SoapClient.

I need to pass the following XML into a soap request - i.e. multiple \'s within .

<
6条回答
  •  时光说笑
    2020-12-05 19:59

    I also ran into this issue calling soap with an parameter as an array. My array has to start with index 0 for it to work.

    $client->__soapCall(my_function_name, [
      'body' => [
        'date' => '201930', 
        'ids' => [0 => '32001', 1 => '32002'],
      ],
    ]);
    

提交回复
热议问题