List Info

Thread: : Magic Methods in Service Descriptions




: Magic Methods in Service Descriptions
user name
2007-05-11 06:57:59
Edit report at 
http://pecl.php.net/bugs/bug.php?id=10925&edit=1

 ID:               10925
 Updated by:       cemphp.net
-Summary:          Megic Methods in Service Descriptions
 Reported By:      michael dot caplan at henryschein dot
com
 Status:           Open
 Id:               10925
 Type:             Feature/Change Request
 Package:          SCA_SDO
 Operating System: CentOS 4
 PHP Version:      5.2.1
 New Comment:

I agree with the originator - special methods should be
excluded.


Previous Comments:
------------------------------------------------------------
------------

[2007-05-04 09:16:50] michael dot caplan at henryschein dot
com

Description:
------------
If possible, I think all magic methods
(
http://www.php.net/manual/en/language.oop5.magic.php)
should be
suppressed from generated service descriptions, as well as
suppressed in
the serive request handler (should a client try and call a
magic
method).  For example, my service class implements a
constructor, and
this is being picked up by the WSDL generator.

Actual result:
--------------
<?xml version="1.0"
encoding="UTF-8"?>

<definitions xmlns="http://schemas
.xmlsoap.org/wsdl/"
xmlns:tns2="http://LabnetOnline001&q
uot;
xmlns:tns="http://schemas
.xmlsoap.org/wsdl/"
xmlns:tns3="http://sc
hemas.xmlsoap.org/wsdl/soap/"
xmlnssi=&q
uot;http:
//www.w3.org/2001/XMLSchema-instance"
targetNamespace="http://LabnetOnline0
01">

  <types>

    <xs:schema xmlnss=&qu
ot;http://www.w3.
org/2001/XMLSchema" 

      targetNamespace="http://LabnetOnline001&q
uot;

      elementFormDefault="qualified">

      <xs:element name="__construct">

        <xs:complexType>

          <xs:sequence>

          </xs:sequence>

        </xs:complexType>

      </xs:element>



      <xs:element
name="__constructResponse">

        <xs:complexType>

          <xs:sequence>

          </xs:sequence>

        </xs:complexType>

      </xs:element>

      <xs:element name="rot13">

        <xs:complexType>

          <xs:sequence>



            <xs:element name="toencode"
type="xs:string"
nillable="true"/>

          </xs:sequence>

        </xs:complexType>

      </xs:element>

      <xs:element name="rot13Response">

        <xs:complexType>

          <xs:sequence>

            <xs:element name="rot13Return"
type="xs:string"
nillable="true"/>

          </xs:sequence>



        </xs:complexType>

      </xs:element>

    </xs:schema>

  </types>



  <message name="__constructRequest">

    <part name="__constructRequest"
element="tns2:__construct"/>

  </message>

  <message name="__constructResponse">



    <part name="return"
element="tns2:__constructResponse"/>

  </message>

  <message name="rot13Request">

    <part name="rot13Request"
element="tns2:rot13"/>

  </message>

  <message name="rot13Response">

    <part name="return"
element="tns2:rot13Response"/>

  </message>

  <portType name="LabnetOnline001PortType">



    <operation name="__construct">

      <input
message="tns2:__constructRequest"/>

      <output
message="tns2:__constructResponse"/>

    </operation>

    <operation name="rot13">

      <input message="tns2:rot13Request"/>

      <output
message="tns2:rot13Response"/>

    </operation>

  </portType>



  <binding name="LabnetOnline001Binding"
type="tns2:LabnetOnline001PortType">

    <operation name="__construct">

      <input>

        <tns3:body xsi:type="tns3:tBody"
use="literal"/>

      </input>

      <output>

        <tns3:body xsi:type="tns3:tBody"
use="literal"/>

      </output>

      <tns3:operation
xsi:type="tns3:tOperation"
soapAction=""/>



    </operation>

    <operation name="rot13">

      <input>

        <tns3:body xsi:type="tns3:tBody"
use="literal"/>

      </input>

      <output>

        <tns3:body xsi:type="tns3:tBody"
use="literal"/>

      </output>

      <tns3:operation
xsi:type="tns3:tOperation"
soapAction=""/>



    </operation>

    <tns3:binding xsi:type="tns3:tBinding"
transport="http://sch
emas.xmlsoap.org/soap/http"
style="document"/>

  </binding>

  <service name="LabnetOnline001Service">

    <port name="LabnetOnline001Port"
binding="tns2:LabnetOnline001Binding">

      <tns3:address xsi:type="tns3:tAddress"
location="http://sandbox
.int.labnet.net/michael/labnet_online/api/public_html/online
001/index.php"/>

    </port>

  </service>

</definitions>



<!-- this line identifies this file as WSDL generated by
SCA for PHP.
Do not remove -->

------------------------------------------------------------
------------


-- 
Edit this bug report at 
http://pecl.php.net/bugs/bug.php?id=10925&edit=1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "phpsoa" group.
To post to this group, send email to phpsoagooglegroups.com
To unsubscribe from this group, send email to
phpsoa-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---


: Magic Methods in Service Descriptions
country flaguser name
United States
2007-05-11 09:00:46
+1

I also agree with this.  The wsdl generation should exclude
all
methods beginning with '__'.

On 11 May, 12:57, c...php.net wrote:
> Edit report at
http://pecl.php.net/bugs/bug.php?id=10925&edit=1
>
>  ID:               10925
>  Updated by:       c...php.net
> -Summary:          Megic Methods in Service
Descriptions
>  Reported By:      michael dot caplan at henryschein
dot com
>  Status:           Open
>  Id:               10925
>  Type:             Feature/Change Request
>  Package:          SCA_SDO
>  Operating System: CentOS 4
>  PHP Version:      5.2.1
>  New Comment:
>
> I agree with the originator - special methods should be
excluded.
>
> Previous Comments:
>
------------------------------------------------------------
------------
>
> [2007-05-04 09:16:50] michael dot caplan at henryschein
dot com
>
> Description:
> ------------
> If possible, I think all magic methods
> (
http://www.php.net/manual/en/language.oop5.magic.php)
should be
> suppressed from generated service descriptions, as well
as suppressed in
> the serive request handler (should a client try and
call a magic
> method).  For example, my service class implements a
constructor, and
> this is being picked up by the WSDL generator.
>
> Actual result:
> --------------
> <?xml version="1.0"
encoding="UTF-8"?>
>
> <definitions xmlns="http://schemas
.xmlsoap.org/wsdl/"
> xmlns:tns2="http://LabnetOnline001&q
uot;
> xmlns:tns="http://schemas
.xmlsoap.org/wsdl/"
> xmlns:tns3="http://sc
hemas.xmlsoap.org/wsdl/soap/"
> xmlnssi=&q
uot;http:
//www.w3.org/2001/XMLSchema-instance"
> targetNamespace="http://LabnetOnline0
01">
>
>   <types>
>
>     <xs:schema xmlnss=&qu
ot;http://www.w3.
org/2001/XMLSchema"
>
>       targetNamespace="http://LabnetOnline001&q
uot;
>
>       elementFormDefault="qualified">
>
>       <xs:element name="__construct">
>
>         <xs:complexType>
>
>           <xs:sequence>
>
>           </xs:sequence>
>
>         </xs:complexType>
>
>       </xs:element>
>
>       <xs:element
name="__constructResponse">
>
>         <xs:complexType>
>
>           <xs:sequence>
>
>           </xs:sequence>
>
>         </xs:complexType>
>
>       </xs:element>
>
>       <xs:element name="rot13">
>
>         <xs:complexType>
>
>           <xs:sequence>
>
>             <xs:element name="toencode"
type="xs:string"
> nillable="true"/>
>
>           </xs:sequence>
>
>         </xs:complexType>
>
>       </xs:element>
>
>       <xs:element
name="rot13Response">
>
>         <xs:complexType>
>
>           <xs:sequence>
>
>             <xs:element name="rot13Return"
type="xs:string"
> nillable="true"/>
>
>           </xs:sequence>
>
>         </xs:complexType>
>
>       </xs:element>
>
>     </xs:schema>
>
>   </types>
>
>   <message name="__constructRequest">
>
>     <part name="__constructRequest"
element="tns2:__construct"/>
>
>   </message>
>
>   <message name="__constructResponse">
>
>     <part name="return"
element="tns2:__constructResponse"/>
>
>   </message>
>
>   <message name="rot13Request">
>
>     <part name="rot13Request"
element="tns2:rot13"/>
>
>   </message>
>
>   <message name="rot13Response">
>
>     <part name="return"
element="tns2:rot13Response"/>
>
>   </message>
>
>   <portType
name="LabnetOnline001PortType">
>
>     <operation name="__construct">
>
>       <input
message="tns2:__constructRequest"/>
>
>       <output
message="tns2:__constructResponse"/>
>
>     </operation>
>
>     <operation name="rot13">
>
>       <input
message="tns2:rot13Request"/>
>
>       <output
message="tns2:rot13Response"/>
>
>     </operation>
>
>   </portType>
>
>   <binding name="LabnetOnline001Binding"
> type="tns2:LabnetOnline001PortType">
>
>     <operation name="__construct">
>
>       <input>
>
>         <tns3:body xsi:type="tns3:tBody"
use="literal"/>
>
>       </input>
>
>       <output>
>
>         <tns3:body xsi:type="tns3:tBody"
use="literal"/>
>
>       </output>
>
>       <tns3:operation
xsi:type="tns3:tOperation"
soapAction=""/>
>
>     </operation>
>
>     <operation name="rot13">
>
>       <input>
>
>         <tns3:body xsi:type="tns3:tBody"
use="literal"/>
>
>       </input>
>
>       <output>
>
>         <tns3:body xsi:type="tns3:tBody"
use="literal"/>
>
>       </output>
>
>       <tns3:operation
xsi:type="tns3:tOperation"
soapAction=""/>
>
>     </operation>
>
>     <tns3:binding
xsi:type="tns3:tBinding"
> transport="http://sch
emas.xmlsoap.org/soap/http"
style="document"/>
>
>   </binding>
>
>   <service
name="LabnetOnline001Service">
>
>     <port name="LabnetOnline001Port"
> binding="tns2:LabnetOnline001Binding">
>
>       <tns3:address
xsi:type="tns3:tAddress"
> location="http://sandbox.int.labnet.net
/michael/labnet_online/api/public_html/o..."/>
>
>     </port>
>
>   </service>
>
> </definitions>
>
> <!-- this line identifies this file as WSDL
generated by SCA for PHP.
> Do not remove -->
>
>
------------------------------------------------------------
------------
>
> --
> Edit this bug report at
http://pecl.php.net/bugs/bug.php?id=10925&edit=1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "phpsoa" group.
To post to this group, send email to phpsoagooglegroups.com
To unsubscribe from this group, send email to
phpsoa-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )