ConsignorUpdate


A service that adds or updates a consignor.

WEBSERVICE : http://webservices.vortexauction.com/functions.cfc?wsdl METHOD : ConsignorUpdate ARGUMENT : AUCTIONEER_ID [Numeric] Required | Your auctioneer ID ACCESS_KEY [String] Required | Your web service access key CONSIGNOR_ID [Numeric] Optional | A consignor ID to update EXTERNAL_CONSIGNOR_ID [String] Required | An external consignor ID to add or update ACTIVE [Numeric] Required | Indicates whether this consignor can access the system (0 or 1) COMPANY [String] Optional | The consignor's company CONTACT_NAME [String] Required | The consignor's contact name CONTACT_EMAIL [String] Required | The consignor's contact e-mail address EMAIL [String] Required | The consignor's company e-mail address CITY [String] Optional | The city where the consignor is located TELEPHONE1 [String] Optional | The consignor's telephone number 1 TELEPHONE2 [String] Optional | The consignor's telephone number 2 USERNAME [String] Optional | The consignor's username PASSWORD [String] Optional | The consignor's password
NOTE : 1. If you specify an CONSIGNOR_ID, then this auction will be updated regardless of its previous EXTERNAL_CONSIGNOR_ID. 2. If you do not specify an CONSIGNOR_ID, then the auction with the specified EXTERNAL_CONSIGNOR_ID will be added or updated. 3. The password can be supplied directly or as an MD5 encrypted string, unencrypted passwords will be encryped in MD5 automaticaly.
RETURNS : ConsignorUpdateResponse ON FAILURE : <?xml version="1.0" encoding="utf-8"?> <ConsignorUpdateResponse> <Error> <Code>[Error code]</Code> <Message>[Error message]</Message> </Error> </ConsignorUpdateResponse> ON SUCCESS : <?xml version="1.0" encoding="utf-8"?> <ConsignorUpdateResponse> <Consignor> <Consignor_ID>[ID of the added or updated consignor]</Consignor_ID> </Consignor> </ConsignorUpdateResponse>
ERROR CODES : 00 = An unexpected error occured. 01 = Missing or invalid arguments. 02 = Invalid auctioneer ID and/or access key. 07 = Specified username is already used by another bidder.
EXAMPLES : COLDFUSION : <cfinvoke webservice="http://webservices.vortexauction.com/functions.cfc?wsdl" method="ConsignorUpdate" returnvariable="result"> <cfinvokeargument name="Auctioneer_ID" value="0" /> <cfinvokeargument name="Access_Key" value="..." /> <cfinvokeargument name="Consignor_ID" value="0" /> <cfinvokeargument name="External_Consignor_ID" value="..." /> <cfinvokeargument name="Active" value="0" /> <cfinvokeargument name="Company" value="..." /> <cfinvokeargument name="Contact_Name" value="..." /> <cfinvokeargument name="Contact_Email" value="..." /> <cfinvokeargument name="Email" value="..." /> <cfinvokeargument name="City" value="..." /> <cfinvokeargument name="Telephone1" value="..." /> <cfinvokeargument name="Telephone2" value="..." /> <cfinvokeargument name="Username" value="..." /> <cfinvokeargument name="Password" value="..." /> </cfinvoke> <cfdump var=#result# /> PHP : class ConsignorUpdate { function ConsignorUpdate($Auctioneer_ID, $Access_Key, $Bidder_ID, $External_Bidder_ID, $Active, $Company, $Contact_Name, $Contact_Email, $Email, $City, $Telephone1, $Telephone2, $Username, $Password) { $this->Auctioneer_ID = $Auctioneer_ID; $this->Access_Key = $Access_Key; $this->Consignor_ID = $Consignor_ID; $this->External_Consignor_ID = $External_Consignor_ID; $this->Active = $Active; $this->Company = $Company; $this->Contact_Name = $Contact_Name; $this->Contact_Email = $Contact_Email; $this->Email = $Email; $this->City = $City; $this->Telephone1 = $Telephone1; $this->Telephone2 = $Telephone2; $this->Username = $Username; $this->Password = $Password; } } $soapClient = new SoapClient("http://webservices.vortexauction.com/functions.cfc?wsdl"); $params = new ConsignorUpdate(0, "...", 0, "...", 0, "...", "...", "...", "...", "...", "...", "...", "...", "..."); $result = $soapClient->ConsignorUpdate($params); var_dump($result);
TEST FORM: