Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Results format from nusoap

Help
Brian Read
2008-08-11
2013-06-06
  • Brian Read
    Brian Read
    2008-08-11

    Hi

    I am getting the results array back from a soap request, using nusoap.  The result is pretty complex and deeply structured, and am finding that where multiple tags of the same name are returned, nusoap adds another level of array, but where only one tag of one name is returned the array structure lacks that extra depth.  This means that I have to check for 1 only or more than one and extract differently (actually, i then just interpose an extra layer so that it is compatible). It is a pain though, as i have to do this check for most layers (which can be 3 or 4 deep).

    I have looked at the original XML response, and this extra layer is not reflected in there, it is just that an assoc array (obviously) cannot have more than one  index of the same name.

    Anyone else got any better solutions to this?