开发者

ASP.NET and FedEx integration

开发者 https://www.devze.com 2023-01-26 17:12 出处:网络
i am doing FedEx integration with asp.net project. The web service works correct but, I have some doubts about the API code

i am doing FedEx integration with asp.net project. The web service works correct but, I have some doubts about the API code

Anyone know what is the use of RateRequestTypes object in FedEx API? Can you please tell what is the purpose of the following lines in the code

request.RequestedShipment.RateRequestTypes = new RateRequestType[2];
request.RequestedShipment.RateRequestTypes[0] = RateRequestType.ACCOUNT;
request.RequestedShipment.R开发者_如何学JAVAateRequestTypes[1] = RateRequestType.LIST;


The RateRequestType is if you have an Account with Fedex you will get Account based rates, otherwise List base rates which are more expensive. Most people when developing an api for fed ex use account based rates.


RateRequestTypes object in FedEx API?

Simple answer, no. You need to look at the documentation FedEx (should've) provided you.

If the problem is elsewhere, such as not understanding the messages being passed to and from, then take a look at fiddler. I find this is worth its weight in gold when debugging web services.

0

精彩评论

暂无评论...
验证码 换一张
取 消