RE: Interop between PEAR-SOAP and Visual Studio - complex types
| From: | Michael Rasmussen | Date: | Sat, 22 Oct 2005 16:17:55 +0000 |
| Subject: | RE: Interop between PEAR-SOAP and Visual Studio - complex types | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21596@lists.php.net to get a copy of this message | ||
On Sat, 22 Oct 2005 20:57:43 +0800, Artyom Kamshilin wrote:
>
> It worked when I change it manually - but I use SOAP_DISCO_Server() class
> to generate WSDL - and it maps all my custom types to "xsd". I found that
> the type namespace is assigned inside addMethodsFromMap(), and is coming
> from $disco->_getTypeNs() method - and _getTypeNs() fails to determine
> custom defined types, returning XSD for any type, be it custom or not. Did
> I miss a certain way of defining a custom type, so that it maps to "tns"
> automatically?
>
In my experience the implementation af Disco in PEAR_SOAP is useless if
server uses nested types or use types with refences. You can overcome this
limitation by constructing your own typemaps in your server but to the
best of my knowledge it simple not worth the effort. Write you own WSDL.
If you change to PHP5 and it's soap-ext there is work in progress of
making a php2wsdl and wsdl2php which seems more reliable.
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917