I received the following response from a SOAP API. I need to get the OK: number field parsed out as the number is the record number just inserted, and the OK means the record was added ok.
I cant seem to be able to parse the number without it leaving < on the end of it.
Can someone assist?
this is the htmlentities output of the xml response. If I just echo the xml response it doesn't show all the xml tags and bits
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><addCustomerResponse xmlns="http://220.127.116.11/OperatorAPI"><s-gensym3 xsi:type="xsd:string">OK: 470</s-gensym3></addCustomerResponse></soap:Body></soap:Envelope>