Troubles using AddFixedPriceItem - eBay Suspended & PayPal Limited Forums
eBay Suspension & PayPal Limited Forums  
Join Today
Register Subscribe
     

Registration is fast, simple and absolutely free so please, join our community today!


Go Back   Home > Stealth Topics > Auction Listing > EBay Tools and Software

EBay Tools and Software General discussions on eBay tools & software, Auctiva, Turbo Lister, InkFrog, ShipStation and more.

Reply
 
Thread Tools
  #1  
Old 11-13-2012
Junior Member
 
Join Date: Nov 2012
Posts: 2
Thanks: 8
Thanked 0 Times in 0 Posts
Activity: 0%
Longevity: 70%
iTrader: (0)
Smile Troubles using AddFixedPriceItem

Hello,

I'm having troubles using the AddFixedPriceItem metod. After calling i catch an error saying:

com.ebay.app.pres.service.hosting.WebServiceDisabl edException: The web service eBayAPI is not properly configured or not found and is disabled.

My code is as listed below, the only thing missing is some kind af FixedPrice property so i'm using StartPrics and BuyItNowPrice.....

Hope someone can help me :-)

Thanks a lot
Henning

// Sandbox Keys
const string sDevIdSandbox = "b8be0bbf-fb9f-4674******************";
const string sAppIdSandbox = "Netflise-7af1-41a4******************";
const string sCertIdSandbox = "5474e917-c93f-4b7e******************";
const string sUserTokenSandbox = "AgAAAA**AQAAAA**aAAAAA**Gf2********************** **";

public void SkubVarerTilEbayHandelsplatform(int iMode, string sDatabaseSrc, string sHTMLdescriptionSRC)
{
// iMode 0 = Sandbox, iMode 1 = Production
// sDatabaseSrc = sti til AccessDatabase
// sHTMLdescriptionSRC = sti til beskrivende HTML-fil....

eBayAPIInterfaceService eBayAPI = new eBayAPIInterfaceService();
OleDbConnection AccessConn = new OleDbConnection();
OleDbCommand AccessCmd = new OleDbCommand();
OleDbCommand AccessCmd2 = new OleDbCommand();
OleDbDataReader readerAccess;

string sUserName = "";
string sPassWord = "";

if (iMode == 0)
{
sUserName = "TESTUSER_NetfliserDK";
sPassWord = "********";
}
else
{
sUserName = "NetfliserDK";
sPassWord = "********";
}


#region åbn access database
string connectionStringAccess = "Provider=Microsoft.ACE.OLEDB.12.0;" + @"Data Source=" + sDatabaseSrc;
AccessConn = new OleDbConnection(connectionStringAccess);
AccessConn.Open();
#endregion åbn access database

// Set credentials
eBayAPIInterfaceService service = new eBayAPIInterfaceService();

service.RequesterCredentials = new CustomSecurityHeaderType();
//service.RequesterCredentials.eBayAuthToken = ConfigurationManager.AppSettings["UserToken"];
service.RequesterCredentials.Credentials = new UserIdPasswordType();
service.RequesterCredentials.Credentials.Username = sUserName;
service.RequesterCredentials.Credentials.Password = sPassWord;
ApiContext context = new ApiContext();
context.ApiCredential.eBayToken = sUserName; // "NetfliserDK";
context.ApiCredential.eBayAccount.UserName = sUserName;
context.ApiCredential.eBayAccount.Password = sPassWord;

context.SoapApiServerUrl = "https://api.sandbox.ebay.com/wsapi";
context.XmlApiServerUrl = "https://api.sandbox.ebay.com/wsapi";
context.EPSServerUrl = "https://api.sandbox.ebay.com/wsapi";
service.Url = "https://api.sandbox.ebay.com/wsapi";
service.RequesterCredentials.Credentials.AppId = sAppIdSandbox;
service.RequesterCredentials.Credentials.DevId = sDevIdSandbox;
service.RequesterCredentials.Credentials.AuthCert = sCertIdSandbox;
service.RequesterCredentials.Credentials.Any = null;
service.RequesterCredentials.eBayAuthToken = sUserTokenSandbox;


service.Timeout = 10000;
context.Version = "673";
context.Site = SiteCodeType.UK;

//create the call object
AddFixedPriceItemCall AddFPItemCall = new AddFixedPriceItemCall(context);
//Send UUID with the request
AddFPItemCall.AutoSetItemUUID = true;
AddFPItemCall.ApiContext.SoapApiServerUrl = service.Url;

ItemType item = new ItemType();

//set the item condition depending on the value from GetCategoryFeatures
item.ConditionID = 1000; //new with tags

//Basic properties of a listing
item.Country = CountryCodeType.DK;
item.Currency = CurrencyCodeType.DKK;

string serverUrl = "";
string userToken = "";
serverUrl = service.Url;
userToken = context.ApiCredential.eBayAccount.UserName;

#region Klargør logging mod eBay
context.ApiLogManager = new ApiLogManager();
context.ApiLogManager.ApiLoggerList.Add(new FileLogger("log.txt", true, true, true));
context.ApiLogManager.EnableLogging = true;
#endregion Klargør logging mod eBay

#region loop gennem varer og kald Ebay API
string AccessSQL = "";
AccessSQL = "SELECT Type, Varenummer, ArtikelNavn, DetailUdsalgspris, Billede1, minibillede, AccessId, StkPrM2, StkPrPalle FROM JyllandFynFliser WHERE onEbay = true";

AccessCmd = new OleDbCommand(AccessSQL, AccessConn);
readerAccess = AccessCmd.ExecuteReader();
//AddItemRequestType AddItemRequest = new AddItemRequestType();
AddFixedPriceItemRequestType AddFixedPriceItemRequest = new AddFixedPriceItemRequestType();

while (readerAccess.Read())
{
#region Opsæt parametre for denne vare
AddFixedPriceItemRequest.Item = new ItemType();

AddFixedPriceItemRequest.Item.Title = readerAccess.GetValue(2).ToString();
AddFixedPriceItemRequest.Item.SellerContactDetails = new AddressType();
AddFixedPriceItemRequest.Item.SellerContactDetails .CompanyName = "www.netfliser.dk";

AddFixedPriceItemRequest.Item.BuyItNowPrice = new AmountType();
AddFixedPriceItemRequest.Item.StartPrice = new AmountType();
AddFixedPriceItemRequest.Item.BuyItNowPrice.curren cyID = CurrencyCodeType.DKK;
AddFixedPriceItemRequest.Item.StartPrice.currencyI D = CurrencyCodeType.DKK;
AddFixedPriceItemRequest.Item.BuyItNowPrice.Value = Convert.ToDouble(readerAccess.GetValue(3));
AddFixedPriceItemRequest.Item.StartPrice.Value = Convert.ToDouble(readerAccess.GetValue(3));

AddFixedPriceItemRequest.Item.PictureDetails = new PictureDetailsType();
AddFixedPriceItemRequest.Item.PictureDetails.Galle ryType = GalleryTypeCodeType.None;
AddFixedPriceItemRequest.Item.PictureDetails.Galle ryTypeSpecified = true;
#endregion Opsæt parametre for denne vare

#region push at eBay
try
{
service.AddFixedPriceItem (AddFixedPriceItemRequest);
}
catch (Exception e)
{
// ToDo something with error....
string str;
str = e.Message.ToString();
}
Reply With Quote
The complete step-by-step guide to get back to selling today!

Reply




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
paypal troubles! nasdaq PayPal Talk 13 08-10-2012 03:48 AM
Amazon troubles: why? saffron604 Amazon X 3 07-29-2011 03:35 PM
More paypal troubles isitworththestress UK PayPal Talk 2 06-15-2011 09:47 AM
Buyer troubles jwinno Subscriber Discussions 2 11-17-2010 01:24 AM


All times are GMT -5. The time now is 08:25 AM.


Stop the guessing games and learn how you can quickly and easily get back on eBay today!
Read the best selling step-by-step eBay Suspension guide eBay Stealth!
Rotating Residential Proxies? Head to IPBurger for Residential Proxies
vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Ad Management by RedTyger
no new posts