Convert SOAP response to associative array using SimpleXML

ne0

New Member
How do I convert SOAP response like this to php array using SimpleXML?\[code\]<?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:Header> <eWAYHeader xmlns="http://www.eway.com.au/gateway/rebill/manageRebill"> <eWAYCustomerID>9******5</eWAYCustomerID> <Username>ac****@si****.com.sand</Username> <Password>*******</Password> </eWAYHeader> </soap:Header> <soap:Body> <CreateRebillCustomerResponse xmlns="http://www.eway.com.au/gateway/rebill/manageRebill"> <CreateRebillCustomerResult> <Result>Success</Result> <ErrorSeverity /> <ErrorDetails /> <RebillCustomerID>60066328</RebillCustomerID> </CreateRebillCustomerResult> </CreateRebillCustomerResponse> </soap:Body></soap:Envelope>\[/code\]
 
Back
Top