Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose WSDL #10

Open
victorgp89 opened this issue May 31, 2017 · 4 comments
Open

Choose WSDL #10

victorgp89 opened this issue May 31, 2017 · 4 comments
Labels

Comments

@victorgp89
Copy link

Hi,

In this project is posible load wsd or another depending on the url?

@goetas
Copy link
Member

goetas commented May 31, 2017

Can you elaborate?

@victorgp89
Copy link
Author

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");

@victorgp89
Copy link
Author

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();
}

@goetas
Copy link
Member

goetas commented Jun 1, 2017

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");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants