Skip to main content
Published: February 07 2007, 2:42:00 PMUpdated: November 28 2020, 3:18:32 PM

Is there .net sample code on using the SetPromotionalSaleListings call?

SetPromotionalSaleListings sample implemented in vb.net using Visual Studio .NET (original version, not 2003 or 2005) using the SOAP API

Detailed Description

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

Requirements:

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 for the 497 WSDL is valid.
If needed, remove the existing web reference, and add the web reference of your choosing again.
The WSDLs for each release can be found at the following URL(s):
http://developer.ebay.com/webreference/VERSION/eBaySvc.wsdl
where you replace VERSION with the number you wish to use.

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

svc.RequesterCredentials.Credentials.DevId = "xxx"
svc.RequesterCredentials.Credentials.AppId = "xxx"
svc.RequesterCredentials.Credentials.AuthCert = "xxx"
svc.RequesterCredentials.eBayAuthToken = "token"
svc.Url = "https://api.ebay.com/wsapi?siteid=0&callname=SetPromotionalSaleListings&version=497&appname=xxx"

Please note that the default API URL is set to Production:
svc.Url = "https://api.ebay.com/wsapi?siteid=0&callname=SetPromotionalSaleListings&version=497&appname=xxx"


Version Info

The attached project is based on the following versions:

SOAP API version 497
Visual Studio Original .NET (not 2003 or 2005)


Additional Resources

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