Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(getenv('REQUEST_METHOD') == 'POST')
- {
- $result = file_get_contents("php://input");
- file_put_contents('result.xml', $result);
- $response ='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://api-v1.gen.mm.vodafone.com/mminterface/request">
- <soapenv:Header/>
- <soapenv:Body>
- <req:ResponseMsg><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
- <response xmlns="http://api-v1.gen.mm.vodafone.com/mminterface/response">
- <ResponseCode>00000000</ResponseCode>
- <ResponseDesc>success</ResponseDesc>
- </response>]]></req:ResponseMsg>
- </soapenv:Body>
- </soapenv:Envelope>';
- header('Content-type: text/xml');
- echo trim($response);
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement