PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of wsRequest variables
  • Functions that are using the wsRequest variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
wsRequest (Type of variable)
In french: wsRequête
The wsRequest type is used to define the advanced characteristics of a Webservice. This type of variable is mainly used to define the HTTP headers used by a Webservice. EBay and SharePoint Webservices require this type of HTTP headers.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
C is wsRequest
C.HTTPHeader["key"] = "Value"
// Call the Webservice procedure
// while passing the header and the expected parameters
WebServiceProc(C, param1_WS, param2_WS)
// Displays the request sent
Trace(C.XMLSource)
Remarks

Properties specific to the description of wsRequest variables

The following properties can be used to handle a wsRequest variable:
Property nameType usedEffect
ClientCertificateString or bufferCorresponds to:
  • a character string with an access path to the .p12 file that contains the certificate to attach to the request. The certificate will be automatically loaded taking into account:
    • the certificate in the executable library (if it has been integrated into the application),
    • the certificate at the specified location on disk (if the certificate has not been integrated into the executable library).
  • a buffer with the certificate (fLoadBuffer).
If this property corresponds to an empty string (""), the default certificate is reset to "<None>".
ClientCertificatePasswordCharacter stringPassword associated with the client certificate (empty string by default)
HTTPHeaderAssociative array of Unicode stringsHTTP headers.
TimeoutInteger ou DurationMaximum response timeout (in milliseconds). This property can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 20 s or 20000 ms).
This property is set to 20 seconds by default.
XMLSourceBinary/BufferXML source sent to the server.
This property is read-only.

Functions that are using the wsRequest variables

SOAPAddSAMLAssertionAdds a SAML assertion to a Webservice request.
SOAPAddXMLSignatureAdds an XML signature to a Webservice request.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment