note 96783 added to book.soap
| From: | hugom dot vasconcelos at gmail dot com | Date: | Tue, 16 Mar 2010 11:02:05 +0000 |
| Subject: | note 96783 added to book.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167084@lists.php.net to get a copy of this message | ||
Hi every one!
I need your help to solve this problems.
I'm trying to creat a wsdl file to a webservice but i'm getting an erros.
"Error creating WSDL document:Error creating WSDL: no class found with the name
'array' / array : , so how should we know the structure for this datatype?"
now i will show u the code and hope someone discover the bug!
webservice.class.php
<?php
/**
* WebServices Handler
*
* This class will be used in the SOAP Server.
* To use all the available options on the SOAP Server we need to use
* a WSDL file.
*
* @author
* @version
* @package
*/
/**
* Classes needed to web service
*/
include_once("DB.class.php");
include_once("Maquinas.class.php");
/**
* ipTicketWS class
*
* This class has all methods to use on web service
* @package
*/
class ipTicketWS extends dbHandler
{
/**
* Set Maquinas info
*
* Function to get Maquinas info
* @param Integer $idmaquina maquinaID
* @return array of objects
*/
public function getMaquinas($idmaquina)
{
$res = new Maquina(array("db" => $this->__dbinfo));
return $res->getMaquinas($idmaquina);
}
}
?>
<?php
include_once ("DB.class.php");
class Maquina extends dbHandler
{
/** @var integer */
var $res;
var $tmp;
public $idmaquina;
public function __construct($__dbinfo, $idmaquina)
{
parent::__construct($__dbinfo);
$this->idatributo = $idmaquina;
}
public function getMaquinas($idmaquina)
{
$query = "select * from maquinas order by idmaquina";
$tmp = $this->dbHandlerquery($query);
return $tmp;
}
}
?>
I think the error is somewhere here but i can't find it. Hope u con help me!
Thanks.
----
Server IP: 69.147.83.197
Probable Submitter: 195.23.114.202
----
Manual Page -- http://www.php.net/manual/en/book.soap.php
Edit -- https://master.php.net/note/edit/96783
Del: integrated -- https://master.php.net/note/delete/96783/integrated
Del: useless -- https://master.php.net/note/delete/96783/useless
Del: bad code -- https://master.php.net/note/delete/96783/bad+code
Del: spam -- https://master.php.net/note/delete/96783/spam
Del: non-english -- https://master.php.net/note/delete/96783/non-english
Del: in docs -- https://master.php.net/note/delete/96783/in+docs
Del: other reasons-- https://master.php.net/note/delete/96783
Reject -- https://master.php.net/note/reject/96783
Search -- https://master.php.net/manage/user-notes.php