SOAP API - CreateContactPointAddress

CreateContactPointAddress( username, contactID, address1, address2, cityName, stateName, countryName, zipcode ) : Integer

Since: EngageIP v25.2

Creates a new address contact point for a contact belonging to a specified user and returns the ID on the new contact point

This method will throw an exception if the user does not have a contact of the specified ID, or if the country, state or city does not exist

Parameters:

  • username (String) - The name of the user in which to add a new address contact point.  An exception will be thrown if the username does not exist.

  • contactID (Integer)  - The ID of the contact for whom this contact information will be added.  An exception will be thrown if the contact ID does not exist.

  • address1 (String) - First line of the address

  • address2 (String) - Second line of the address

  • cityName (String) - City information.  An exception will be thrown if the city name does not exist.

  • stateName (String) - State information.  An exception will be thrown if the state name does not exist

  • countryName (String) - Country information.  An exception will be thrown if the country name does not exist.

  • zipcode (String) - Zipcode/postal code information for the address.


Returns:

The new contact point ID

Possible Exceptions:

  • INVALID USERNAME

  • INVALID CONTACT ID

  • INVALID COUNTRY

  • INVALID CITY

  • INVALID STATE


SOAP 1.2

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

POST /adminportal/webservice.asmx HTTP/1.1 Host: demo.logisense.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthHeader xmlns="Logisense_EngageIP"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <CreateContactPointAddress xmlns="Logisense_EngageIP"> <username>string</username> <contactID>int</contactID> <address1>string</address1> <address2>string</address2> <cityName>string</cityName> <stateName>string</stateName> <countryName>string</countryName> <zipcode>string</zipcode> </CreateContactPointAddress> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <CreateContactPointAddressResponse xmlns="Logisense_EngageIP"> <CreateContactPointAddressResult>int</CreateContactPointAddressResult> </CreateContactPointAddressResponse> </soap12:Body> </soap12:Envelope>



SOAP 1.1

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

POST /adminportal/webservice.asmx HTTP/1.1 Host: demo.logisense.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "Logisense_EngageIP/CreateContactPointAddress" <?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> <AuthHeader xmlns="Logisense_EngageIP"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <CreateContactPointAddress xmlns="Logisense_EngageIP"> <username>string</username> <contactID>int</contactID> <address1>string</address1> <address2>string</address2> <cityName>string</cityName> <stateName>string</stateName> <countryName>string</countryName> <zipcode>string</zipcode> </CreateContactPointAddress> </soap:Body> </soap:Envelope>