|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-21 13:59 UTC] sabrina at corp dot grupos dot com dot br
Description: ------------ The return soap message should be an array of objects. Instead, it is returning an array of arrays. Each item should be an object, but it is an array. For each item in the array, a value is popped out, such as only the last item in the array has one value and is an object, as it should be. When using version 5.1.4 is working. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 06:00:01 2025 UTC |
<? $proxyParams = array('soap_version' => SOAP_1_1, 'trace' => false, 'exceptions' => true, 'encoding' => 'ISO-8859-1', 'location' => $newIp ); try { $SOAPObject = new SoapClient('http://enturma.com.br/wsdl/session.wsdl', $proxyParams); } catch (SoapFault $e) { throw new ESoapException($e->faultcode, $e->faultstring, 'initSOAP', $this->componentName, false); } $return = $SOAPObject->__soapCall('getClientInfoFromDomain', 'sabrina.corp.grupos.com.br'); var_dump($return); /** Var_dump for 5.1.5 can be seen here: http://intranet.grupos.com.br/~sabrina/phpbug/phpreply515.html Var_dump for 5.1.4 can be seen here: http://intranet.grupos.com.br/~sabrina/phpbug/phpreply514.html **/ ?>unfortunately, you cannot execute this code as it is, because the webservice in question is private and cannot be accessed externarly or without authentication. the line: $return = $SOAPObject->__soapCall('getClientInfoFromDomain', 'sabrina.corp.grupos.com.br'); is incorrect, and should be: $return = $SOAPObject->__soapCall('getClientInfoFromDomain', array('sabrina.corp.grupos.com.br')); but other than that, you could either try to access a webservice that returns an array of objects or read the the result dumps of this script for versions 5.1.4 and 5.1.5 (you can check these files http://intranet.grupos.com.br/~sabrina/phpbug/phpreply515.html http://intranet.grupos.com.br/~sabrina/phpbug/phpreply514.html ) and see that there is a big difference between both responses. thank you for your replies.More info... -- soap client php -- <?php $arr = array('soap_version'=>SOAP_1_1, 'exceptions'=>true, 'trace'=>1, 'encoding'=>'ISO-8859-1', 'location'=>'http://corp.grupos.com.br:1028'); $SOAPObject = new SoapClient('session.wsdl', $arr); var_dump($SOAPObject->__soapCall('getClientInfoFromDomain', array('sabrina.corp.grupos.com.br'))); ?> -- Soap server reply: http://intranet.grupos.com.br/~marcus/soaptest/soapserver.output WSDL: http://intranet.grupos.com.br/~marcus/soaptest/session.wsdl Actual result: http://intranet.grupos.com.br/~marcus/soaptest/actual.result Expected result: http://intranet.grupos.com.br/~marcus/soaptest/expected.result