note 108646 added to book.soap
| From: | rafinskipg at gmail dot com | Date: | Mon, 14 May 2012 14:54:56 +0000 |
| Subject: | note 108646 added to book.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187969@lists.php.net to get a copy of this message | ||
Support for MTOM addign this code to your project:
<?php
class MySoapClient extends SoapClient
{
public function __doRequest($request, $location, $action, $version, $one_way = 0)
{
$response = parent::__doRequest($request, $location, $action, $version, $one_way);
// parse $response, extract the multipart messages and so on
//this part removes stuff
$start=strpos($response,'<?xml');
$end=strrpos($response,'>');
$response_string=substr($response,$start,$end-$start+1);
return($response_string);
}
}
?>
Then you can do this
<?php
new MySoapClient($wsdl_url);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 94.126.240.2
----
Manual Page -- http://www.php.net/manual/en/book.soap.php
Edit -- https://master.php.net/note/edit/108646
Del: integrated -- https://master.php.net/note/delete/108646/integrated
Del: useless -- https://master.php.net/note/delete/108646/useless
Del: bad code -- https://master.php.net/note/delete/108646/bad+code
Del: spam -- https://master.php.net/note/delete/108646/spam
Del: non-english -- https://master.php.net/note/delete/108646/non-english
Del: in docs -- https://master.php.net/note/delete/108646/in+docs
Del: other reasons-- https://master.php.net/note/delete/108646
Reject -- https://master.php.net/note/reject/108646
Search -- https://master.php.net/manage/user-notes.php