SOAP API - GetCountryID

GetCountryID( username, countryName ) : Integer

Since: EngageIP v25.2

Returns the ID of the country specified by countryName that belong to the user specified, or throws exception if the country does not exist.

Parameters:

  • username (String) - The username for which this country belongs. An exception will be thrown if the username does not exist.

  • countryName (String) - The name of the country for which the ID is to be retrieved. An exception will be thrown if the country does not exist.

Returns:

An integer representing the ID for the specified country name

Possible Exceptions:

  • INVALID USERNAME

  • 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: 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> <GetCountryID xmlns="Logisense_EngageIP"> <username>string</username> <countryName>string</countryName> </GetCountryID> </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> <GetCountryIDResponse xmlns="Logisense_EngageIP"> <GetCountryIDResult>int</GetCountryIDResult> </GetCountryIDResponse> </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.

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> <GetCountryIDResponse xmlns="Logisense_EngageIP"> <GetCountryIDResult>int</GetCountryIDResult> </GetCountryIDResponse> </soap12:Body> </soap12:Envelope>