Dotnetshipping API fork to this API no 'Service Object' #86
Unanswered
roberticomold
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So after converting my code from the Dotnetshipping API to the ShippingRates API. Yes, I agree I could not find any documentation, I just had to muddle through. I have been pinging Fedex for many years. We had at one time were requesting Duty from fedex, and later got too many bugs, and started calculating our own duties. But we are still using the dotnetshipping API and getting rates from FEDEX...
Well long story shot, I was wondering if upgradeing to the 'Shippingrates' API would work to help me get actual Duties from Fedex again. When converting to the new API. Well almost all the code seemed to convert except...
RateService service = new RateService();
service.Url = "https://ws.fedex.com:443/web-services"; //Live-Server
I'm trying to send a transaction to 'ws.fedex.com'... through the service object, and there is no 'Service' object in the ShippingRates API.
Followed by:
// Call the web service passing in a RateRequest and returning a RateReply
RateReply reply = service.getRates(request);
I have not had a problem building a ''request'.
The only thing you guys give as an example is the RateManager, but I can't find 'URL' object, that you might want to set a test--url address if I wanted. Also changing the code to the 'RateManager' style, seems completely different. Your other examples all seem to favor UPS.
Example: You have ported the 'ShippingRates.RateServiceWebReference.RateRequest' completely intact from Dotnetshipping. However, I don't see anyway to actually send the request.
Edit: It might be RatePortTypeClient has the same functions as the original 'RateService' object but I haven't been able to initialize or figure out the 'Endpoint'/channel that it wants. It does have a 'getRates(request) and returns a RateReply....
What I can't do is just use the 'RateManager': The RateManager, does not take a 'Request' object, and I can't enter any commodies for returning Duties and taxes for landed cost.
Beta Was this translation helpful? Give feedback.
All reactions