xsd2php
xsd2php copied to clipboard
creating classmap
Is there a easy way to create classmap array to map soap types and generated phpclasses? If there isn't maybe would be good idea to add this feature?
A class map? In the composer and psr 1/4 era, class maps can be easily generated. Maybe I've misinterpreted the question... Il 15/lug/2015 14:45, "Vytautas Stankus" [email protected] ha scritto:
Is there a easy way to create classmap array to map soap types and generated phpclasses? If there isn't maybe would be good idea to add this feature?
— Reply to this email directly or view it on GitHub https://github.com/goetas/xsd2php/issues/81.
http://php.net/manual/en/soapclient.soapclient.php
The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
ah... interesting! never tried to use xsd2php classes in combination with soap client. Does it work?
I am not sure that everything works, but yes it works.
Interesting idea.
https://github.com/goetas-webservices is a candidate for it... still work in progress