Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Complex Type using PHP SoapClient
June 20, 2005, 4:59 pm
rate this thread
I am consuming the MapPoint .NET web service using PHP5. My preferred
option would be to use the built-in soap classes since they are more
tightly coupled with PHP and should be quicker because they are written
in C.. All seems to work fine until now, I have a problem creating a
cetain complex types.
This is the request generated by the MS example code for the GetMap()
function which worked as desired but required NuSOAP:
<?xml version="1.0" encoding="ISO-8859-1"?>
xmlns:si="http://soapinterop.org/xsd " xmlns:nu="http://testuri.org "
<GetMap xmlns="http://s.mappoint.net/mappoint-30 /">
<Label>Fourth Coffee Store #7174</Label>
The bit which is causing problems is changing the type of MapView:
MapView is an abstract class and has four derived classes, one of which
is ViewByHeightWidth. See
I can't find a solution to this problem and wondering if the built-in
soap classes support this functionality?
Any ideas would be very much appreciated.
Thank you in advance for any feedback!
Re: Complex Type using PHP SoapClient
I also emailed one of the developers of ext/soap with this problem and
it turns out I have uncovered a bug which will be patched in version
5.0.5-dev and 5.1 and is currently available on CVS.