How to receive xml requests and send response xml in php?

前端 未结 2 857
别跟我提以往
别跟我提以往 2021-02-01 21:14

So I need to build an application that will receive xml request and based on that I will have to return the response xml. I know how to send requests and receive the response, b

2条回答
  •  梦如初夏
    2021-02-01 21:59

    All you have to do on the receiving end is create a 'normal' PHP script. Depending on the protocol between your endpoint and the requesting service you need to grab the data from the correct location which is most likely going to be a $_GET or $_POST array.

    You may have to read the raw POST data if it's not coming through in $_POST, take a peak at this article

    http://www.codediesel.com/php/reading-raw-post-data-in-php/

提交回复
热议问题