ArcObjects Library Reference (Carto)  

IWMSServer.GetToPost Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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) 

Remarks

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.

See Also

IWMSServer Interface