php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52387 Add straight to class definitons __getTypes output
Submitted: 2010-07-21 13:32 UTC Modified: 2010-07-22 05:05 UTC
From: ehalls at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
31 + 15 = ?
Subscribe to this entry?

 
 [2010-07-21 13:32 UTC] ehalls at gmail dot com
Description:
------------
To see the feature description go to the following link: 

http://pastebin.org/410682

I link to this page rather than type the description here because your parser keeps mangling it up.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-22 05:05 UTC] aharvey@php.net
OK, now the bug tracker's fixed, here's the problem copy/pasted from
Pastebin:

Hi, 

1. I am using the current version of __getTypes to dynamically generate
classes and classmap from a wdsl file. The problem is that the output
of __getTypes does not output some form of notation for base classes.
Even though there are xml tags available that dictate such a link. 

For example, it does not extract 'AbstractResponseType' and display it
as the base class of 'BMUpdateButtonResponseType' from the following
excerpt:

<xs:complexType name="BMUpdateButtonResponseType">
        <xs:complexContent>
             <xs:extension base="ebl:AbstractResponseType">
                                    
2. Wouldn't it be better just to output the type strings in php class
notation and provide a __evalClass('classname') function to load a
particular class as needed for a request?

3. If I am missing some information and this has already been
implemented then please just let me know. 


Thanks
 [2010-07-22 11:25 UTC] ehalls at gmail dot com
Thank you for doing this {aharvey AT php dot net}.
 [2010-07-22 12:52 UTC] ehalls at gmail dot com
I have already implemented the dynamic class generation from the current output of getTypes. If you like I can work on something for addition to PHP5 soap class? I am not sure how to become a dev so I can extend the base classes with features we could all use.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC