Get data http post XML & convert to string
Sử dụng php://input để lấy dữ liệu từ http post XML:
GeSHi Error: GeSHi could not find the language php (using path /var/www/html/kb.innocom.vn/wp-content/plugins/wp-synhighlight/geshi/geshi/) (code 2)
Sau đó convert dữ liệu từ chuỗi XML sang dạng đổi tượng
GeSHi Error: GeSHi could not find the language php (using path /var/www/html/kb.innocom.vn/wp-content/plugins/wp-synhighlight/geshi/geshi/) (code 2)
Cuối cùng đưa về dạng Json để xử lý dữ liệu
GeSHi Error: GeSHi could not find the language php (using path /var/www/html/kb.innocom.vn/wp-content/plugins/wp-synhighlight/geshi/geshi/) (code 2)
Ví dụ: Để gọi được User_ID từ chuỗi XML như này
<?xml version="1.0" encoding="utf-8"?>
<soapenv>
<soapenvHeader />
<soapenvBody>
<messageReceiver>
<User_ID>0347737040</User_ID>
<Service_ID>8079</Service_ID>
<Command_Code>ABC</Command_Code>
<Message>KTDNC</Message>
<Request_ID>ABC</Request_ID>
</messageReceiver>
</soapenvBody>
</soapenv>
Source Code như sau:
GeSHi Error: GeSHi could not find the language php (using path /var/www/html/kb.innocom.vn/wp-content/plugins/wp-synhighlight/geshi/geshi/) (code 2)