2 Aug 2011 00:35
Help with developing a new Soap Service
Hi everyone, Over the past couple of months I've been developing some new Soap services for Sympa. It all seemed to be going quite well until I got PHP involved. As an example let me show you an example of calling a 'getUserPrefs' service with both Perl and PHP. In summary the Perl version keeps the key names and PHP throws them away and starts indexing from 0 (however this numbering isn't consistent per field). See the attached file for these examples, excerpts from sympa.wsdl and the relevant part of sympasoap.pm. Does anyone know how to do this in PHP and does it depend on what I have got in my sympa.wsdl file. The Perl version doesn't read the WSDL file but the PHP code does (though sometimes it seems to care about what's in it and in other cases it doesn't seem to care at all). I could revert to using a return array with positional parameters but I think named parameters are nicer. I'm pretty close to just going with this option but thought I'd try the list and see what people think. Many thanks. Cheers, Andy -- -- Andrew Chilton e: chilts@...(Continue reading)
RSS Feed