Home » Web Services » SOAP » Bug #2909
WSDL.php error after migration
Details
| Submitted | 2004-12-06 16:14 UTC |
|---|---|
| From | arey dot ext at rd dot francetelecom dot fr |
| Assigned | chagenbu |
| Status | Closed |
| Package | SOAP |
| PHP Version | 4.3.3 |
| OS | Windows XP SP1 |
| Roadmaps | (Not assigned) |
Comments
[2004-12-06 16:14 UTC] arey dot ext at rd dot francetelecom dot fr
Description:
------------
I developed a PHP application using PEAR Web Services (SOAP Package v0.8RC3) on Apache 1.3.33 and PHP 4.3.3 and it worked fine until I have to migrate on IIS 5.1. All wy code works excepted the getProxy() call of my SOAP_WSDL object that generate the following errors.
More over, my php.ini did not changed and my server is not behind a firewall or a proxy.
If you have any idea ?
Antoine
Reproduce code:
---------------
$wsdl=new SOAP_WSDL($contact_webservice_wsdl);
$proxy = $wsdl->getProxy();
$invitation_list = $proxy->GetContacts($_SESSION['msisdn']);
$contact_webservice_wsdl is the WDL URL of a webservice running on the same web server.
Expected result:
----------------
$invitation_list contains a XML string.
Actual result:
--------------
Notice: Undefined index: in C:\Php\pear\SOAP\WSDL.php on line 593
Warning: reset(): Passed variable is not an array or object in C:\Php\pear\SOAP\WSDL.phpp on line 596
Warning: current(): Passed variable is not an array or object in C:\Php\pear\SOAP\WSDL.php on line 597
Warning: reset(): Passed variable is not an array or object in C:\Php\pear\SOAP\WSDL.php on line 439
Warning: current(): Passed variable is not an array or object in C:\Php\pear\SOAP\WSDL.php on line 440
Fatal error: Cannot instantiate non-existent class: webservice_ in C:\Php\pear\SOAP\WSDL.php on line 617
[2005-01-13 00:26 UTC] jlines79 at yahoo dot com
I am also getting this error. A google search for the error code shows this error all over the net.
Any status update on this bug?
[2005-01-13 00:45 UTC] jlines79 at yahoo dot com
This error was fixed by correcting the URL used to inizialize the WSDL file.
[2005-01-13 09:05 UTC] arey dot ext at rd dot francetelecom dot fr
Hi jlines79, could you tell me what URL problem you are speaking about ? By reading some bug reports on the Net, I remember have tried to fix some lines of code in WSDL.php, but it doesn't change anything.
Thanks a lot.
[2005-03-10 22:40 UTC] gjamie at doctors dot org dot uk
I had a similar error. It was cured by prefixing the http:// part of the URL.
i.e. http://www.show.scot.nhs.uk/findnearest/findnearest.asmx?wsdl
not
www.show.scot.nhs.uk/findnearest/findnearest.asmx?wsdl