PHP WSDL Generator new version work in progress

September 1st, 2009 by Dragos Leave a reply »

i started working on a new (improved) version of PHP WSDL Generator.
Many people have asked for new features and better output this is what the new version will have.
I will also rewrite almost all the code.

The new PHP parser is almost done. Now you can also add classes without specifying files. Just include them in your code and tell the generator to also use those classes. Of course the old way to add classes (by specifying files with PHP code) will still be available, but unlike before when the content of the files was parsed, now the files first will be included (using require_once() ). I know this is not ideal if you have other code that must not arbitrary execute, but then again it’s good practice to have the classes separated from any other code. The new parser will be much faster and more accurate.

That’s all for now, I will post more news about this after more work is done.

Please don’t ask when the release will happen as I don’t know. I do this in my free time witch is somehow limited right now.

VN:F [1.9.22_1171]
Rating: 8.3/10 (35 votes cast)
PHP WSDL Generator new version work in progress, 8.3 out of 10 based on 35 ratings
Advertisement

3 comments

  1. Darius says:

    Did you write an soap client php class?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  2. Tarmo Leppänen says:

    What is the status of refactoring this library?

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (2 votes cast)
    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  3. Slava says:

    not optimal
    public function getClasses () {
    foreach ($this->files as $file) {
    $this->allData = token_get_all(file_get_contents($file));
    $this->parseFile(file_get_contents($file));
    }
    $this->filterClasses();
    $this->parseClasses();
    return $this->classes;
    }
    #####################

    optimal:
    /**
    * Get all the parsed classes from the files (filtered)
    *
    * @return array
    */
    public function getClasses () {
    foreach ($this->files as $file) {
    $f=file_get_contents($file);
    $this->allData = token_get_all($f);
    $this->parseFile($f);
    }
    $this->filterClasses();
    $this->parseClasses();
    return $this->classes;
    }

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: +2 (from 2 votes)