SoapClient not found compile error

Discussion about the open-source Phalanger [?] project.

SoapClient not found compile error

Postby iismanager » February 17th, 2014, 7:23 pm

Hey guys,

Just installed Phalanger 3.0 on IIS 7.5 Windows 2008R2 servers. I got my first PHP "hello world" page working so I got crazy and tried some other php functions, however when I try to instantiate a soapclient, i get an error.

Error: Class 'SoapClient' not found in .....

How do I import or verify the extension are loaded?

Thanks
iismanager
 
Posts: 2
Joined: February 17th, 2014, 7:19 pm

Re: SoapClient not found compile error

Postby Jakub Misek » February 18th, 2014, 10:43 am

Hi,

Add following into your web.config

<add assembly="PhpNetSoap, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2771987119c16a03" section="soap" />

into section <phpNet><classLibrary> ...

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: SoapClient not found compile error

Postby iismanager » February 19th, 2014, 5:02 pm

Thanks for the note, I was able to get that error resolved. My next issue comes when trying to call a webservice. This works fine under stadard PHP, but will not compile without "notices" under Phalanger. What can be done to get this working? I can send you the real $endpoint in a private email if you need it.

Code: Select all
<?php
$endpoint = "mywebservice.asmx";
$client_options = array();
$client_options["trace"] = 0;
$client_options["cache_wsdl"] = 0;
$client_options["exceptions"] = 0;
$client = new SoapClient($endpoint, $client_options);
$result = $client->GetCountryList();
$xml = $result->GetCountryListResult->any;
print_r( $xml );
?>


When I try to run the code under phalanger, I get the following notices:
Notice: An empty variable used as an object in c:\websites\phptest\index.php on line 9, column 1.

Notice: An empty variable used as an object in c:\websites\phptest\index.php on line 9, column 1.
iismanager
 
Posts: 2
Joined: February 17th, 2014, 7:19 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 4 guests

cron

User Control Panel

Login

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 151 on December 6th, 2020, 7:46 am

Users browsing this forum: No registered users and 4 guests