Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

[SOAP] Returning array value

4:56 pm on Mar 30, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Nov 30, 2008
posts: 42
votes: 0

Hi everybody!

I'm new in the world of SOAP and web services. I developed a server which returns a string extracted from a database in function of a client script's parameter.

My question is: is it possible to return an array to the client? How do I do that? I use this code to create the service:

array('year' => 'xsd:int'),
array('return' => 'xsd:string'),

So I guess I should put something like xsd:array but array is not a type in XML specification... So, are there other options?

Thank you for you attention
2:11 pm on Apr 30, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
votes: 0

You wouldn't have an "array" per se...instead you would just have to set up the XML properly. For example:


Something like that, no? I'm very rusty with SOAP as I haven't touched it for quite some time.