php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60674 SoapClient::__soapCall sends null parameters
Submitted: 2012-01-06 18:19 UTC Modified: -
Votes:8
Avg. Score:4.6 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:1 (14.3%)
From: blasterdrp at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.8 OS: Windows XP SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: blasterdrp at gmail dot com
New email:
PHP Version: OS:

 

 [2012-01-06 18:19 UTC] blasterdrp at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/soapclient.soapcall#refsect1-soapclient.soapcall-parameters
---

Sample function provided will not pass parameters to the given SOAP function, whether associative or ordered array. This is confirmed from the WSDL side.

Test script:
---------------
function doSOAP($wsdl,$func,$param) {
	try {
		$response = new DOMDocument();

		$soap = new soapClient($wsdl, array('trace'=>true, 'exceptions'=>true));

		$result = $soap->__soapCall($func,$param);

		if(is_soap_fault($result)) {
			return $result;
		}
		else {
			$response->loadXML($soap->__getLastResponse());
			return $response;
		}
	}
	catch(Exception $exc) {
		return $exc;
	}
}


Patches

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 06:01:30 2025 UTC