Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $URL = "http://services.webtic.it/services/WSC_Webtic.asmx";
- $xml = '<?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>
- <setBloccoPosti xmlns="http://services.webtic.it/">
- <idcinema>555</idcinema>
- <idPerformance>210770</idPerformance>
- <sSessionId>dlsndflknsddknf</sSessionId>
- <aiProgPosti>
- <string>13/9</string>
- <string>13/8</string>
- </aiProgPosti>
- </setBloccoPosti>
- </soap:Body>
- </soap:Envelope>';
- //setting the curl parameters.
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,$URL);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
- curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
- if (curl_errno($ch))
- {
- // moving to display page to display curl errors
- echo curl_errno($ch) ;
- echo curl_error($ch);
- }
- else
- {
- //getting response from server
- $response = curl_exec($ch);
- print_r($response);
- curl_close($ch);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement