note 69173 added to ref.soap
| From: | nico at osu1 dot php dot net | Date: | Fri, 25 Aug 2006 13:20:35 +0000 |
| Subject: | note 69173 added to ref.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116319@lists.php.net to get a copy of this message | ||
If you want to build a Soap Server for Microsoft Office's client (like Microsoft Office
Research Service) you need to rewrite SOAP's namespaces :
<?php
// (...)
$server = new SoapServer($wsdl, array('uri' => $uri, 'classmap' =>
$classmap));
$server->setClass($class);
function callback($buffer)
{
$s = array('<ns1:RegistrationResponse>', 'ns1:',
'xmlns:ns1="urn:Microsoft.Search"');
$r = array('<RegistrationResponse xmlns="urn:Microsoft.Search">',
'', '');
return (str_replace($s, $r, $buffer));
}
ob_start('callback');
$server->handle();
ob_end_flush();
// (...)
?>
There are a complete example at this URL : http://touv.ouvaton.org/article.php3?id_article=104
----
Server IP: 217.174.203.10
Probable Submitter: 193.54.109.8 (proxied: unknown)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.soap.php
Edit -- https://master.php.net/note/edit/69173
Del: integrated -- https://master.php.net/note/delete/69173/integrated
Del: useless -- https://master.php.net/note/delete/69173/useless
Del: bad code -- https://master.php.net/note/delete/69173/bad+code
Del: spam -- https://master.php.net/note/delete/69173/spam
Del: non-english -- https://master.php.net/note/delete/69173/non-english
Del: in docs -- https://master.php.net/note/delete/69173/in+docs
Del: other reasons-- https://master.php.net/note/delete/69173
Reject -- https://master.php.net/note/reject/69173
Search -- https://master.php.net/manage/user-notes.php