Stefan Lehmann wrote:
Hello!
I have a strange problem with consuming the maporama webservice. I successfully implemented soapclients for some methods for this webservice, yet. But the method "SearchAround" drive me nuts ..
I put in all the parameters, that are demanded by the webservice. If i delete one property from the parameter objects i get an errormessage like this:
Fatal error: SOAP-ERROR: Encoding: object hasn't 'lg' property in F:\xampp\xampp\htdocs\Maporama\SearchAround.php on line 77
If i take the right parameters, the returning object of the request is a Soap Fault Object.
Here a var_dump:
object(SoapFault)#11 (9) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(47) "F:\xampp\xampp\htdocs\Maporama\SearchAround.php" ["line:protected"]=> int(77) ["trace:private"]=> array(2) { [0]=> array(4) { ["function"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(12) "SearchAround" [1]=> array(3) { [0]=> object(stdClass)#4 (2) { ["lg"]=> int(13) ["lt"]=> int(50) } [1]=> object(stdClass)#6 (3) { ["affiliateID"]=> string(6) "123123" ["DBaffiliateID"]=> string(6) "123123" ["TableName"]=> string(4) "test" } [2]=> object(stdClass)#8 (9) { ["distanceMin"]=> int(0) ["distanceMax"]=> int(30000) ["nbMaxResult"]=> int(100) ["minIndex"]=> int(0) ["inputUnitIsKm"]=> bool(true) ["outputUnitIsKm"]=> bool(true) ["inputUnitIsMile"]=> bool(false) ["outputUnitIsMile"]=> bool(false) ["criteriaRequest"]=> string(0) "" } } } } [1]=> array(6) {
["file"]=> string(47) "F:\xampp\xampp\htdocs\Maporama\SearchAround.php" ["line"]=> int(77) ["function"]=> string(12) "SearchAround" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> object(stdClass)#4 (2) { ["lg"]=> int(13) ["lt"]=> int(50) } [1]=> object(stdClass)#6 (3) { ["affiliateID"]=> string(6) "123123" ["DBaffiliateID"]=> string(6) "123123" ["TableName"]=> string(4) "test" } [2]=> object(stdClass)#8 (9) { ["distanceMin"]=> int(0) ["distanceMax"]=> int(30000) ["nbMaxResult"]=> int(100) ["minIndex"]=> int(0) ["inputUnitIsKm"]=> bool(true) ["outputUnitIsKm"]=> bool(true) ["inputUnitIsMile"]=> bool(false) ["outputUnitIsMile"]=> bool(false) ["criteriaRequest"]=> string(0) "" } } } } ["faultstring"]=> string(31) "SOAP Server Application Faulted" ["faultcode"]=> string(11) "SOAP:Server" ["detail"]=> string(14) "Internal Error" }
Has anyone an idea, what I'm doing wrong?
Looks like the server throws an internal error, possibly because you
gave some wrong parameter values. It doesn't look like an encoding
error. Did you successfully executed a call using any other soap client?
Kind regards,
David
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php