Ebay webservices

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Shahid
Forum Newbie
Posts: 2
Joined: Mon Jul 03, 2006 8:22 am

Ebay webservices

Post by Shahid »

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

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]
I want to add item but there is problem.
Please help me.
sorry for bad English.
Regards: Shahid[/b]
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

what is the problem? error messages?
Shahid
Forum Newbie
Posts: 2
Joined: Mon Jul 03, 2006 8:22 am

Post by Shahid »

The following error message in xml fromat is displayd

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:FailedAuthentication</faultcode>
   <faultstring>SOAP Authentication failed.</faultstring>
   <faultactor>http://www.ebay.com/ws/websvc/eBayAPI</faultactor>
   <detail>
    <FaultDetail>
     <ErrorCode>14007</ErrorCode>
     <Severity>Error</Severity>
     <DetailedMessage>SOAP Authentication failed due to missing or invalid security header.</DetailedMessage>
    </FaultDetail>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
Post Reply