GeoSearchService
Click here for a complete list of operations.
GetCityRequestStatus
Возвращает состояние запроса на добавленние города
- int requestId - номер запроса
- string guid - GUID пользователя
- string pass - пароль пользователя
- возвращает XML в следующем формате:
<add_city_request>
<requestid>номер запроса</requestid>
<status>[0 - необработан, 1 - обработан, 2 - уже есть в базе, 3 - не найден]</status>
<req_city_name>название города запрашиваемое</req_city_name>
<req_region_name>регион</req_region_name>
<req_country_name>страна</req_country_name>
<req_region_id>идентификатор региона</req_region_id>
<req_country_id>идентификатор страны</req_country_id>
<add_info>дополнительная информация</add_info>
<city_id>идентификатор добавленного города</city_id>
<region_id>идентификатор региона, для добавленного города</region_id>
<city_name>название добавленного города</city_name>
<date_request>дата запроса</date_request>
<date_add>дата добавления</date_add>
<request_by>wmid инициатора запроса</request_by>
<registred_by>wmid администратора БД</registred_by>
<lat>северная широта</lat>
<lon>восточная долгота</lon>
</add_city_request>
Test
The test form is only available for requests from the local machine.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 /find/GeoSearchService.asmx HTTP/1.1 Host: geo.webmoney.ru Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://geo.webmoney.ru/geosearch/GetCityRequestStatus" <?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> <GetCityRequestStatus xmlns="http://geo.webmoney.ru/geosearch/"> <requestId>int</requestId> <guid>string</guid> <pass>string</pass> </GetCityRequestStatus> </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> <GetCityRequestStatusResponse xmlns="http://geo.webmoney.ru/geosearch/"> <GetCityRequestStatusResult>string</GetCityRequestStatusResult> </GetCityRequestStatusResponse> </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 /find/GeoSearchService.asmx HTTP/1.1 Host: geo.webmoney.ru 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> <GetCityRequestStatus xmlns="http://geo.webmoney.ru/geosearch/"> <requestId>int</requestId> <guid>string</guid> <pass>string</pass> </GetCityRequestStatus> </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> <GetCityRequestStatusResponse xmlns="http://geo.webmoney.ru/geosearch/"> <GetCityRequestStatusResult>string</GetCityRequestStatusResult> </GetCityRequestStatusResponse> </soap12:Body> </soap12:Envelope>