KNearestService_V03_01


Click here for a complete list of operations.

GetKNearest

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
longitude:
latitude:
k:
table:
apiKey:
version:
shouldNotStore:

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 /Services/KNearest/WebService/KNearestWebService_V03_01.asmx HTTP/1.1
Host: prod.geoservices.tamu.edu
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://geoservices.tamu.edu/GetKNearest"

<?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>
    <GetKNearest xmlns="http://geoservices.tamu.edu/">
      <longitude>double</longitude>
      <latitude>double</latitude>
      <k>double</k>
      <table>string</table>
      <apiKey>string</apiKey>
      <version>double</version>
      <shouldNotStore>boolean</shouldNotStore>
    </GetKNearest>
  </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>
    <GetKNearestResponse xmlns="http://geoservices.tamu.edu/">
      <GetKNearestResult>
        <ResultDataTable>xmlxml</ResultDataTable>
        <QueryStatusCodes>-1 or 0 or 200 or 400 or 401 or 402 or 403 or 410 or 411 or 412 or 413 or 414 or 420 or 421 or 450 or 451 or 470 or 471 or 472 or 480 or 481 or 482 or 500 or 501 or 502</QueryStatusCodes>
        <QueryStatusCodeName>string</QueryStatusCodeName>
        <QueryStatusCodeValue>int</QueryStatusCodeValue>
        <Version>double</Version>
        <TimeTaken>double</TimeTaken>
        <TransactionId>string</TransactionId>
        <TransactionGuid>string</TransactionGuid>
        <ApiHost>string</ApiHost>
        <ClientHost>string</ClientHost>
        <ErrorMessage>string</ErrorMessage>
        <ExceptionOccurred>boolean</ExceptionOccurred>
        <Error>string</Error>
      </GetKNearestResult>
    </GetKNearestResponse>
  </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 /Services/KNearest/WebService/KNearestWebService_V03_01.asmx HTTP/1.1
Host: prod.geoservices.tamu.edu
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>
    <GetKNearest xmlns="http://geoservices.tamu.edu/">
      <longitude>double</longitude>
      <latitude>double</latitude>
      <k>double</k>
      <table>string</table>
      <apiKey>string</apiKey>
      <version>double</version>
      <shouldNotStore>boolean</shouldNotStore>
    </GetKNearest>
  </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>
    <GetKNearestResponse xmlns="http://geoservices.tamu.edu/">
      <GetKNearestResult>
        <ResultDataTable>xmlxml</ResultDataTable>
        <QueryStatusCodes>-1 or 0 or 200 or 400 or 401 or 402 or 403 or 410 or 411 or 412 or 413 or 414 or 420 or 421 or 450 or 451 or 470 or 471 or 472 or 480 or 481 or 482 or 500 or 501 or 502</QueryStatusCodes>
        <QueryStatusCodeName>string</QueryStatusCodeName>
        <QueryStatusCodeValue>int</QueryStatusCodeValue>
        <Version>double</Version>
        <TimeTaken>double</TimeTaken>
        <TransactionId>string</TransactionId>
        <TransactionGuid>string</TransactionGuid>
        <ApiHost>string</ApiHost>
        <ClientHost>string</ClientHost>
        <ErrorMessage>string</ErrorMessage>
        <ExceptionOccurred>boolean</ExceptionOccurred>
        <Error>string</Error>
      </GetKNearestResult>
    </GetKNearestResponse>
  </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 /Services/KNearest/WebService/KNearestWebService_V03_01.asmx/GetKNearest?longitude=string&latitude=string&k=string&table=string&apiKey=string&version=string&shouldNotStore=string HTTP/1.1
Host: prod.geoservices.tamu.edu
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<WebServiceKNearestResult xmlns="http://geoservices.tamu.edu/">
  <ResultDataTable>xmlxml</ResultDataTable>
  <QueryStatusCodes>-1 or 0 or 200 or 400 or 401 or 402 or 403 or 410 or 411 or 412 or 413 or 414 or 420 or 421 or 450 or 451 or 470 or 471 or 472 or 480 or 481 or 482 or 500 or 501 or 502</QueryStatusCodes>
  <QueryStatusCodeName>string</QueryStatusCodeName>
  <QueryStatusCodeValue>int</QueryStatusCodeValue>
  <Version>double</Version>
  <TimeTaken>double</TimeTaken>
  <TransactionId>string</TransactionId>
  <TransactionGuid>string</TransactionGuid>
  <ApiHost>string</ApiHost>
  <ClientHost>string</ClientHost>
  <ErrorMessage>string</ErrorMessage>
  <ExceptionOccurred>boolean</ExceptionOccurred>
  <Error>string</Error>
</WebServiceKNearestResult>

HTTP POST

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

POST /Services/KNearest/WebService/KNearestWebService_V03_01.asmx/GetKNearest HTTP/1.1
Host: prod.geoservices.tamu.edu
Content-Type: application/x-www-form-urlencoded
Content-Length: length

longitude=string&latitude=string&k=string&table=string&apiKey=string&version=string&shouldNotStore=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<WebServiceKNearestResult xmlns="http://geoservices.tamu.edu/">
  <ResultDataTable>xmlxml</ResultDataTable>
  <QueryStatusCodes>-1 or 0 or 200 or 400 or 401 or 402 or 403 or 410 or 411 or 412 or 413 or 414 or 420 or 421 or 450 or 451 or 470 or 471 or 472 or 480 or 481 or 482 or 500 or 501 or 502</QueryStatusCodes>
  <QueryStatusCodeName>string</QueryStatusCodeName>
  <QueryStatusCodeValue>int</QueryStatusCodeValue>
  <Version>double</Version>
  <TimeTaken>double</TimeTaken>
  <TransactionId>string</TransactionId>
  <TransactionGuid>string</TransactionGuid>
  <ApiHost>string</ApiHost>
  <ClientHost>string</ClientHost>
  <ErrorMessage>string</ErrorMessage>
  <ExceptionOccurred>boolean</ExceptionOccurred>
  <Error>string</Error>
</WebServiceKNearestResult>