php soap - 发送多维数组的请求

时间:2013-07-01 06:22:44

标签: php arrays soap multidimensional-array nusoap

首先,我正在尝试使用PHP SOAP发送soap请求,服务接受的XML如下所示。

<U_MemberReservedTransaction xmlns="http://tempuri.org/">
  <UserID>string</UserID>
  <password>string</password>
  <memberReservedTransactionRequest>
    <memberReservedTransactions>
      <ReservedType>string</ReservedType>
      <Firstname>string</Firstname>
      <Surname>string</Surname>
      <IcNew>string</IcNew>
    </memberReservedTransactions>
    <memberReservedTransactions>
      <ReservedType>string</ReservedType>
      <Firstname>string</Firstname>
      <Surname>string</Surname>
      <IcNew>string</IcNew>
    </memberReservedTransactions>
  </memberReservedTransactionRequest>
</U_MemberReservedTransaction>

总结一下服务的期望,服务是接收一个memberReservedTransactions数组。我的SOAP请求调用目前在下面。

$client->callService('U_MemberReservedTransaction', array(
    'UserID'=>'test1',
    'password'=>'password',
    'memberReservedTransactionRequest' => array( 
    'memberReservedTransaction' => array (
     array( 
        'ReservedType'=>'Renew', 
        'Firstname'=>'', 
                'Surname'=>'',
        'IcNew'=>''
            )
         )
     )

));

至于我期待的回报是多维数组,但我现在关注的是接受我的请求。

注意:我收到500内部服务器错误

请帮助:&lt;

0 个答案:

没有答案