Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $xml_data =
- '<?xml version="1.0" encoding="ISO-8859-1"?>
- <pacsoftonline>
- <meta>
- <val n=”origin”>407000013</val>
- <val n=”created”>2021-06-28 15:00</val>
- </meta>
- <receiver rcvid="81010">
- <val n="name">Mr. Samuel Adams</val>
- <val n="address1">Testvejen 123</val>
- <val n="address2"></val>
- <val n="zipcode">9600</val>
- <val n="city">Aalborg</val>
- <val n="country">DK</val>
- <val n="contact">Sam</val>
- <val n="phone">+45 00110395</val>
- <val n="doorcode"></val>
- <val n="email">[email protected]</val>
- <val n="sms">66110395</val>
- </receiver>
- <shipment orderno="928374">
- <val n="from">1</val>
- <val n="to">81010</val>
- <val n="reference">9283740</val>
- <service srvid="P19DK">
- <addon adnid="COD">
- <val n="amount">450.00</val>
- <val n="account">123456789012</val>
- <val n="accounttype">accdk</val>
- <val n="reference">1234567890123456</val>
- </addon>
- </service>
- <ufonline>
- <option optid="enot">
- <val n=”from”>[email protected]</val>
- <val n="message">Ditt order är klar och paketet på väg.</val>
- <val n="to">[email protected]</val>
- </option>
- </ufonline>
- <container type="parcel">
- <val n="copies">1</val>
- <val n="weight">8</val>
- <val n="contents">Böcker</val>
- </container>
- </shipment>
- </pacsoftonline>';
- $URL = "http://www.pacsoftonline.com/ufoweb/order";
- $ch = curl_init($URL);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, '&user=407000013&pin=JP8YP2&type=xml&session=po_SE&xml='.$xml_data);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $output1 = curl_exec($ch);
- curl_close($ch);
- print_r($output1)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment