Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. if(getenv('REQUEST_METHOD') == 'POST')
  3. {
  4. $result = file_get_contents("php://input");
  5. file_put_contents('result.xml', $result);
  6.  
  7. $response ='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://api-v1.gen.mm.vodafone.com/mminterface/request">
  8. <soapenv:Header/>
  9. <soapenv:Body>
  10. <req:ResponseMsg><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  11. <response xmlns="http://api-v1.gen.mm.vodafone.com/mminterface/response">
  12. <ResponseCode>00000000</ResponseCode>
  13. <ResponseDesc>success</ResponseDesc>
  14. </response>]]></req:ResponseMsg>
  15. </soapenv:Body>
  16. </soapenv:Envelope>';
  17.  
  18. header('Content-type: text/xml');
  19. echo trim($response);
  20. exit();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement