soap-client
soap-client copied to clipboard
Choose WSDL
Hi,
In this project is posible load wsd or another depending on the url?
Can you elaborate?
Yes, sorry.
For example:
Get client from diferent wsdl depending on the url like:
If a call dev.synergy.com/weather $client = $factory->getClient('http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL', "WeatherSoap", "Weather");
Or dev.synergy.com/calculator $client = $factory->getClient('http://www.dneonline.com/calculator.asmx?WSDL', "CalculatorSoap", "Calculator");
Because is possible to get the portType output if a have the address of service? $port = $definitions->findPortType($port); foreach($port->getOperations() as $operation) { $output = $operation->getOutput(); }
did not get the question... do you have to do something this?:
if(strpos($URL, 'weather')!==false){
$client = $factory->getClient('http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL', "WeatherSoap", "Weather");
} elseif(strpos($URL, 'calculator')!==false){
$client = $factory->getClient('http://www.dneonline.com/calculator.asmx?WSDL', "CalculatorSoap", "Calculator");
}