KNearestService_V04_01
Click here for a complete list of operations.
GetKNearestWithSoruceTracking
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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/v04_01/SOAP/api.asmx HTTP/1.1 Host: prod.geoservices.tamu.edu Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://geoservices.tamu.edu/GetKNearestWithSoruceTracking" <?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> <GetKNearestWithSoruceTracking xmlns="http://geoservices.tamu.edu/"> <longitude>double</longitude> <latitude>double</latitude> <k>double</k> <table>string</table> <requestIPAddress>string</requestIPAddress> <apiKey>string</apiKey> <version>double</version> <shouldNotStore>boolean</shouldNotStore> <source>string</source> <queryMedium>SoapApi or HttpApi or KmlApi or HtmlForm or BatchProcess</queryMedium> <processGuid>string</processGuid> </GetKNearestWithSoruceTracking> </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> <GetKNearestWithSoruceTrackingResponse xmlns="http://geoservices.tamu.edu/"> <GetKNearestWithSoruceTrackingResult> <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> </GetKNearestWithSoruceTrackingResult> </GetKNearestWithSoruceTrackingResponse> </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/v04_01/SOAP/api.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> <GetKNearestWithSoruceTracking xmlns="http://geoservices.tamu.edu/"> <longitude>double</longitude> <latitude>double</latitude> <k>double</k> <table>string</table> <requestIPAddress>string</requestIPAddress> <apiKey>string</apiKey> <version>double</version> <shouldNotStore>boolean</shouldNotStore> <source>string</source> <queryMedium>SoapApi or HttpApi or KmlApi or HtmlForm or BatchProcess</queryMedium> <processGuid>string</processGuid> </GetKNearestWithSoruceTracking> </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> <GetKNearestWithSoruceTrackingResponse xmlns="http://geoservices.tamu.edu/"> <GetKNearestWithSoruceTrackingResult> <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> </GetKNearestWithSoruceTrackingResult> </GetKNearestWithSoruceTrackingResponse> </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/v04_01/SOAP/api.asmx/GetKNearestWithSoruceTracking?longitude=string&latitude=string&k=string&table=string&requestIPAddress=string&apiKey=string&version=string&shouldNotStore=string&source=string&queryMedium=string&processGuid=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/v04_01/SOAP/api.asmx/GetKNearestWithSoruceTracking 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&requestIPAddress=string&apiKey=string&version=string&shouldNotStore=string&source=string&queryMedium=string&processGuid=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>