|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42723 array(int, int, ...) to <xsd:sequence> conversion
Submitted: 2007-09-21 09:24 UTC Modified: 2007-09-21 11:20 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: x dot meglio at gmail dot com Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.2.4 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2007-09-21 09:24 UTC] x dot meglio at gmail dot com
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:element form="qualified" maxOccurs="unbounded"
      name="int" nillable="true"  type="xsd:int"/>

Reproduce code:
I'm calling getAllMarkets method of API (ver. 5.4) and I can't provide whole code because of API login/password of my customer.

I'm calling the method:



$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:element form="qualified" maxOccurs="unbounded"
      name="int" nillable="true"  type="xsd:int"/>

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).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-21 11:20 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Nov 26 22:05:53 2022 UTC