Hi I have the following code
<?php
$body = '
<FeaturesForProductType xmlns="https://api.URL.asmx">
<userName>XXXXXX</userName>
<xmlParameters>
<![CDATA[
<FeaturesLookup xmlns="http://tempuri.org/DummySchema.xsd">
<authorisation>
<password>XXXX</password>
</authorisation>
<request>
<ProductTypeCode>311</ProductTypeCode>
</request>
</FeaturesLookup>
]]>
</xmlParameters>
</FeaturesForProductType>
';
require_once('nusoap.php');
$s = new nusoap_client('https://URL.asmx',false);
$msg = $s->serializeEnvelope($body);
$s ->send($msg,'https://api.URL.asmx/FeaturesForProductType');
echo $response= $s->response;
|
and I am getting this response
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Thu, 21 Oct 2010 15:39:59 GMT
Content-Length: 1911
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><FeaturesForProductTypeResponse xmlns="https://api.hoseasons.co.uk/HoseasonsAPI.asmx"><FeaturesForProductTypeResult><_userErrorString /><contentString><?xml version="1.0" encoding="ISO-8859-15"?><features><feature><name>Detached</name></feature><feature><name>NonSmoking</name></feature><feature><name>FourPoster</name></feature><feature><name>EnclosedGarden</name></feature><feature><name>PrivateHotTub</name></feature><feature><name>IndoorPool</name></feature><feature><name>OutdoorPool</name></feature><feature><name>GamesRoom</name></feature><feature><name>MultiBathShower</name></feature><feature><name>PubCloseBy</name></feature><feature><name>FishingOnSite</name></feature><feature><name>SandyBeach5Miles</name></feature><feature><name>Sea5Miles</name></feature><feature><name>WheelchairAccess</name></feature><feature><name>OpenFire</name></feature><feature><name>ShortBreak</name></feature><feature><name>RomanticBreak</name></feature><feature><name>Ultimate</name></feature><feature><name>PetFriendly</name></feature><feature><name>EasyWalkingAccess</name></feature></features></contentString></FeaturesForProductTypeResult></FeaturesForProductTypeResponse></soap:Body></soap:Envelope><br />
|
My question is how do I get the the xml in the <contentString> so I can then parse it using something like simplexml?
sorry if this is a stupid question but I have never used nusoap before and nothing I have tried has worked
Thank you