getProxy error *solved* |
Site Admin
|
Can you list all the code related to nusoap calls ? How and what did you get in $soap variable in particular?
|
||||||||||||
|
|
here it is -------------------- require_once('nusoap.php'); // config.php has $user $pass require_once('config.php'); // set the URL or path to the WSDL document $wsdl = "file://F:/common/wsdl/test.wsdl"; // instantiate the SOAP client object $soap = new soapclient($wsdl,"wsdl"); $soap->setCredentials($user, $pass); // get the SOAP proxy object, which allows you to call the methods directly $proxy = $soap->getProxy(); // set parameter location (PostalAddress) $location = array(country => "NL",city => "Amsterdam",state => "",zipCode => “”,cityCode => "",address => ""); // set parameter filter (boolean) $filter = "false"; // get the result, a native PHP type, such as an array or string $result = $proxy->ShowAddress($location,$filter); -------------------- the result is the error message without any data: Warning: Invalid argument supplied for foreach() in nusoap.php on line 5071 Fatal error: Call to undefined function: showaddress() |
||||||||||||||
|
Site Admin
|
Probably, there is something wrong with WSDL file. Did you generate it using nusoap?
|
||||||||||||
|
|
No, i didn't
I saved the online version locally for testing. The online version gave an error during the wizard procedure in PhpED due to the first line being a commented line <!-- generated by... --> Using the version I saved after removing the comment made it possible to go through the wizard. Is there a way to test if the getproxy is working? greetz |
||||||||||||
|
|
I've noticed when testing other examples that when i use the getProxy method i always get an error.
The ones that i get using the Amazon example:
I have tested different SOAP classes and NuSOAP versions I get with the NuSOAP version (v 1.69) included in recent PhpEd : - Warning: Invalid argument supplied for foreach() in nusoap.php on line 5071 Fatal error: Call to undefined function: - other SOAP solutions or with NuSOAP v 1.86: - Fatal error: Call to a member function on a non-object |
||||||||||||||
|
Site Admin
|
Hmm, seems your code works w/o any problems on the client side...
I only added 'wsdl' argument. |
||||||||||||
|
|
adding the "wsdl" does the trick with amazon
still no luck on the first one tough is there a way to do other tests ? I'm kinda new to SOAP, so all help is welcome |
||||||||||||
|
Site Admin
|
You probably need to check your WSDL first to see if it contains all necessary info. Did you check it with another soap clients?
|
||||||||||||
|
getProxy error *solved* |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by