我有一个web服务器和wsdl我必须创建一个webclient php才能登录
SVC: http://5.249.140.31:9100/wsAccesso.svc WSDL: http://5.249.140.31:9100/wsAccesso.svc?singleWsdl
我试图创建PHP代码,但我总是得到SoapFault
$requestParams = array(
'impianto' => 'string',
'userName' => 'string',
'password' => 'string',
'userType' => 'number'
);
$client = new SoapClient('http://5.249.140.31:9100/wsAccesso.svc?singleWsdl',array('trace'=> 2, 'exceptions' => 0, 'cache_wsdl' => WSDL_CACHE_NONE, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS));
$response = $client->Login($requestParams);
var_dump($response);
我几乎可以肯定问题在于管理调用Login
您可以在通话中直接使用xml吗?