Article:
  Programming eBay Web Services with PHP 5 and Services_Ebay
Subject:   How to add item using ebay web services
Date:   2006-07-06 01:12:18
From:   M-Shahid
Hi All,
I am trying to add item for many days but still I am heaving problems. I am using nusoap in my php application.
My php code is as below.[/pre]<?php
require_once('nusoap.php');
$param = array('Currency' => 'USD',
'Country' => 'US',
'BuyItNowPrice' => '5.5',
'eBayAuthToken' => 'AgAAAA**AQAAAA**aAAAAA**17tgRA**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wJnY+lDZWCpw2dj6x9nY+seQ**gmkAAA**AAMAAA**jEiD1/ki0UiT+5IW2yny0K3pteXHWd8dfWoBvaR10jYRL3Pe9QDXZhENV/TgDUBnJBpA3eaFXoBcHgSBFGENu1p5NPI/XEI1EC6qaef7YhoozlqkoegA+uzpg83EZNWggomERenpBRbjmFAA/joVdn6WFpK5F+tBOKfAgK/cgf+dWWwQ85hjFRE4x2e4Rvi4SPkxRDsD5HZcfxkD14T7FhVTkeraaKm9kEOnqeTedWfT7R1ZdDyKwhX190tOKQqiEcFWxHLjuy9sGgKZI1qF6o+rjKZBo/nXHx2JGDVC5oLyAnMwlvuU5MkonOSMC6XGEAt7YCMS6A7ODNATfFB/LUY6Hwal/BAkyCdXKUNnYrPlELCyvmqZyeI/gkVoxU9dFF6UuJyX+Tek6vdODGCuJHHn2NDUXB54J5Um2QP48K5oS0jw1h+GTLwoLaA9FaX0IQBdleAw/CJy8SPd7CM0tOkyQ84i2l25FOYJ5FUqaReLLJhv3sGEYxU9lmzhIWj98yWcqprY7LnECU2CRSsWRygElh/U6ZcR4uRj6pnfZwmWON7sjRRsMJLoGMnlg3OfOQadVFYp5JfQ2XfxtkRas3uCcOhTpmG8EcUx28Xbf/h/QQhHNgdxDwmPYZKwzyIziLOjY6lPFVebT+EPadSqEYrigqul9rm/IyZQ9gtN/M02al+CPEOdtvzizMgr221+MjaipGW+zviEnOBPsgR9kF8SRFw9dywuHT1P8Zm2jbC2a6qY0ln/CQepIpcl/Pix',
'ListingDuration' => 'Days_7',
'Location' => 'San Jose, CA',
'PaymentMethods' => 'PayPal',
'PayPalEmailAddress' => 'abc@abc.com',
'CategoryID' => '307',
'RegionID' => '0',
'StartPrice' => '0.55',
'X-EBAY-API-COMPATIBILITY-LEVEL:' => '433',
'X-EBAY-API-DEV-NAME:' => 'D79DE8FO8RE3125HY55FD51J866FX2',
'X-EBAY-API-APP-NAME:' => 'SURENAMESIS821U3DX31536MUA3J71',
'X-EBAY-API-CERT-NAME:' => 'E7D94KERMM6$6PX1NZ413-J6591DJL',
'X-EBAY-API-SITEID:' => '0',
'X-EBAY-API-CALL-NAME:' => 'AddItem',
'Title' => 'Pink Floyd Dark Side of the Moon CD'
);
$client = new soapclient('https://api.sandbox.ebay.com/wsapi?callname=AddItem&siteid=0&version=450');


$response = $client->call('AddItem',$param);


if ($client->fault) {
echo "FAULT: Code: {$client->faultcode}";
echo "String: {$client->faultstring}";
} else {
echo "$" . $response;
echo 'Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
';
echo 'Response
' . htmlspecialchars($client->response, ENT_QUOTES) . '
';
} ?>
When I execute the script above the following error message display on my browser.
FAULT:
Code: soapenv:Server.userException
String: org.xml.sax.SAXParseException: Element or attribute do not match QName production: QName::=(NCName':')?NCName.
Please help me that where the actual problem is reside. I heave study AddItem manul also.
Sorry for bad English,
Regards:
Shahid
Full Threads Newest First

Showing messages 1 through 1 of 1.

  • reply this topic
    2010-06-01 06:24:15  RoblesRochelle18 [View]