Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

UpdateContactPointAddress( username, contactPointAddressID, address1, address2, cityName, stateName, countryName, zipcode ) : void 

Since: EngageIP v25.2

Updates the address for a contact. Throws an exception if the user, contact point, country, state or city does not exist.

Parameters:

  • username (String) - The username the contact is linked to.  An exception will be thrown if the username does not exist.

  • contactPointAddressID (Integer) - Reference to the unique ID referencing the address, see GetContactPointAddress

  • address1 (String) - The first line of the street address

  • address2 (String) - The second line of the street address, use an empty sting if not necessary

  • cityName (String) - The name of the city. An exception will be thrown if the address format for the country requires a predefined city and the supplied city does not exist

  • stateName (String) - the name of the state/province. An exception will be thrown if the address format for the country requires a predefined state and the supplied state does not exist

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

  • zipcode (String) - the postal or zip code for the address.

Possible Exceptions:

  • INVALID USERNAME

  • INVALID CITY NAME

  • INVALID STATE NAME

  • INVALID COUNTRY NAME


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: localhost
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>
    <UpdateContactPointAddress xmlns="Logisense_EngageIP">
      <username>string</username>
      <contactPointAddressID>int</contactPointAddressID>
      <address1>string</address1>
      <address2>string</address2>
      <cityName>string</cityName>
      <stateName>string</stateName>
      <countryName>string</countryName>
      <zipcode>string</zipcode>
    </UpdateContactPointAddress>
  </soap12:Body>
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>
    <UpdateContactPointAddressResponse xmlns="Logisense_EngageIP" />
  </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: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Logisense_EngageIP/UpdateContactPointAddress"

<?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>
    <UpdateContactPointAddress xmlns="Logisense_EngageIP">
      <username>string</username>
      <contactPointAddressID>int</contactPointAddressID>
      <address1>string</address1>
      <address2>string</address2>
      <cityName>string</cityName>
      <stateName>string</stateName>
      <countryName>string</countryName>
      <zipcode>string</zipcode>
    </UpdateContactPointAddress>
  </soap:Body>
</soap:Envelope>
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>
    <UpdateContactPointAddressResponse xmlns="Logisense_EngageIP" />
  </soap:Body>
</soap:Envelope>
  • No labels