WsEncodeParameter

Set a parameter to a specific encoding as required by the web service endpoint.

Syntax

bool WsEncodeParameter (string name, string encoding)

Parameters

name
The name of the parameter to be encoded.
encoding
The type of encoding to apply. URI or DATA types are supported.

Returns:

Always True.

Level

All levels.

Details

Call this action if you need to encode a parameter value for a call to any web service.

Example

        WsSetParameter("CountryName", "United States", false)
        
        WsSetParameter("CityName", "Newark", false)
        
        WsEncodeParameter("CountryName", "data")
        
        WsGetvalues("http://www.webservicex.net/globalweather.asmx/GetWeather?", "", "", "", "@B.htmltext", "")