I am new to web services and might be doing small mistake somewhere.I am trying to connect and use a WebService with PHP and SoapClient and getting a following error:
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameter in /www/1/html/webservices/tuev-nord-ass/soapclientconnect.php
WSDL link:
http://www.schwackenet.de/awonline/de/service2/SNWebService.php?wsdl
My code:
<?php
ini_set("soap.wsdl_cache_enabled", "0");
ini_set('soap.wsdl_cache_ttl', '0');
$wsdl = 'http://www.schwackenet.de/awonline/de/service2/SNWebService.php?wsdl';
$options = array('trace' => true);
$client = new SoapClient($wsdl,
array(
'user' => 'tülsenbeck',
'password' => 'tülsenbeck',
'corporate_group_id' => '101',
'dealer_number' => 'INT31303',
'dms_id' => 'A13T2D19',
'dms_image_url' => '',
'dms_keepalive_url' => '',
'dms_followup_url' => '',
)
);
//Returns list of available SOAP functions described in the WSDL for the Web service.
var_dump($client->__getFunctions());
//some parameters to send
$result = $client>Login('user','password','corporate_group_id','dealer_number','dms_id','dms_image_url','dms_keepalive_url','dms_followup_url');
var_dump($result);
?>
You completely mess the function arguments up.
$options = array('trace' => true);
$params = array(
'user' => 'deshmukh',
'password' => 'deshmukh',
'corporate_group_id' => '101',
'dealer_number' => 'INT31303',
'dms_id' => 'A13T2D19',
'dms_image_url' => '',
'dms_keepalive_url' => '',
'dms_followup_url' => ''
);
$client = new SoapClient($wsdl, $options); // options!!!
$result = $client->Login($params); // params!!!
Now it replies with “Zugangsdaten sind nicht gültig,” I guess you'll go further yourself.
MfG
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.