开发者

ASP.NET and FedEx integration

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜