Passing array to SOAP function in PHP

后端 未结 3 1445
深忆病人
深忆病人 2020-12-10 14:29

Greetings,

I can\'t seem to find a way to create a function request with array as an argument. For example, how do I make this kind of request using PHP SoapClient:<

3条回答
  •  春和景丽
    2020-12-10 15:06

    I had similar problem and I had to post data in this structure. Accepted answer didn't work for me

    $data = array(
      'GetResultListRequest' => array(
        'Filters' => array(
            array('Name' => 'string', 'Value' => 'string'),
            array('Name' => 'string', 'Value' => 'string'),
        )
      )
    );
    

    maybe it might help somebody if accepted answear doesn't work for you

提交回复
热议问题