GetQuote2 returns the exact same information as GetQuote. However requires the addition of a Country Code Variable. If Country Code is not declared, this will default to "AU" Australia.
In this instance I am making a call to GetChargeQuote in my uat environment through postman, Things I need to perform this call:
- My Session Credentials form my previous Login Call
- Note Session Credentials will expire If
- You Have generated a new "Key"
- You Have Passed the Expiry Date of the Session
- The User has been Deleted/made inactive
- Note Session Credentials will expire If
- Your package/quote information
Endpoint: https://bau-uat-ws.azurewebsites.net/Data/ChainIT/DataService.svc
Headers:
- Key: Content-Type Value: text/xml
- Key: SoapAction Value: http://www.opensys.com.au/ChainIT/4.0/ChainITDataServices/IChainITService/GetChargeQuote2
Not Required
Header declaration is not required for SoapUI. *SoapUI does this automatically
Body:
Web Service Call
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cha="http://www.opensys.com.au/ChainIT/4.0/ChainITDataServices"> <soapenv:Header/> <soapenv:Body> <cha:GetChargeQuote2> <!-- Session Credentials Available By following the "Login Web Service Call" --> <cha:session> <cha:AccountID>115860</cha:AccountID> <!--Mandatory:--> <cha:DistributorID>101605</cha:DistributorID> <!--Mandatory:--> <cha:Expires>2018-08-14T09:27:17.78</cha:Expires> <!--Mandatory:--> <cha:Key>D1F83B85-4EEE-4AD1-BC53-99E57836C246</cha:Key> <!--Mandatory:--> <cha:UserID>64796</cha:UserID> <!--Mandatory:--> </cha:session> <cha:shipperID>115860</cha:shipperID> <!--Mandatory:--> <cha:effectiveDate>15/08/2018</cha:effectiveDate> <!--Mandatory:--> <cha:senderLocation>Nunawading</cha:senderLocation> <!--Mandatory:--> <cha:senderPostcode>3131</cha:senderPostcode> <!--Mandatory:--> <cha:senderCountryCode>AU</cha:senderCountryCode> <!--Mandatory:--> <cha:receiverLocation>MOUNT EVELYN</cha:receiverLocation> <!--Mandatory:--> <cha:receiverPostcode>3796</cha:receiverPostcode> <!--Mandatory:--> <cha:receiverCountryCode>AU</cha:receiverCountryCode> <!--Mandatory:--> <cha:items>4</cha:items> <!--Mandatory:--> <cha:weight>18</cha:weight> <!--Mandatory:--> <cha:volume>20</cha:volume> <!--Mandatory:--> <cha:time>0</cha:time> <!--Optional:Estimated Travel Time. Recommended not to be used as inaccuracies in time calculation greatly vary quote results.--> <cha:distance>0</cha:distance> <!--Optional: Estimated Distance between sender and receiver locations. Recommended not to be used as inaccuracies in route taken greatly vary quote results. --> <cha:serviceList></cha:serviceList> </cha:GetChargeQuote2> </soapenv:Body> </soapenv:Envelope>
Related articles
Filter by label
There are no items with the selected labels at this time.