NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help with arrays


Joined: 13 Aug 2008
Posts: 1
Reply with quote
Hi,

I'm trying to return data like so

Array
(
[12458] => Array
(
[0] => brian
)

[14987] => Array
(
[0] => blaj2
[1] => another
)

)

My method is providing this data to the api but when it comes out the other side, my keys are reset like so :

Array
(
[0] => Array
(
[0] => brian
)

[1] => Array
(
[0] => blaj2
[1] => another
)

)

Is their a way to maintain the exact data structure?

My soap type is :
$gbl_SOAPServer->wsdl->addComplexType(
'FriendsFundraisingPagesArray',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
array(
'ref'=>'SOAP-ENC:arrayType',
'wsdl:arrayType'=>'tns:StringArray[]'
)
),
'tns:StringArray'
);

Thanks for any help
Brian
View user's profileFind all posts by sinkingfishSend private message
Help with arrays
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic