question

wayne90189 avatar image
0 Likes"
wayne90189 asked ·

Use .net 4.0 sdk version 1311 to GetOrdersCall get Error timeout

My ApiContext Code is here. What my Code lack.Run result is Error:timeout.
ps:my ApiServerUrl is https://api.ebay.com/wsapi

                apiContext =AppSettingHelper.GetApiContext();

                //set Api Server Url
                apiContext.SoapApiServerUrl =
                    ConfigurationManager.AppSettings["Environment.ApiServerUrl"];
                //set Api Token to access eBay Api Server
                ApiCredential apiCredential = new ApiCredential();
                apiCredential.eBayToken =
                    ConfigurationManager.AppSettings["UserAccount.ApiToken"];
                apiCredential.oAuthToken =
                    ConfigurationManager.AppSettings["OAuth.Application.Token"];
                apiContext.ApiCredential = apiCredential;
                //set eBay Site target to US
                apiContext.Site = SiteCodeType.US;

                //set Api logging
                apiContext.ApiLogManager = new ApiLogManager();
                apiContext.ApiLogManager.ApiLoggerList.Add(
                    new FileLogger("listing_log.txt", true, true, true)
                    );
                apiContext.ApiLogManager.EnableLogging = true;

GetOrdersCall it here

                GetOrdersCall api = new GetOrdersCall(context);
                api.OrderRole = TradingRoleCodeType.Seller;
                api.OrderStatus = OrderStatusCodeType.Completed;
                System.DateTime calTo = System.DateTime.Now;
                System.DateTime calFrom = new DateTime(calTo.Year, calTo.Month, calTo.Day-1);
                api.CreateTimeFrom = calFrom;
                api.CreateTimeTo = calTo;
                // Make API call.
                OrderTypeCollection orders = api.GetOrders(calFrom, calTo, api.OrderRole, api.OrderStatus);


orders.net sdk
· 3
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I add in context and call version 1165 still time out...

apiContext = AppSettingHelper.GetApiContext();
//set Api Token to access eBay Api Server
ApiCredential apiCredential = new ApiCredential();
//set Api Server Url
apiContext.SoapApiServerUrl = ApiServerUrl;
apiContext.EPSServerUrl = EPSServerUrl;
apiCredential.eBayToken = UerToken;
apiCredential.oAuthToken = oAuthToken;
apiContext.ApiCredential = apiCredential;
apiContext.Version = "1165";

this call part

api.Version = "1165";
OrderTypeCollection orders = api.GetOrders(calFrom, calTo, api.OrderRole, api.OrderStatus);


0 Likes 0 · ·

I serch guid add this still time out

context.ApiCredential.ApiAccount.Application =“ MyAppId”;
context.ApiCredential.ApiAccount.Certificate =“ MyCertId”;
context.ApiCredential.ApiAccount.Developer =“ MyDevID”;
context.ApiCredential.eBayToken =“ ABC ... 123”;
0 Likes 0 · ·

1 Answer

· Write an Answer
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·

Hi @wayne90189, Can you please retry the call, and if the issue still persists please Please submit a technical support request here - https://developer.ebay.com/my/support/tickets as more details of your developer account are required to triage this issue.

Best Regards,

eBay Developer Support

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.