note 73116 added to ref.soap
| From: | kroesjnov at hotmail dot com | Date: | Fri, 09 Feb 2007 15:38:01 +0000 |
| Subject: | note 73116 added to ref.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123176@lists.php.net to get a copy of this message | ||
If you dont want to manually maintain the classmap, make sure you use the same names for your PHP
object classes and your WSDL complexTypes, and use the following code:
$classmap = array();
$tmpClient = new SoapClient("soapserver.wsdl");
foreach($tmpClient->__getTypes() as $type)
{
$array = split(" ", $type);
if($array[0] == "struct" && class_exists($array[1]))
{
$classmap[$array[1]] = $array[1];
}
}
unset($tmpClient);
$server = new SoapServer("soapserver.wsdl", array("classmap" => $classmap));
unset($classmap);
$server->setClass("someclass");
$server->handle();
----
Server IP: 194.109.193.76
Probable Submitter: 82.92.8.139
----
Manual Page -- http://www.php.net/manual/en/ref.soap.php
Edit -- https://master.php.net/note/edit/73116
Del: integrated -- https://master.php.net/note/delete/73116/integrated
Del: useless -- https://master.php.net/note/delete/73116/useless
Del: bad code -- https://master.php.net/note/delete/73116/bad+code
Del: spam -- https://master.php.net/note/delete/73116/spam
Del: non-english -- https://master.php.net/note/delete/73116/non-english
Del: in docs -- https://master.php.net/note/delete/73116/in+docs
Del: other reasons-- https://master.php.net/note/delete/73116
Reject -- https://master.php.net/note/reject/73116
Search -- https://master.php.net/manage/user-notes.php