Open aammotaibi opened 3 years ago
Hi,
If you can show some examples of the coutry code and how you passing it and also what is the response you are getting would be helpful.
Anyway, there are alot of bugs in their endpoint that i faced and haven't solved yet, So here is a quick solution, you can either dont pass it (if its not required then it will be alright) or you can pass this string "00000", anyway this is not recommended but if you are on dev or test environment this will help you.
Thanks
Thanks for the quick reply
Please check the links below for full request details
You're right, it's confusing, but anyway, this error is actually from Aramex's side maybe they don't have this city on their end, or maybe they didn't match the zip code with the city.
Anyway here's an advice, you can call the fetchCities
method and make sure that this city is supported or not, and ignore the Zipcode in validateAddress
method.
I wish I could help you, but there is nothing I can do because this error is not from my end, anyway I will keep this issue open for the community hoping someone could find out the actual reason behind their issue.
Hello,
I am already gettting cities list based on country using fetchCities
method also the zipcode is required in validateAddress
method , I attached the response without zip code. it's displaying error message "Address - Invalid Zipcode" , so it's look like zip code is required in validateAddress
method.
Sample Code :
$validateAddress = Aramex::validateAddress([
'line1' => 'Av. Gaspar de Villarroel E3-83, Quito 170513, Ecuador',
'country_code' => 'EC',
'city' => 'Quito',
]);
dd($validateAddress);
Yes, it is required, but sometimes when you don't pass the zipcode, they accept the request especially for the countries which has areas that don't have a zip code. like UAE for example, this country doesn't have a zip code, so you either pass 00000
as a zip code or you can pass zip code as an empty string (not 100% sure), but anyway in all cases, those errors are sent by their end as a response for the APIs calls from the SDK.
I hope this helps you.
Does it work in the localhost ?
when I use rate calculator, I am getting as below
SoapFault SOAP-ERROR: Parsing WSDL: Couldn't load from '<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="Service_1_0" targetNamespace="http://ws.aramex.net/ShippingAPI/v1/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://ws.aramex.net/ShippingAPI/v1/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.or
Hi there Most of the coutries shows error because of zip code but 100% sure that this zip code is correct
Any idea please