Bug in NuSoap

  • Pavel Bazanov

    Pavel Bazanov - 2010-09-06

    I believe there is a bug in nusoap.php commited in revision 1.106

    4025                            if($this->wsdl){
    4026                                    if (sizeof($this->opData) > 1) {
    4027                                            $this->debug('more than one output part, so use the method return unchanged');
    4028                                    $opParams = $this->methodreturn;
    4029                                } elseif (sizeof($this->opData) == 1) {
    4030                                            $this->debug('exactly one output part, so wrap the method return in a simple array');
    4031                                            // TODO: verify that it is not already wrapped!
    4032                                    //foreach ($this->opData as $name => $type) {
    4033                                            //      $this->debug('wrap in element named ' . $name);
    4034                                    //}
    4035                                    $opParams = array($this->methodreturn);
    4036                                }
    4037                                $return_val = $this->wsdl->serializeRPCParameters($this->methodname,'output',$opParams);

    In  line  4037 you can get a notice, that $opParams is undefined, as I
    If   you  need  I  can tell you more detailed information about what I

    Temporarily,  I  changed  line  4029  just  to simple "else", instead of
    "elseif",  as it was in the previous revision. But I'm not sure if it is

    Hope you fix it and tell me how I should fix it properly.

    Thank you in advance.

  • jskywalker

    jskywalker - 2010-09-07

    bug in nusoap.php commited in revision 1.106

    When will the latest 'stable' be updated?
    It currently show 0.9.5

    The difference between 0.9.5 and 1.106 is:

    - too big in version numbering
    - how big in functionality changes/improvements?

  • Pavel Bazanov

    Pavel Bazanov - 2010-09-16

    It's been more than a week since I posted this bug report.
    Is the project dead?

  • Scott Nichol

    Scott Nichol - 2011-01-13

    @pashkatlt: The project is not dead, but woefully understaffed.  Your temp fix is as good as any.  When there are no output parts, there should be nothing to serialize anyway.

    @jskywalker: There is no direct correlation between the CVS revision and the release version.  The work on 0.9.6 has mostly been bug fixes with a few enhancements of existing features.  No significant new features have been added.

  • jskywalker

    jskywalker - 2011-01-14

    Thanks for the reply!


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks