Need SOAP/Client help

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm trying to integrate with a product procurement system that is set up
for SOAP w/WSDL.  I have the portion that grabs new purchase orders
working, but I am failing when it comes to the PO confirmation.

Here's a simplified XML example of the data requirements:


The problem is how SOAP/Client is converting arrays.  Instead of

    ... Products[0]->Product-> ....
    ... Products[1]->Product-> ...

I'm getting

    ... Products->item[0]->Product-> ...
    ... Products->item[1]->Product-> ...

And for the life of me I can't figure out how to get the library to
supress 'item'.  I assign the data with something like this:

$data->PurchaseOrderConfirmation->Products[0]->Product->ProductId =

The docs for this module is rather limited.  If this can't do the job,
is there some other PHP 4.x SOAP package (with WSDL support) that could
easily be dropped in without spending a huge amount of time writing


Site Timeline