Menu

#6 Not able to extend this class

New
nobody
None
Medium
Enhancement
2012-08-22
2012-04-10
Anonymous
No

Originally created by: fuwi...@gmail.com
Originally owned by: schickwa...@googlemail.com

Hi,

I was unable to extend the PhpWsdl class because of the CreateInstance function which is currently fixed on creating an instance of PhpWsdl (which I extended).

So I had to change your code for extending (not needing to change your code) this super class - which I had to do to change the behaviour of the DetermineEndpoint function to support mod_rewrite (the script is not called directly, instead it is called via index.php?querystring, which comes from an mod_rewrite rule.

Line 534..:

    // hook for extending this class...
    $class = get_called_class();
    $obj=new $class($nameSpace,$endPoint,$cacheFolder,$file,$name,$methods,$types,$outputOnRequest,$runServer);

instead of:

    $obj=new PhpWsdl($nameSpace,$endPoint,$cacheFolder,$file,$name,$methods,$types,$outputOnRequest,$runServer);

Discussion

  • Anonymous

    Anonymous - 2012-08-22

    Originally posted by: schickwa...@googlemail.com

    I'm sorry for the big delay, I didn't receive the issue notify with email. I'll review this issue soon. Thanks for providing your code changes!

    Labels: -Type-Defect Type-Enhancement

     
  • Anonymous

    Anonymous - 2012-08-22

    Originally posted by: schickwa...@googlemail.com

    (No comment was entered for this change.)

    Owner: schickwa...@googlemail.com

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.