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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
42 - 38 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC