“Object reference not set to an instance of an object” error connecting to SOAP server from PHP

后端 未结 2 1093
眼角桃花
眼角桃花 2020-12-11 01:30

I\'m making my first attempt to connect to a SOAP server from PHP, and I\'m not understanding how to log in and get the data I need. The service I\'m trying to connect to i

2条回答
  •  一向
    一向 (楼主)
    2020-12-11 02:10

    You're close. Looking at the WSDL the InventoryList method takes an object called "request". Modify your call line slightly:

    $client->InventoryList(array("request" => array("LoginId" => $login_id, "Password" => $password));
    

提交回复
热议问题