簡體   English   中英

nusoap XML錯誤解析WSDL

[英]nusoap XML error parsing WSDL

即時通訊使用nusoap調用看起來像一個ASP.NET方法(在.NET中調用該方法)

Dim obj As New ct400.WSConnector
objWS.someMethod ("a", "b", "c", "d", "e", "f","g");

(除此之外,我沒有更多關於此webservice方法的文檔。)

這是我用來用PHP調用方法的代碼

  $uri="192.x.x.x/somefolder/somefile.asmx;
  $client = new nusoap_client ($uri,true);
  $param = array("a","b","c","d","e","f","g");
  $response = $client->call('methodname', $param);

服務器應以簡單的“已保存數據”作為響應。

當轉儲的即時通訊一無所獲。 當轉儲錯誤($ client-> getError())時,我得到的是那煩人的無用信息:-)

第75行從http://192.xxx/somefolder/somefile.asmx解析WSDL的XML錯誤:標記不匹配

我在這里做錯了什么?

您需要像這樣設置array參數:

$params = array('P1'  => $val1,'P2'=> $val2);
//and call it like this in order to get .net understand your request (only for nusoap)
$result =$client->call('yourwsmethod', array('parameters' => $params)); 
var_dump($result);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM