Ошибка Soap

Iva

Новичок
Ошибка Soap

Помогите ,пожалуйста, разобраться с ошибкой.

Есть код
PHP:
$client = new SoapClient("http://10.36.39.153/rsnetgaindp/ricoserver/InventorySoap.asmx?wsdl");
try {    $params=array('equipmentNo'=>'7253436','departmentId'=>1096,'zoneId'=>32,'equipmentType'=>9,'connectionType'=>13);
    $result = $client->GetChain($params);
    echo "<strong>Data: </strong>:\n";
    print_r($result);
} catch (SoapFault $exception) {
    echo "<strong>Error: </strong>:\n";
    print_r($exception);
}
Error: : SoapFault Object ( [message:protected] => Server was unable to process request. ---> Object reference not set to an instance of an object. [string:private] => [code:protected] => 0 [file:protected] => D:\Apache\UsbWebserver\Phpinfo\chain_1.php [line:protected] => 19 [trace:private] => Array ( [0] => Array ( [function] => __call [class] => SoapClient [type] => -> [args] => Array ( [0] => GetChain [1] => Array ( [0] => Array ( [equipmentNo] => 7253436 [departmentId] => 1096 [zoneId] => 32 [equipmentType] => 9 [connectionType] => 13 ) ) ) ) [1] => Array ( [file] => D:\Apache\UsbWebserver\Phpinfo\chain_1.php [line] => 19 [function] => GetChain [class] => SoapClient [type] => -> [args] => Array ( [0] => Array ( [equipmentNo] => 7253436 [departmentId] => 1096 [zoneId] => 32 [equipmentType] => 9 [connectionType] => 13 ) ) ) ) [faultstring] => Server was unable to process request. ---> Object reference not set to an instance of an object. [faultcode] => soap:Server [detail] => )

Что это все значит?
Заранее всем огромное спасибо!
 

slach

Новичок
Параметры вызова как то не так в GetChain видимо передаешь

вот это сообщение тебе перевести?

Server was unable to process request. ---> Object reference not set to an instance of an object.
 

Iva

Новичок
slach ,Не спорю, тогда подскажите как правильно,
если
// фрагмент wsdl

<s:element name="GetChain">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="info" type="tns:ArrayOfEquipmentInfo" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfEquipmentInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="EquipmentInfo" nillable="true" type="tns:EquipmentInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="EquipmentInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="equipmentNo" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="departmentId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="zoneId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="equipmentType" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="connectionType" type="s:int" />
</s:sequence>
</s:complexType>

-~{}~ 03.02.09 14:39:

Для таких же горемычных, как и я :)

slach был прав и спасибо ему за правильное направление!
А данные нужно было передавать вот так
$params =array("info"=>array("EquipmentInfo"=>array("equipmentNo"=>"7253436","departmentId"=>"1096","zoneId"=>"32","equipmentType"=>"9","connectionType"=>"13")));
 
Сверху