1
I need to connect PHP to a webservice . net that has multiple Binding and both with methods of the same name. o SoapClient
is always calling the first of them even when the Action
and Location have been explicitly defined.
$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);
Oi Andrea,
__setLocation
should / should work (see that post by Soen). If you need to extract service port from payload that article may be useful– Anthony Accioly
Anthony, thank you for your attention. In my case are 2 doors that point to the same Location. What sets the calls apart is the soapAction path of each operation, and even when I explicitly set the Action path, Requestheaders displays the address of the first Action. Ex:
– Andrea