note 79438 added to ref.soap

From: Date: Tue, 27 Nov 2007 16:58:44 +0000
Subject: note 79438 added to ref.soap
Groups: php.notes 
Request: Send a blank email to php-notes+get-132598@lists.php.net to get a copy of this message
I had to add the following to be able to call the PHP webservice from .Net Client It seems that eighter PHPs implementation of SoapServer or Microsofts .Net way is wrong. The Namespace SOAP-ENV must be removed inside of the SOAP-ENV:Body function callback($input) { $search = '/(<SOAP-ENV:Body>)\s*(<SOAP-ENV:)/'; $replace = '$1<'; $input = preg_replace($search, $replace, $input); $search = '/(<\/SOAP-ENV:)([A-Za-z0-9]*>)\s*(<\/SOAP-ENV:Body>)/'; $replace = '</$2$3'; $input = preg_replace($search, $replace, $input); return ($input); } ob_start('callback'); $server->handle(); ob_end_flush(); ---- Server IP: 83.137.20.135 Probable Submitter: 53.122.196.39 ---- Manual Page -- http://www.php.net/manual/en/ref.soap.php Edit -- https://master.php.net/note/edit/79438 Del: integrated -- https://master.php.net/note/delete/79438/integrated Del: useless -- https://master.php.net/note/delete/79438/useless Del: bad code -- https://master.php.net/note/delete/79438/bad+code Del: spam -- https://master.php.net/note/delete/79438/spam Del: non-english -- https://master.php.net/note/delete/79438/non-english Del: in docs -- https://master.php.net/note/delete/79438/in+docs Del: other reasons-- https://master.php.net/note/delete/79438 Reject -- https://master.php.net/note/reject/79438 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132598) next »