Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Problem with PHP and SOAP
February 10, 2008, 4:36 pm
rate this thread
$wsdl =<URL location of WSDL file> // valid entity
This contains the construct:
<xs:element minOccurs="1" maxOccurs="1" name="ratio"
<xs:element minOccurs="1" maxOccurs="1"
<xs:element minOccurs="1" maxOccurs="1" name="teeth"
$sc = new Soap_Client($wsdl, true);
$params = array(new SOAP_Value('ratio', 'double', $target),
new SOAP_Value('tolerance', 'int', (int) $tolerance),
new SOAP_Value('teeth', 'int', (int) $pinion));
$ret = $sc->call('GetPair', $params, $namespace);
However, the call fails recursively, giving copious dump statements,
saying that it does not recognise ratio as a name.
Any ideas? I am at a loss. I can't help think that I am missing
something really obvious.
Re: Problem with PHP and SOAP
I tried the following construct, which eliminated the dump, but gave
me an error message when checking PEAR.
$sc = $WSDL->getProxy( );
$ret = $sc->GetPair($ratio, (int) $tolerance, (int) $pinion);
Could not deserialize Soap message