InventoryUpdateFromXML

Last update: 2013-05-15
A service that adds or updates several items in an auction.

WEBSERVICE : http://webservices.vortexauction.com/functions.cfc?wsdl METHOD : InventoryUpdateFromXML ARGUMENTS : AUCTIONEER_ID [Numeric] Required | Your auctioneer ID ACCESS_KEY [String] Required | Your web service access key AUCTION_ID [Numeric] Optional | The ID of the target auction EXTERNAL_AUCTION_ID [String] Optional | The external ID of the target auction XML_DATA [String] Required | The actual data to add or update
NOTE : 1. You can specify an AUCTION_ID or EXTERNAL_AUCTION_ID, if both then only AUCTION_ID will be used. 2. If you do not specify an AUCTION_ID or EXTERNAL_AUCTION_ID then the values in the XML file will be used to identify the target auction.
RETURNS : InventoryUpdateFromXMLResponse ON FAILURE : <?xml version="1.0" encoding="utf-8"?> <InventoryUpdateFromXMLResponse> <Error> <Code>[Error code]</Code> <Message>[Error message]</Message> </Error> </InventoryUpdateFromXMLResponse> ON SUCCESS : <?xml version="1.0" encoding="utf-8"?> <InventoryUpdateFromXMLResponse> <ItemList> <Item> <External_ID>[External ID of the added or updated item]</External_ID> <Item_ID>[ID of the added or updated item]</Item_ID> </Item> OR <Item> <External_ID>[External ID of the added or updated item]</External_ID> <Error> <Code>[Error code]</Code> <Message>[Error message]</Message> </Error> </Item> ... </ItemList> </InventoryUpdateFromXMLResponse>
ERROR CODES : 00 = An unexpected error occured. 01 = Missing or invalid arguments. 02 = Invalid auctioneer id and/or access key. 03 = Could not find specified auction. 08 = An error occured while processing the XML data.
EXAMPLES : COLDFUSION : <cfinvoke webservice="http://webservices.vortexauction.com/functions.cfc?wsdl" method="InventoryUpdateFromXML" returnvariable="result"> <cfinvokeargument name="Auctioneer_ID" value="0" /> <cfinvokeargument name="Access_Key" value="..." /> <cfinvokeargument name="Auction_ID" value="0" /> <cfinvokeargument name="External_Auction_ID" value="..." /> <cfinvokeargument name="XML_Data" value="..." /> </cfinvoke> <cfdump var=#result# /> PHP : class InventoryUpdateFromXML { function InventoryUpdateFromXML($Auctioneer_ID, $Access_Key, $Auction_ID, $External_Auction_ID, $XML_Data) { $this->Auctioneer_ID = $Auctioneer_ID; $this->Access_Key = $Access_Key; $this->Auction_ID = $Auction_ID; $this->External_Auction_ID = $External_Auction_ID; $this->XML_Data = $XML_Data; } } $soapClient = new SoapClient("http://webservices.vortexauction.com/functions.cfc?wsdl"); $params = new InventoryUpdateFromXML(0, "...", 0, "...", "..."); $result = $soapClient->InventoryUpdateFromXML($params); var_dump($result);
TEST FORM: