Skip to content

Instantly share code, notes, and snippets.

@andychongyz
Last active February 9, 2018 07:32
Show Gist options
  • Select an option

  • Save andychongyz/6fd2f205a8f93ddf731a0431cd121e66 to your computer and use it in GitHub Desktop.

Select an option

Save andychongyz/6fd2f205a8f93ddf731a0431cd121e66 to your computer and use it in GitHub Desktop.
aramex create shipment credential error with LON credential
<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:v1=\"http://ws.aramex.net/ShippingAPI/v1/\">\n" +
" <soapenv:Header/>\n" +
" <soapenv:Body>\n" +
" <v1:ShipmentCreationRequest>\n" +
" <v1:ClientInfo>\n" +
" <v1:UserName>[email protected]</v1:UserName>\n" +
" <v1:Password>R123456789$r</v1:Password>\n" +
" <v1:Version>v1.0</v1:Version>\n" +
" <v1:AccountNumber>102331</v1:AccountNumber>\n" +
" <v1:AccountPin>331321</v1:AccountPin>\n" +
" <v1:AccountEntity>LON</v1:AccountEntity>\n" +
" <v1:AccountCountryCode>GB</v1:AccountCountryCode>\n" +
" </v1:ClientInfo>\n" +
" <v1:Transaction>\n" +
" <v1:Reference1>PostCo Parcel Return Service</v1:Reference1>\n" +
" <v1:Reference2></v1:Reference2>\n" +
" <v1:Reference3></v1:Reference3>\n" +
" <v1:Reference4></v1:Reference4>\n" +
" <v1:Reference5></v1:Reference5>\n" +
" </v1:Transaction>\n" +
" <v1:Shipments>\n" +
" <!--Zero or more repetitions:-->\n" +
" <v1:Shipment>\n" +
" <v1:Reference1>PostCo Parcel Return Service</v1:Reference1>\n" +
" <v1:Reference2></v1:Reference2>\n" +
" <v1:Reference3></v1:Reference3>\n" +
" <v1:Shipper>\n" +
" <v1:Reference1>PostCo Parcel</v1:Reference1>\n" +
" <v1:Reference2></v1:Reference2>\n" +
" <v1:AccountNumber>102331</v1:AccountNumber>\n" +
" <v1:PartyAddress>\n" +
" <v1:Line1>The Hideout</v1:Line1>\n" +
" <v1:Line2>1 Tech Park</v1:Line2>\n" +
" <v1:Line3></v1:Line3>\n" +
" <v1:City>Petaling Jaya</v1:City>\n" +
" <v1:StateOrProvinceCode></v1:StateOrProvinceCode>\n" +
" <v1:PostCode>47800</v1:PostCode>\n" +
" <v1:CountryCode>MY</v1:CountryCode>\n" +
" </v1:PartyAddress>\n" +
" <v1:Contact>\n" +
"\t\t\t\t\t<v1:Department>PostCo Parcel Return</v1:Department>\n" +
"\t\t\t\t\t<v1:PersonName>Andy Chong</v1:PersonName>\n" +
"\t\t\t\t\t<v1:Title></v1:Title>\n" +
"\t\t\t\t\t<v1:CompanyName>PostCafe PostCo3</v1:CompanyName>\n" +
"\t\t\t\t\t<v1:PhoneNumber1>+60188888777</v1:PhoneNumber1>\n" +
"\t\t\t\t\t<v1:PhoneNumber1Ext></v1:PhoneNumber1Ext>\n" +
"\t\t\t\t\t<v1:PhoneNumber2>+60169332821</v1:PhoneNumber2>\n" +
"\t\t\t\t\t<v1:PhoneNumber2Ext></v1:PhoneNumber2Ext>\n" +
"\t\t\t\t\t<v1:FaxNumber></v1:FaxNumber>\n" +
"\t\t\t\t\t<v1:CellPhone>+60188888777</v1:CellPhone>\n" +
"\t\t\t\t\t<v1:EmailAddress>[email protected]</v1:EmailAddress>\n" +
"\t\t\t\t\t<v1:Type>Pending</v1:Type>\n" +
"\t\t\t\t</v1:Contact>\n" +
" </v1:Shipper>\n" +
" <v1:Consignee>\n" +
" <v1:Reference1>PostCo Parcel</v1:Reference1>\n" +
" <v1:Reference2></v1:Reference2>\n" +
" <v1:AccountNumber>102331</v1:AccountNumber>\n" +
" <v1:PartyAddress>\n" +
" <v1:Line1>LF Logistics Sdn Bhd</v1:Line1>\n" +
" <v1:Line2>Lot 6, Persiaran Budiman</v1:Line2>\n" +
" <v1:Line3>Section 23</v1:Line3>\n" +
" <v1:City>Shah Alam</v1:City>\n" +
" <v1:StateOrProvinceCode></v1:StateOrProvinceCode>\n" +
" <v1:PostCode>40300</v1:PostCode>\n" +
" <v1:CountryCode>MY</v1:CountryCode>\n" +
" </v1:PartyAddress>\n" +
" <v1:Contact>\n" +
"\t\t\t\t\t<v1:Department>PostCo Parcel Return</v1:Department>\n" +
"\t\t\t\t\t<v1:PersonName>Adidas</v1:PersonName>\n" +
"\t\t\t\t\t<v1:Title></v1:Title>\n" +
"\t\t\t\t\t<v1:CompanyName>Adidas @ PostCo</v1:CompanyName>\n" +
"\t\t\t\t\t<v1:PhoneNumber1>+60169332821</v1:PhoneNumber1>\n" +
"\t\t\t\t\t<v1:PhoneNumber1Ext></v1:PhoneNumber1Ext>\n" +
"\t\t\t\t\t<v1:PhoneNumber2>+60169332821</v1:PhoneNumber2>\n" +
"\t\t\t\t\t<v1:PhoneNumber2Ext></v1:PhoneNumber2Ext>\n" +
"\t\t\t\t\t<v1:FaxNumber></v1:FaxNumber>\n" +
"\t\t\t\t\t<v1:CellPhone>+60169332821</v1:CellPhone>\n" +
"\t\t\t\t\t<v1:EmailAddress>[email protected]</v1:EmailAddress>\n" +
"\t\t\t\t\t<v1:Type>Pending</v1:Type>\n" +
"\t\t\t\t</v1:Contact>\n" +
" </v1:Consignee>\n" +
" <v1:ThirdParty>\n" +
" <v1:Reference1>PostCo</v1:Reference1>\n" +
" <v1:Reference2></v1:Reference2>\n" +
" <v1:AccountNumber>102331</v1:AccountNumber>\n" +
" <v1:PartyAddress>\n" +
" <v1:Line1>Level 6.06 H Space, KPMG Tower</v1:Line1>\n" +
" <v1:Line2>8 First Avenue</v1:Line2>\n" +
" <v1:Line3>Bandar Utama</v1:Line3>\n" +
" <v1:City>Petaling Jaya</v1:City>\n" +
" <v1:StateOrProvinceCode></v1:StateOrProvinceCode>\n" +
" <v1:PostCode>47800</v1:PostCode>\n" +
" <v1:CountryCode>MY</v1:CountryCode>\n" +
" </v1:PartyAddress>\n" +
" <v1:Contact>\n" +
" <v1:Department></v1:Department>\n" +
" <v1:PersonName>Melisa Wang</v1:PersonName>\n" +
" <v1:Title>Mrs</v1:Title>\n" +
" <v1:CompanyName>Postal Connection Sdn Bhd</v1:CompanyName>\n" +
" <v1:PhoneNumber1>+60169332821</v1:PhoneNumber1>\n" +
" <v1:PhoneNumber1Ext></v1:PhoneNumber1Ext>\n" +
" <v1:PhoneNumber2>+60169332821</v1:PhoneNumber2>\n" +
" <v1:PhoneNumber2Ext></v1:PhoneNumber2Ext>\n" +
" <v1:FaxNumber></v1:FaxNumber>\n" +
" <v1:CellPhone>+60169332821</v1:CellPhone>\n" +
" <v1:EmailAddress>[email protected]</v1:EmailAddress>\n" +
" <v1:Type>Pending</v1:Type>\n" +
" </v1:Contact>\n" +
" </v1:ThirdParty>\n" +
" <v1:ShippingDateTime>2018-02-10</v1:ShippingDateTime>\n" +
" <v1:DueDate>2018-02-11</v1:DueDate>\n" +
" <v1:Comments></v1:Comments>\n" +
" <v1:PickupLocation></v1:PickupLocation>\n" +
" <v1:OperationsInstructions></v1:OperationsInstructions>\n" +
" <v1:AccountingInstrcutions></v1:AccountingInstrcutions>\n" +
" <v1:Details>\n" +
" <v1:Dimensions>\n" +
" <v1:Length>50.000</v1:Length>\n" +
" <v1:Width>50.000</v1:Width>\n" +
" <v1:Height>50.000</v1:Height>\n" +
" <v1:Unit>CM</v1:Unit>\n" +
" </v1:Dimensions>\n" +
" <v1:ActualWeight>\n" +
" <v1:Unit>KG</v1:Unit>\n" +
" <v1:Value>0.500</v1:Value>\n" +
" </v1:ActualWeight>\n" +
" <v1:ChargeableWeight>\n" +
" <v1:Unit>0.500</v1:Unit>\n" +
" <v1:Value>0.500</v1:Value>\n" +
" </v1:ChargeableWeight>\n" +
" <v1:DescriptionOfGoods></v1:DescriptionOfGoods>\n" +
" <v1:GoodsOriginCountry></v1:GoodsOriginCountry>\n" +
" <v1:NumberOfPieces>1</v1:NumberOfPieces>\n" +
" <v1:ProductGroup>DOM</v1:ProductGroup>\n" +
" <v1:ProductType>ONP</v1:ProductType>\n" +
" <v1:PaymentType>3</v1:PaymentType>\n" +
" <v1:PaymentOptions></v1:PaymentOptions>\n" +
" <v1:CustomsValueAmount>\n" +
" <v1:CurrencyCode>MYR</v1:CurrencyCode>\n" +
" <v1:Value>0.000</v1:Value>\n" +
" </v1:CustomsValueAmount>\n" +
" <v1:InsuranceAmount>\n" +
" <v1:CurrencyCode>MYR</v1:CurrencyCode>\n" +
" <v1:Value>0.000</v1:Value>\n" +
" </v1:InsuranceAmount>\n" +
" <v1:CashAdditionalAmount>\n" +
" <v1:CurrencyCode>MYR</v1:CurrencyCode>\n" +
" <v1:Value>0.000</v1:Value>\n" +
" </v1:CashAdditionalAmount>\n" +
" <v1:CashAdditionalAmountDescription></v1:CashAdditionalAmountDescription>\n" +
" <v1:CollectAmount>\n" +
" <v1:CurrencyCode>MYR</v1:CurrencyCode>\n" +
" <v1:Value>0.000</v1:Value>\n" +
" </v1:CollectAmount>\n" +
" <v1:Services></v1:Services>\n" +
" <v1:Items>\n" +
" <!--Zero or more repetitions:-->\n" +
" <v1:ShipmentItem>\n" +
" <v1:PackageType>Plastic</v1:PackageType>\n" +
" <v1:Quantity>1</v1:Quantity>\n" +
" <v1:Weight>\n" +
" <v1:Unit>KG</v1:Unit>\n" +
" <v1:Value>0.500</v1:Value>\n" +
" </v1:Weight>\n" +
" <v1:Comments></v1:Comments>\n" +
" <v1:Reference></v1:Reference>\n" +
" </v1:ShipmentItem>\n" +
" </v1:Items>\n" +
" </v1:Details>\n" +
" <v1:Attachments>\n" +
" <!--Zero or more repetitions:-->\n" +
" <v1:Attachment>\n" +
" <v1:FileName></v1:FileName>\n" +
" <v1:FileExtension></v1:FileExtension>\n" +
" <v1:FileContents></v1:FileContents>\n" +
" </v1:Attachment>\n" +
" </v1:Attachments>\n" +
" <v1:ForeignHAWB></v1:ForeignHAWB>\n" +
" <v1:TransportType_x0020_>0</v1:TransportType_x0020_>\n" +
" <v1:PickupGUID></v1:PickupGUID>\n" +
" </v1:Shipment>\n" +
" </v1:Shipments>\n" +
" <v1:LabelInfo>\n" +
" <v1:ReportID>9201</v1:ReportID>\n" +
" <v1:ReportType>URL</v1:ReportType>\n" +
" </v1:LabelInfo>\n" +
" </v1:ShipmentCreationRequest>\n" +
" </soapenv:Body>\n" +
" </soapenv:Envelope>\n" +
" "
[email protected]
ARAMEX_PASSWORD='R123456789$r'
ARAMEX_ACCOUNT_NUMBER=102331
ARAMEX_ACCOUNT_PIN=331321
ARAMEX_ACCOUNT_ENTITY=LON
ARAMEX_ACCOUNT_COUNTRY_CODE=GB
ARAMEX_HOST_URL=http://ws.dev.aramex.net
Savon::HTTPError: HTTP error (403): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>403 - Forbidden: Access is denied.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>403 - Forbidden: Access is denied.</h2>
<h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
</fieldset></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment