0
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CallTHIResponse xmlns="http://tempuri.org/">
      <CallTHIResult>string</CallTHIResult>
    </CallTHIResponse>
  </soap:Body>
</soap:Envelope>

***********************************************
CallTHIResult return value : <TRAN_ID>17560_41206.6291_9568</TRAN_ID><TRAN_DATE>20160128</TRAN_DATE><TRAN_TIME>11:26:46</TRAN_TIME><ERROR_CODE>1</ERROR_CODE><ERROR_DESC>Not Input Policy</ERROR_DESC><POLICY_NBR></POLICY_NBR><URL_POLICY>http://test.php/xxx.pdf</URL_POLICY>

I can not get the value for array management into the fileds database.

domTH
  • 13
  • 4
  • you can use `xml_parse_into_struct()` for convert xml string into array – Maksud Mansuri Jan 28 '16 at 08:43
  • 1
    Find your answer from here :---> http://stackoverflow.com/questions/6578832/how-to-convert-xml-into-array-in-php – Monty Jan 28 '16 at 08:45
  • I then test drive the preview can not be pulled up to use it.   Which is required as the parameter.         $ trans_id =?         $ trans_date =?        etc. – domTH Jan 28 '16 at 09:06
  • The problem is that the xml sting has been drawn back 1 array .. but there is a value tag, however. host return xml sting 1 array.. but many value ex : 17561_54057.6506_12712016012915:00:571Not Input Policyhttp://aiiapp.asiainsurance.co.th/THI_WEB2/webprint/.pdf i can't get variable in xml string – domTH Jan 29 '16 at 08:10

0 Answers0