Advertisement
Shockrate

crea_setBloccoPosti

Jan 5th, 2022
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <?php
  2.  
  3. $URL = "http://services.webtic.it/services/WSC_Webtic.asmx";
  4. $xml = '<?xml version="1.0" encoding="utf-8"?>
  5. <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/">
  6. <soap:Body>
  7. <setBloccoPosti xmlns="http://services.webtic.it/">
  8. <idcinema>555</idcinema>
  9. <idPerformance>210770</idPerformance>
  10. <sSessionId>dlsndflknsddknf</sSessionId>
  11. <aiProgPosti>
  12. <string>13/9</string>
  13. <string>13/8</string>
  14. </aiProgPosti>
  15. </setBloccoPosti>
  16. </soap:Body>
  17. </soap:Envelope>';
  18. //setting the curl parameters.
  19. $ch = curl_init();
  20.  
  21. curl_setopt($ch, CURLOPT_URL,$URL);
  22. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  23. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  24. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  25. curl_setopt($ch, CURLOPT_POST, 1);
  26. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  27. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
  28. curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
  29.  
  30. if (curl_errno($ch))
  31. {
  32. // moving to display page to display curl errors
  33. echo curl_errno($ch) ;
  34. echo curl_error($ch);
  35. }
  36. else
  37. {
  38. //getting response from server
  39. $response = curl_exec($ch);
  40. print_r($response);
  41. curl_close($ch);
  42. }
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement