ID: 36083 Updated by: [EMAIL PROTECTED] Reported By: bugs dot php at inspirationlabs dot net -Status: Open +Status: Assigned Bug Type: SOAP related Operating System: WinXP SP2, Apache/2.0.54 (Win32) PHP Version: 5.1.2 -Assigned To: +Assigned To: dmitry New Comment:
Assigned to the maintainer. Previous Comments: ------------------------------------------------------------------------ [2006-01-19 12:57:39] bugs dot php at inspirationlabs dot net Description: ------------ Try to call SoapService in one-way operation. Client waits until SoapServer answeres. I think the SoapServer has to return HTTP "202 Accepted" response (see Bug #32776), that is right, but the response must been send before the Server executed SoapServer->handle(). Reproduce code: --------------- SoapClient: <?php $starttime = microtime(true); $client = new SoapClient("oneway.wsdl", array( 'trace' => 1)); $client->foo("fooInput"); echo "UsedTime: ".(microtime(true) - $starttime); ?> SoapServer: <?php function foo($input) { sleep(7); } $Server = new SoapServer("oneway.wsdl"); $Server->addFunction("foo"); $Server->handle(); ?> WSDL (part): <portType name="serverPortType"> <operation name="foo"> <input message="typens:foo"/> </operation> </portType> <binding name="serverBinding" type="typens:serverPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="foo"> <soap:operation soapAction="urn:serverAction"/> <input> <soap:body namespace="urn:oneway.wsdl" use="literal"/> </input> </operation> </binding> Expected result: ---------------- Server must answer under 1 Second, so Client Output Result is like: UsedTime: 0.0034999847412 Actual result: -------------- Server answers after sleep(7), Client waits until Server sending all Headers. So Client Output Result is like: UsedTime: 7.0034999847412 !!! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36083&edit=1