note 83035 added to ref.soap
| From: | sanjiv dot more at abbott dot com | Date: | Wed, 07 May 2008 19:37:51 +0000 |
| Subject: | note 83035 added to ref.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139150@lists.php.net to get a copy of this message | ||
Don't know why I am getting following error:
SoapFault exception: [SOAP-ENV:Server] Procedure 'text' not present in
C:\xampp\htdocs\SOAP\repeaterClient.php:6
My Clent is:
<?php
$client = new SoapClient('http://localhost/SOAP/RepeaterServer.wsdl');
try {
echo $client->repeat("Hello ",3);
} catch (SoapFault $exception) {
echo $exception;
}
?>
My Class is:
<?php
class Repeater {
/**
* Repeats a string of text a number of times
*
* @param string $text
* @param integer $times
* @return string
*
*/
function repeat($text, $times){
return str_repeat($text,$times);
}
/**
* reverse a string of text and reapeat it a number of times
*
* @param string $text
* @param integer $times
* @return string
*
*/
function reverseRepeat($text,$times) {
return $this->repeat(strrev($text),$times);
}
}
// Expose as a Web service
$server = new SoapServer("http://localhost/SOAP/RepeaterServer.wsdl");
$server->setClass('Repeater');
$server->handle();
?>
----
Server IP: 209.41.74.194
Probable Submitter: 130.36.62.141
----
Manual Page -- http://www.php.net/manual/en/ref.soap.php
Edit -- https://master.php.net/note/edit/83035
Del: integrated -- https://master.php.net/note/delete/83035/integrated
Del: useless -- https://master.php.net/note/delete/83035/useless
Del: bad code -- https://master.php.net/note/delete/83035/bad+code
Del: spam -- https://master.php.net/note/delete/83035/spam
Del: non-english -- https://master.php.net/note/delete/83035/non-english
Del: in docs -- https://master.php.net/note/delete/83035/in+docs
Del: other reasons-- https://master.php.net/note/delete/83035
Reject -- https://master.php.net/note/reject/83035
Search -- https://master.php.net/manage/user-notes.php