Ebay webservices
Posted: Mon Jul 03, 2006 8:46 am
Hi, All
Currently I am working on a site that uses webservices of http://www.ebay.com, fetching records from is not problem, the problem is to just add items on ebay.com
following is my testing info through it I am trying to get the solution.
http://developer.ebay.com/DevProgram/sign_in.asp?
Userid: surenames1
Password: xxxxxxxxxxxx
Userid: nauman76
Password: xxxxxxxxxxx
Tier: INDIVIDUAL
Sandbox:
DevID: D79DE8FO8RE3125HY55FD51J866FX2
AppID: SURENAMESIS821U3DX31536MUA3J71
CertID: E7D94KERMM6$6PX1NZ413-J6591DJL
Production:
DevID: D79DE8FO8RE3125HY55FD51J866FX2
AppID: SURENAMESIQ126NH1131811O6AO5TC
CertID: G1368C1BT68$4DW4FJ888-5E1DAA11
my xml code is
I want to add item but there is problem.
Please help me.
sorry for bad English.
Regards: Shahid[/b]
Currently I am working on a site that uses webservices of http://www.ebay.com, fetching records from is not problem, the problem is to just add items on ebay.com
following is my testing info through it I am trying to get the solution.
http://developer.ebay.com/DevProgram/sign_in.asp?
Userid: surenames1
Password: xxxxxxxxxxxx
Userid: nauman76
Password: xxxxxxxxxxx
Tier: INDIVIDUAL
Sandbox:
DevID: D79DE8FO8RE3125HY55FD51J866FX2
AppID: SURENAMESIS821U3DX31536MUA3J71
CertID: E7D94KERMM6$6PX1NZ413-J6591DJL
Production:
DevID: D79DE8FO8RE3125HY55FD51J866FX2
AppID: SURENAMESIQ126NH1131811O6AO5TC
CertID: G1368C1BT68$4DW4FJ888-5E1DAA11
my xml code is
Code: Select all
[php]$requestXmlBody = '<?xml version="1.0" encoding="utf-8" ?>';
$requestXmlBody .= '<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">';
$requestXmlBody .= "<RequesterCredentials><eBayAuthToken>$userToken</eBayAuthToken></RequesterCredentials>";
$requestXmlBody .= "<Item>";
$requestXmlBody .= "<BuyItNowPrice>6.0</BuyItNowPrice>";
$requestXmlBody .= "<Country>US</Country>";
$requestXmlBody .= "<Currency>USD</Currency>";
$requestXmlBody .= "<ListingDuration>Days_7</ListingDuration>";
$requestXmlBody .= "<PaymentMethods>PayPal</PaymentMethods>";
$requestXmlBody .= "<PayPalEmailAddress>myaddress@foobar.com</PayPalEmailAddress>";
$requestXmlBody .= "<PrimaryCategory><CategoryID>88433</CategoryID></PrimaryCategory>";
$requestXmlBody .= "<Quantity>1</Quantity>";
$requestXmlBody .= "<RegionID>0</RegionID>";
$requestXmlBody .= "<StartPrice>.99</StartPrice>";
$requestXmlBody .= "<Title>Pink Floyd Dark Side of the Moon CD</Title>";
$requestXmlBody .= "</Item>";
$requestXmlBody .= '</AddItemRequest>';[/php]Please help me.
sorry for bad English.
Regards: Shahid[/b]