This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IW > IWMSServer Interface > IWMSServer.GetToPost Method (ArcObjects .NET 10.5 SDK) |
Handle translation from Get to Post.
[Visual Basic .NET] Public Function GetToPost ( _ ByVal sGet As String _ ) As String
[C#] public string GetToPost ( string sGet );
[C++]
HRESULT GetToPost(
BSTR sGet,
BSTR* pPost
);
[C++]
Parameters sGet [in] sGet is a parameter of type BSTR pPost [out, retval] pPost is a parameter of type BSTR
Convert a WMS request string (query string used in WMS HTTP GET request mode) to an WMS request XML (XML used in WMS HTTP POST request mode)
According to OGC WMS Implementation Specification, A WMS Server should be able to accept WMS request in both HTTP GET (requests are WMS URL appended by key-value pairs) mode and HTTP Post mode (requests are XML whose DTD or shchema are defined in WMS Specification). To simplify the logic of WMS Server Object Extension, all WMS requests will be converted to XML before they reach the server object, so method GetToPost() is used whenever a WMS request in HTTP GET mode is received.