ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SOAP
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
Retrieves a header in the SOAP message received further to a call to a Webservice.
Example
// Call the function for sending SMSs of the WSSMS Webservice (fictitious)
WebServiceSendSMS("0601020304", "ALERT", ...
"Caution: the database server does not respond anymore.")
 
// Retrieve the number of remaining credits
// This number is returned by the WSSMS Webservice in the headers of the SOAP requests
RemainingCredit is int
RemainingCredit = SOAPGetHeader(WSSMS, "NumberCredits")
IF RemainingCredit < 50 THEN
WarnEndCredit()
END
Syntax
<Result> = SOAPGetHeader(<Webservice> , <Header>)
<Result>: Variable whose type depends on the header
Value of retrieved header. If the requested header does not exist, the ErrorOccurred variable is set to True.
The type of the returned value depends on the requested header. This type is specified in the documentation of the Webservice.
<Webservice>: Character string
Name of the Webservice to use.
<Header>: Character string
Name of the header to retrieve.
Remarks
SOAPGetHeader must be called:
  • after running a function of the Webservice,
  • before any other call to a function of the Webservice or to SOAPRun or SOAPRunXML.
SOAPGetHeader can be called multiple times to retrieve multiple headers.
Business / UI classification: Business Logic
Component: wd300xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help