GlobalUID


Click here for a complete list of operations.

lGetUniqueIDRange

This function licenses a range of Unique IDs for a given object (e.g. Responses). The return value is the first licensed unqiue ID. The caller is free to use that ID and the next (lNumberOfIDsRequested - 1) number of IDs. A return value of -1 indicates that no record existed for the specified object. A return value of -2 indicates that the client has requested too many IDs - the maximum number of IDs that may be requested at once is 1000. A return value of -3 indicates that a zero or negative number of IDs were requested.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
sObjectName:
lNumberOfIDsRequested:

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 /globalUID.asmx HTTP/1.1
Host: globaluid-qa.qmetric.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://amIHealthy.com/GlobalUniqueIDService/lGetUniqueIDRange"

<?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>
    <lGetUniqueIDRange xmlns="http://amIHealthy.com/GlobalUniqueIDService/">
      <sObjectName>string</sObjectName>
      <lNumberOfIDsRequested>int</lNumberOfIDsRequested>
    </lGetUniqueIDRange>
  </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>
    <lGetUniqueIDRangeResponse xmlns="http://amIHealthy.com/GlobalUniqueIDService/">
      <lGetUniqueIDRangeResult>int</lGetUniqueIDRangeResult>
    </lGetUniqueIDRangeResponse>
  </soap:Body>
</soap:Envelope>

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 /globalUID.asmx HTTP/1.1
Host: globaluid-qa.qmetric.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:Body>
    <lGetUniqueIDRange xmlns="http://amIHealthy.com/GlobalUniqueIDService/">
      <sObjectName>string</sObjectName>
      <lNumberOfIDsRequested>int</lNumberOfIDsRequested>
    </lGetUniqueIDRange>
  </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>
    <lGetUniqueIDRangeResponse xmlns="http://amIHealthy.com/GlobalUniqueIDService/">
      <lGetUniqueIDRangeResult>int</lGetUniqueIDRangeResult>
    </lGetUniqueIDRangeResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /globalUID.asmx/lGetUniqueIDRange?sObjectName=string&lNumberOfIDsRequested=string HTTP/1.1
Host: globaluid-qa.qmetric.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://amIHealthy.com/GlobalUniqueIDService/">int</int>

HTTP POST

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

POST /globalUID.asmx/lGetUniqueIDRange HTTP/1.1
Host: globaluid-qa.qmetric.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

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

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://amIHealthy.com/GlobalUniqueIDService/">int</int>