On Tue, 8 May 2007 10:57:15 -0400, Punit Gupta
<pgupta endeavortelecom.com> wrote:
> Hi Guys,
> I am running PHP 4.4.6 and using PEAR::SOAP package to
build a
> WebService. In the WSDL, I have defined the data types
as complex
> for some of the parameters in the function call. Those
complex types
> are in turn defined separately describing each element
of the
> complex type. It appears that the SOAP server converts
the
> associative arrays to a normal integer index array so I
am not able
> to see any of the element names as the array keys. And
it does the
> same thing when returning values.
> Is there a way to alleviate that?
> Thanks,
> -Punit.
>
>
Short answer No. The SOAP standard has no concept of
associative
arrays. To get close you have to define complex types and
pass them in
and out as objects with properties representing each
element.
Also in the future this sort of question would be best
directed to
pear-general or possibly php-soap
Adam Ashley
|