Login   Register  
PHP Classes
elePHPant
Icontem

Latest Version Broken?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP WSDL Generator  >  All threads  >  Latest Version Broken?  >  (Un) Subscribe thread alerts  
Subject:Latest Version Broken?
Summary:Incorrect WSDL Generated
Messages:4
Author:Brendan Abbott
Date:2009-06-01 00:34:56
Update:2011-05-25 11:52:51
 

  1. Latest Version Broken?   Reply   Report abuse  
Picture of Brendan Abbott
Brendan Abbott
2009-06-01 00:34:56
Hi,

I've been having some problems using this relating to missing parts in the messages or incorrect values for the parts(ie. anyType instead of array).

I thought I'd do some testing and see if I could pinpoint where I was going wrong, but it appears that there is some errors in the example files output anyway.

With the default example, the generated WSDL completly omits the test22222 function from the example_class2.php.

There seems to be some missing parts from the other messages too (test).

Can you confirm this? Or has there been some error in the package I downloaded? (2009-15-05)

  2. Re: Latest Version Broken?   Reply   Report abuse  
Picture of Protung Dragos
Protung Dragos
2009-06-01 09:08:28 - In reply to message 1 from Brendan Abbott
Unfortunately you are right, the latest version is broken and I do not have any older versions of the script to temporary replace the broken code.

I am working on version 2 (entire new code) of the class.
Hope I can release it soon.

  3. Re: Latest Version Broken?   Reply   Report abuse  
Picture of Eric Wagener
Eric Wagener
2009-10-25 09:00:31 - In reply to message 1 from Brendan Abbott
I gues I had the same problem. I solved it this way:

if (isset($nt) && ($nt[0] == T_STATIC || $nt[0] == T_ABSTRACT || $nt[0] == T_FINAL ||
$nt[0] == T_PRIVATE || $nt[0] == T_PROTECTED || $nt[0] == T_PUBLIC)) { // public | protected | private | final | abstract | static
$this->currentMethodType = $token[1] ? $token[1] : "public";
$this->currentMethod = $this->currentParams = null;
$token = $this->getNextToken();
unset($nt); // insert this line (418)
} else {
$this->currentMethodType = "public";
}

I hope this helpes you out.

  4. Re: Latest Version Broken?   Reply   Report abuse  
Picture of Timothy Sail
Timothy Sail
2011-05-25 11:52:51 - In reply to message 3 from Eric Wagener
I solved problem this way:
in function parseFile I moved block

if ($token[0] == T_DOC_COMMENT) {...

after block

if (isset($nt) && ($nt[0] == T_STATIC || $nt[0] == T_ABSTRACT || $nt[0] == T_FINAL ||...

and now it works fine