Exigo Web Services API v3.4.244

UpdateParty

Updates selected Party instance

Input Properties

UpdatePartyRequest
PropertyData TypeNotes
PartyIDInt32
PartyTypeInt32Optional. Optional PartyTy.
PartyStatusTypeInt32Optional. Optional PartyStatusTy.
HostIDInt32Optional. Optional HostID.
DistributorIDInt32Optional. Optional DistributorID.
StartDateDateTimeOptional. Optional StartDate.
CloseDateDateTimeOptional. Optional Close Date.
DescriptionStringOptional. Optional Description.
EventStartDateTimeOptional. Optional Event Start date.
EventEndDateTimeOptional. Optional Event End date.
LanguageIDInt32Optional. Optional Language ID.
InformationStringOptional. Optional Information.
AddressPartyAddressOptional Information.
BookingPartyIDInt32Optional. Optional BookingPartyID.
Field1StringOptional. Optional Field1.
Field2StringOptional. Optional Field2.
Field3StringOptional. Optional Field3.
Field4StringOptional. Optional Field4.
Field5StringOptional. Optional Field5.

Output Properties

UpdatePartyResponse
PropertyData TypeNotes

SOAP Request

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /3.0/ExigoApi.asmx HTTP/1.1
Host: api.exigo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.exigo.com/UpdateParty"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ApiAuthentication xmlns="http://api.exigo.com/"> <LoginName>string</LoginName> <Password>string</Password> <Company>string</Company> <Identity>string</Identity> <RequestTimeUtc>dateTime</RequestTimeUtc> <Signature>string</Signature> </ApiAuthentication> </soap:Header> <soap:Body> <UpdatePartyRequest xmlns="http://api.exigo.com/"> <PartyID>int</PartyID> <PartyType>int</PartyType> <PartyStatusType>int</PartyStatusType> <HostID>int</HostID> <DistributorID>int</DistributorID> <StartDate>dateTime</StartDate> <CloseDate>dateTime</CloseDate> <Description>string</Description> <EventStart>dateTime</EventStart> <EventEnd>dateTime</EventEnd> <LanguageID>int</LanguageID> <Information>string</Information> <Address> <Address1>string</Address1> <Address2>string</Address2> <City>string</City> <State>string</State> <Zip>string</Zip> <Country>string</Country> </Address> <BookingPartyID>int</BookingPartyID> <Field1>string</Field1> <Field2>string</Field2> <Field3>string</Field3> <Field4>string</Field4> <Field5>string</Field5> </UpdatePartyRequest> </soap:Body> </soap:Envelope>

SOAP Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <UpdatePartyResult xmlns="http://api.exigo.com/" /> </soap:Body> </soap:Envelope>

C#

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.LoginName = "yourLoginName";

    auth.Password = "yourPassword";

    auth.Company = "yourCompany";

    api.ApiAuthenticationValue = auth;

 

    //Create Request

    UpdatePartyRequest req = new UpdatePartyRequest();

 

    req.PartyID = 1;

    req.PartyType = 1;              //Optional PartyTy

    req.PartyStatusType = 1;        //Optional PartyStatusTy

    req.HostID = 1;                 //Optional HostID

    req.DistributorID = 1;          //Optional DistributorID

    req.StartDate = DateTime.Today;              //Optional StartDate

    req.CloseDate = DateTime.Today;              //Optional Close Date

    req.Description = "1";          //Optional Description

    req.EventStart = DateTime.Today;             //Optional Event Start date

    req.EventEnd = DateTime.Today;               //Optional Event End date

    req.LanguageID = 1;             //Optional Language ID

    req.Information = "1";          //Optional Information

    req.BookingPartyID = 1;         //Optional BookingPartyID

    req.Field1 = "1";               //Optional Field1

    req.Field2 = "1";               //Optional Field2

    req.Field3 = "1";               //Optional Field3

    req.Field4 = "1";               //Optional Field4

    req.Field5 = "1";               //Optional Field5

 

    //Send Request to Server and Get Response

    UpdatePartyResponse res = api.UpdateParty(req);

 

    //Now examine the results:

}

catch (Exception ex)

{

    Console.WriteLine("Error: " + ex.Message);

}

VB.Net

Try

    'Create Main API Context Object

    Dim api as new ExigoApi()

 

    'Create Authentication Header

    Dim auth as new ApiAuthentication()

    auth.LoginName = "yourLoginName"

    auth.Password = "yourPassword"

    auth.Company = "yourCompany"

    api.ApiAuthenticationValue = auth

 

    'Create Request

    Dim req as new UpdatePartyRequest()

 

    req.PartyID = 1

    req.PartyType = 1

    req.PartyStatusType = 1

    req.HostID = 1

    req.DistributorID = 1

    req.StartDate = DateTime.Today

    req.CloseDate = DateTime.Today

    req.Description = "1"

    req.EventStart = DateTime.Today

    req.EventEnd = DateTime.Today

    req.LanguageID = 1

    req.Information = "1"

    req.BookingPartyID = 1

    req.Field1 = "1"

    req.Field2 = "1"

    req.Field3 = "1"

    req.Field4 = "1"

    req.Field5 = "1"

 

    'Send Request to Server and Get Response

    Dim res As UpdatePartyResponse = api.UpdateParty(req)

 

    'Now examine the results:

Catch ex As Exception

    Console.WriteLine("Error: " & ex.Message)

End Try

PHP

Note: PHP is not officially supported.

<?php

try

{

    //Setup the SoapClient and Authentication

    $api = new SoapClient("http://api.exigo.com/3.0/ExigoApi.asmx?WSDL");

    $ns = "http://api.exigo.com/";

    $auth = array()

    $auth["LoginName"] = new SoapVar("yourLoginName",XSD_STRING,null,null,null,$ns);

    $auth["Password"] = new SoapVar("yourPassword",XSD_STRING,null,null,null,$ns);

    $auth["Company"] = new SoapVar("yourCompany",XSD_STRING,null,null,null,$ns);

    $headerBody = new SoapVar($auth, SOAP_ENC_OBJECT);

    $header = new SoapHeader($ns, 'ApiAuthentication', $headerBody);

    $api->__setSoapHeaders(array($header));

 

    //Create Request

 

    $req->PartyID = 1;

    $req->PartyType = 1;

    $req->PartyStatusType = 1;

    $req->HostID = 1;

    $req->DistributorID = 1;

    $req->StartDate = 1;

    $req->CloseDate = 1;

    $req->Description = "1";

    $req->EventStart = 1;

    $req->EventEnd = 1;

    $req->LanguageID = 1;

    $req->Information = "1";

    $req->BookingPartyID = 1;

    $req->Field1 = "1";

    $req->Field2 = "1";

    $req->Field3 = "1";

    $req->Field4 = "1";

    $req->Field5 = "1";

 

    //Send Request to Server and Get Response

    $res = $api.UpdateParty($req);

 

    //Now examine the results:

}

catch (SoapFault $ex)

{

    echo "Error: ", $ex->getMessage();

}

?>

Java

Note: Java is not officially supported.

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.setLoginName("yourLoginName");

    auth.setPassword("yourPassword");

    auth.setCompany("yourCompany");

    api.setApiAuthenticationValue(auth);

 

    //Create Request

    UpdatePartyRequest req = new UpdatePartyRequest();

 

    req.setPartyID(1);

    req.setPartyType(1);

    req.setPartyStatusType(1);

    req.setHostID(1);

    req.setDistributorID(1);

    req.setStartDate(1);

    req.setCloseDate(1);

    req.setDescription("1");

    req.setEventStart(1);

    req.setEventEnd(1);

    req.setLanguageID(1);

    req.setInformation("1");

    req.setBookingPartyID(1);

    req.setField1("1");

    req.setField2("1");

    req.setField3("1");

    req.setField4("1");

    req.setField5("1");

 

    //Send Request to Server and Get Response

    UpdatePartyResponse res = api.getExigoApiSoap().updateParty(req, auth);

 

    //Now examine the results:

}

catch (Exception ex)

{

    System.out.println("Error: " + ex.getMessage());

}

CSV

This method does not support csv output.