Complex Type using PHP SoapClient

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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:SOAP-ENV=" /"
xmlns:xsd=" "
xmlns:xsi=" "
xmlns:SOAP-ENC=" /"
xmlns:si=" " xmlns:nu=" "
xmlns:tns=" /">
<GetMap xmlns=" /">
<Label>Fourth Coffee Store #7174</Label>
<MapView xsi:type="tns:ViewByHeightWidth">

The bit which is causing problems is changing the type of MapView:
<Views><MapView xsi:type="tns:ViewByHeightWidth">...

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.



Alex wrote:
Quoted text here. Click to load it
Quoted text here. Click to load it
Quoted text here. Click to load it

Site Timeline