By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

NuSOAP Arrays

P: n/a
Hi,

I'm having a bit of trouble with NuSOAP. I'm calling a web method that
looks like this (excuse the strange sytax)

public testItem GetTestItem (int aNumber, testObjects[])

So, I need to create NuSOAP call like this.

$arguments = array("aNumber" => 10,"testObjects" => $testObjects);
$data = $this->callAPI('GetTestItem', $arguments);

BUT... nusoap creates the soap request like

<testObjects>
<item>
..... test object contents
</item>
<item>
.... test object contents
</item>
</testObject>

which is incorrect.

How do I get it do properly define

<testObjects>
<testObject>...</testObject>
<testObject>...</testObject>
</textObjects>

I hope that makes sense.

Cheers,

Treefrog

May 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Just to further that a bit. I have implimented the testObjects in my
code, but since NuSOAP doesn't work if you pass it an object, I've
written a ToArray() method on all my objects (kluge alert!). I can't
get NuSOAP to correctly 'XMLise' the array of objects (arrays).

May 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.