xsd2php icon indicating copy to clipboard operation
xsd2php copied to clipboard

creating classmap

Open svycka opened this issue 9 years ago • 6 comments

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?

svycka avatar Jul 15 '15 12:07 svycka

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.

goetas avatar Jul 15 '15 17:07 goetas

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.

svycka avatar Jul 16 '15 06:07 svycka

ah... interesting! never tried to use xsd2php classes in combination with soap client. Does it work?

goetas avatar Jul 16 '15 07:07 goetas

I am not sure that everything works, but yes it works.

svycka avatar Jul 16 '15 07:07 svycka

Interesting idea.

discordier avatar Jul 16 '15 15:07 discordier

https://github.com/goetas-webservices is a candidate for it... still work in progress

goetas avatar Jul 15 '16 12:07 goetas