Skip to main content
Published: December 06 2013, 2:51:00 PMUpdated: November 28 2020, 11:22:31 PM

AddOrder sample implemented in c# using Visual Studio .NET (original version, not 2003 or 2005) using eBay .NET SDK v495 Full Release

Detailed Description

The attached command line sample project contains an implementation of the AddOrder API call.


Any version of Visual Studio .NET

The attached project uses the original version of Visual Studio .NET
If you have a newer version of Visual Studio .NET, you should let it automatically convert the project when prompted to do so. This will result in a project that is fully functional for the Visual Studio .NET verison that you are using.

1. Before you build this sample project, please make sure to check that the project's reference to eBay.Service is valid.
The path to this reference is D:\Program Files\eBay\eBay .NET SDK v495 Full Release\eBay.Service.dll in this sample.
If needed, remove the existing reference, and add the reference again pointing to whereever this file is on your computer.

2. Before you run the sample, you will need to fill in your information in place of the 'xxx' in the following lines of source code:

' set the dev,app,cert information
oContext.ApiCredential.ApiAccount.Developer = 'xxx';
oContext.ApiCredential.ApiAccount.Application = 'xxx';
oContext.ApiCredential.ApiAccount.Certificate = 'xxx';

' set the AuthToken
oContext.ApiCredential.eBayToken = 'xxx';

Please note that the default API URL is set to Production:
oContext.SoapApiServerUrl = '';

Version Info

The attached project is based on the following versions:

.NET SDK Version 495 Full Release
Visual Studio Original .NET (not 2003 or 2005)

How well did this answer your question?
Answers others found helpful