web service call in php4

furnivat

New Member
I did this code for my own server in php5, but when I tried to deploy it, I found that the test and production server are php4 (my fault!). So I need to now who to convert this to run it in php4.The following code works OK on php5:\[code\]<?php$wsdl = 'http://blahblah:8081/services/LoginWebService?wsdl';$client = new SoapClient($wsdl);$params->username = 'an_user';$params->password = 'a_pass';$res = $client->login($params);// ak auth key$ak = $res->loginReturn;echo $ak;?>\[/code\]Is there an easy way to translate it to php4?NOTE: Is not up to me to decide upgrading the server :(
 
Back
Top