php - DHL XML Services - Book Pick Up - Error 108 System Unavailable -


i trying use dhl xml service request pickup. after giving value , using following code getting error error108system unavailable. how can resolve issue. due error in code or server not responding.

request_pickup.php

<?php $xml = file_get_contents('post_xml.xml'); $url = 'https://xmlpitest-ea.dhl.com/xmlshippingservlet/';   $post_data = array(     "xml" => $xml, );  $stream_options = array(     'http' => array(        'method'  => 'post',        'header'  => "content-type: application/x-www-form-urlencoded\r\n",        'content' => http_build_query($post_data),     ), );  $context  = stream_context_create($stream_options); $response = file_get_contents($url, null, $context);  var_dump($response); 

and other xml file is

<?xml version="1.0" encoding="utf-8"?> <req:bookpurequest xmlns:req="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.dhl.com  book-pickup-global-req.xsd" schemaversion="1.0">        <request>         <serviceheader>             <messagetime>2013-08-03t09:30:47-05:00</messagetime>             <messagereference>esteemed courier service of dhl</messagereference>             <siteid>xmlprontoeq</siteid>             <password>g8xichyl5r</password>         </serviceheader>     </request>     <regioncode>am</regioncode>     <requestor>         <accounttype>d</accounttype>         <requestorcontact>             <personname>rikhil</personname>             <phone>23162</phone>         </requestorcontact>     </requestor>     <place>         <locationtype>b</locationtype>         <companyname>string</companyname>         <address1>string</address1>         <address2>norfolk+st</address2>         <packagelocation>string</packagelocation>         <city>string</city>         <statecode>ca</statecode>         <divisionname>sd</divisionname>         <countrycode>br</countrycode>         <postalcode>66810</postalcode>     </place>     <pickup>         <pickupdate>2013-10-19</pickupdate>         <readybytime>10:20</readybytime>         <closetime>09:20</closetime>         <afterhoursclosingtime>11:20</afterhoursclosingtime>         <afterhourslocation>string</afterhourslocation>         <pieces>2</pieces>         <weight>             <weight>20</weight>             <weightunit>l</weightunit>         </weight>     </pickup>     <pickupcontact>         <personname>subhayu</personname>         <phone>4801313131</phone>     </pickupcontact>     <shipmentdetails>         <accounttype>c</accounttype>         <accountnumber>851624480</accountnumber>         <chargecard>             <chargecardno>232311212312311</chargecardno>             <chargecardtype>vi</chargecardtype>             <chargecardexpirydate>1206</chargecardexpirydate>         </chargecard>         <billtoaccountnumber>100000000</billtoaccountnumber>         <awbnumber>7520067111</awbnumber>         <numberofpieces>1</numberofpieces>         <weight>10</weight>         <weightunit>l</weightunit>         <globalproductcode>d</globalproductcode>         <doorto>dd</doorto>         <dimensionunit>i</dimensionunit>         <insuredamount>999999.99</insuredamount>         <insuredcurrencycode>usd</insuredcurrencycode>         <pieces>             <weight>10</weight>             <width>2</width>             <height>2</height>             <depth>2</depth>         </pieces>         <specialservice>s</specialservice>         <specialservice>i</specialservice>     </shipmentdetails>     <shipmentdetails>         <accounttype>d</accounttype>         <accountnumber>846737292</accountnumber>         <billtoaccountnumber>846737292</billtoaccountnumber>         <awbnumber>7520067111</awbnumber>         <numberofpieces>1</numberofpieces>         <weight>10</weight>         <weightunit>l</weightunit>         <globalproductcode>d</globalproductcode>         <doorto>dd</doorto>         <dimensionunit>i</dimensionunit>         <insuredamount>50</insuredamount>         <insuredcurrencycode>usd</insuredcurrencycode>         <pieces>             <weight>10</weight>             <width>2</width>             <height>2</height>             <depth>2</depth>         </pieces>         <specialservice>s</specialservice>     </shipmentdetails>  </req:bookpurequest> 


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -