Re: Dynamic WSDL
| From: | Jim Plush | Date: | Mon, 11 Jul 2005 18:02:47 +0000 |
| Subject: | Re: Dynamic WSDL | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1954@lists.php.net to get a copy of this message | ||
Hey Eric,
there is a new change that was checked into php5.0.4 that allows you to set a custom location when using a WSDL file
so you can do
$client = new SoapClient("http://some.host.net/wsdl/somefile.wsdl",array(
"trace" => 1,
"localtion" => 'myurl.com',
"exceptions" => 0));
that should be what you're looking for
Jim Plush
http://www.litfuel.net/plush
Eric Appelt wrote:
Hi, List! Normal soap objects in php5 are created like that: $client = new SoapClient("http://some.host.net/wsdl/somefile.wsdl",array("trace" => 1, "exceptions" => 0));We are trying to find a simple way to switch between production and test environment and/or do round robin for load balancing (calling different servers on different ports). So we are calling a cgi script that generates the wsdl output based on the given params. The servers are running on different ports, so basically the main difference between the wsdl files is the soap:adress location. Thats why we dont want to write different wsdl files with only small changes. It appers, that $URL = 'http://some.host.net/cgi-bin/gen_wsdl.cgi?loc=location&func=function'; $client = new SoapClient($URL,array("trace" => 1, "exceptions" => 0));ignores every single param that has been given in the url. Is that a security feature and if so, is there any way to cirumvent (read: disable) that? Thanx in advance, --Jan Gruber Primacom AGCentral Systems cat /dev/world | perl -e "while (<>) {(/(^.*?\?) 42\!/) && (print $1)}"