dqxboe2628 2014-11-25 08:32
浏览 17
已采纳

如何通过PHP调用SOAP方法?

This is the result of the my var_dump functions:

echo "<pre>"; var_dump($client->__getFunctions()); echo "</pre>";
array(10) {
  [0]=>
  string(34) "Read_Result Read(Read $parameters)"
  [1]=>
  string(55) "ReadByRecId_Result ReadByRecId(ReadByRecId $parameters)"
  [2]=>
  string(58) "ReadMultiple_Result ReadMultiple(ReadMultiple $parameters)"
  [3]=>
  string(49) "IsUpdated_Result IsUpdated(IsUpdated $parameters)"
  [4]=>
  string(67) "GetRecIdFromKey_Result GetRecIdFromKey(GetRecIdFromKey $parameters)"
  [5]=>
  string(40) "Create_Result Create(Create $parameters)"
  [6]=>
  string(64) "CreateMultiple_Result CreateMultiple(CreateMultiple $parameters)"
  [7]=>
  string(40) "Update_Result Update(Update $parameters)"
  [8]=>
  string(64) "UpdateMultiple_Result UpdateMultiple(UpdateMultiple $parameters)"
  [9]=>
  string(40) "Delete_Result Delete(Delete $parameters)"
}

I tried to call the read methods, like this:

$client->__soapCall("Read" ,  array('No'=>'142JC242')); 

Actually I don't understand what is "Read_Result" ? and Read(Read $parameters) ?. and how do I used them ? thx

Now I'm getting this : Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in...

  • 写回答

2条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 实值特征权重向量和特征选择,多分类
      • ¥15 INVEST年产水量模块结果出处理
      • ¥15 Neo4j 不显示关系
      • ¥15 这段代码有什么bug
      • ¥15 pip默认安装位置修改不成功
      • ¥15 C++ inline、staitc、const三合一谁能讲通透
      • ¥15 关于pyqt5中QThread的问题
      • ¥20 STM32基于HAL库使用串口发送16进制数组
      • ¥15 OpenCV报错 You can enable it via 'OPENCV_IO_ENABLE_OPENEXR'
      • ¥15 AT89C51的程序问题