I need to connect PHP to a webservice .net that has multiple bindings and both with methods of the same name. SoapClient
is always calling the first one even when Action
and location have been set explicitly.
$options = array(
'login' => $login,
'password' => $password,
'trace' => true,
'Action'=> $server.'/'.$service.'/'.$operation,
"location" => $server.'/'.$binding
);
$client = new SoapClient($server.'?wsdl', $options);
$response = $client->operation($inputObject);