Forum Moderators: coopster

Message Too Old, No Replies

Web Service question

         

Karma

2:15 pm on Oct 12, 2009 (gmt 0)

10+ Year Member



I'm new to web services in all honesty, and I'm having some problems getting this to work.

I'm trying to consume the response from the public webservice @ [w3schools.com...]

...using this code:

require_once('lib/nusoap.php');
$parm = array('Celsius'=>'15');
$endpoint_path = 'http://www.w3schools.com/webservices/tempconvert.asmx';
$client = new soapclient($endpoint_path, true);
$result = $client->call('CelsiusToFahrenheit', $parm);
print_r($result);

...but this returns a blank document.

What am I doing wrong?

dreamcatcher

6:23 am on Oct 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Karma,

Did you get this working? I don`t use SOAP myself. Does your server error log reveal anything as to why its not working?

dc