我成功使用SOAPUI,但它不支持php。 SOAP:
SOAP客户端呼叫&响应
和php代码
<?php
ini_set("soap.wsdl_cache_enabled", "0");
$url = "http://bla.bla.bla.bla/WSAndroid/Service1.asmx?WSDL";
$client = new SoapClient($url);
$a = $client->__getFunctions();
var_dump($a);
$params = array(
"username" => "bla_username",
"password" => "bla_password",
"ogrencino" => "bla_ogrencino",
"sifre" => "bla_sifre"
);
$response = $client->__soapCall("KimlikDogrula",$params);
var_dump($response);
回应:
object(stdClass)#2(1){[&#34; KimlikDogrulaResult&#34;] =&gt;
object(stdClass)#3(3){ [&#34;畑&#34;] =&GT; 布尔(真) [&#34; HataMesaji&#34;] =&GT; string(16)&#34; Yetkisiz&#34; [&#34; Sinifi&#34;] =&GT; int(0)}}
请求Charles查询params信息:
我的PHP代码在哪里出错?