Bug #70147 [Opn->Spm]: Performs a SOAP request

From: Date: Mon, 27 Jul 2015 01:25:32 +0000
Subject: Bug #70147 [Opn->Spm]: Performs a SOAP request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194737@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70147&edit=1 ID: 70147 Updated by: requinix@php.net Reported by: admin at angosso dot net Summary: Performs a SOAP request -Status: Open +Status: Spam Type: Bug Package: SOAP related Operating System: Linux, Windows, Mac PHP Version: 5.6.11 Block user comment: N Private report: N New Comment: Works for me. Previous Comments: ------------------------------------------------------------------------ [2015-07-27 01:02:57] admin at angosso dot net Description: ------------ Test Test script: --------------- [function Add($x,$y) { return $x+$y; } class LocalSoapClient extends SoapClient { function __construct($wsdl, $options) { parent::__construct($wsdl, $options); $this->server = new SoapServer($wsdl, $options); $this->server->addFunction('Add'); } function __doRequest($request, $location, $action, $version, $one_way = 0) { ob_start(); $this->server->handle($request); $response = ob_get_contents(); ob_end_clean(); return $response; } } $x = new LocalSoapClient(NULL,array('location'=>'test://', 'uri'=>'http://testuri.net')); var_dump($x->Add(3,4));] Expected result: ---------------- XML SOAP request URL to request SOAP action SOAP version SOAP response { return $ret; } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70147&edit=1

« previous php.bugs (#194737) next »