note 96783 deleted from book.soap by thiago
| From: | thiago@php.net | Date: | Tue, 16 Mar 2010 19:16:48 +0000 |
| Subject: | note 96783 deleted from book.soap by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167109@lists.php.net to get a copy of this message | ||
Note Submitter: hugom dot vasconcelos at gmail dot com
----
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.