Jump to content

problem with webservice


einstein2_THAILAND

Recommended Posts

I have 2 php file

soapserver.php
[code]
<?php
function plus($num1,$num2){
return $num1+$num2;
}

$server= new SoapServer("plus.wsdl");
$server->addFunction("plus");
$server->handle();
?>
[/code]

soapcall.php
[code]
<?php
$client= new SoapClient("plus.wsdl");
print($client->plus(5,6));
?>
[/code]

I has been test file soapcall.php but  it output like this
[code]Fatal error: Class 'SoapClient' not found in D:\Web_ae\wamp\www\webservice\soapcall.php on line 2
[/code]

what does it mean?   

Link to comment
https://forums.phpfreaks.com/topic/31793-problem-with-webservice/
Share on other sites

[quote author=steelmanronald06 link=topic=119850.msg491222#msg491222 date=1167012773]
Meaning you forgot to include something from soapclient.  Consult the Soap guide...i assume that this is a type of php software (a framework, isn't it?)
[/quote]

I really don't use any framework.

what I should do with php.ini.

now I has been open extension=php_soap.dll  on my php.ini  but it's  still problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.