From:             x dot meglio at gmail dot com
Operating system: Windows XP SP2
PHP version:      5.2.4
PHP Bug Type:     SOAP related
Bug description:  array(int, int, ...) to <xsd:sequence> conversion

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

-- 
Edit bug report at http://bugs.php.net/?id=42723&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42723&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42723&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42723&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42723&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42723&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42723&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42723&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42723&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42723&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42723&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42723&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42723&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42723&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42723&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42723&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42723&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42723&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42723&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42723&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42723&r=mysqlcfg

Reply via email to