|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-21 11:20 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Description: ------------ Array of integers was not converted properly (and not passed as parameter) when using SoapClient in WSDL mode and calling method which take this parameter: <xsd:complexType name="ArrayOfInt"> <xsd:sequence> <xsd:element form="qualified" maxOccurs="unbounded" name="int" nillable="true" type="xsd:int"/> </xsd:sequence> </xsd:complexType> Reproduce code: --------------- I'm calling getAllMarkets method of Betfair.com API (ver. 5.4) and I can't provide whole code because of API login/password of my customer. I'm calling the method: MySoapClient->getAllMarkets($request); where $request = Array('request' => Array( 'eventTypesIds' => Array(7), 'header' => Array('clientStamp' => 0, 'sessionToken' => ...))) The eventTypesIds parameter of getAllMarkets function takes this type (described in WSDL): <xsd:complexType name="ArrayOfInt"> <xsd:sequence> <xsd:element form="qualified" maxOccurs="unbounded" name="int" nillable="true" type="xsd:int"/> </xsd:sequence> </xsd:complexType> P.S. I have reproduced the code in c# and it works well, so the error is just in type transformation in PHP SAOP implementation. Expected result: ---------------- I expect the market data filtered by specified eventTypesIds (for example, only Horse Racing todays card with ID=13). Actual result: -------------- I get the market data for all events (eventTypesIds which I pass to the getAllMarkets does not affect).