Search code examples
c#fedex

Connecting to the server machine 'wsbeta.fedex.com' failed


I want to start using Fedex web service, so I downloaded the sample code putted in the site "Fedex.com" for developers. But the folowing error occured:

Unable to automatically step into the server. Connecting to the server machine 'wsbeta.fedex.com' failed. This may be because the remote computer does not exist or a firewall may be preventing communication to the remote computer

it occured at this line:

ProcessShipmentReply reply = service.processShipment(request);

I use C#

Thank you,


Solution

  • I fixed the problem, It occurred because I did not put the correct Account number in this line:

    request.RequestedShipment.ShippingChargesPayment.Payor.ResponsibleParty.AccountNumber = "client's account number";

    Thank you James,

    Best Regards