PHP code to convert HSL SOAP service to JSON.