ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / SOAP
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves a header in the SOAP message received further to a call to a web service.
Example
// Appel de la fonction d'envoi de SMS du Webservice (fictif) WSSMS 
WebServiceEnvoiSMS("0601020304", "ALERTE", ...
	"Attention : le serveur de base de données ne répond plus.")

// Récupération du nombre de crédits restants
// Ce nombre est retourné par le Webservice WSSMS dans les entêtes des requêtes SOAP
CréditRestant is int 
CréditRestant = SOAPGetHeader(WSSMS, "NombreCredit")
IF CréditRestant < 50 THEN
	SignalerFinCredit()
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 web service.
<Webservice>: Character string
Name of the web service to use.
<Header>: Character string
Name of the header to retrieve.
Remarks
SOAPGetHeader must be called:
  • after running a function of the web service,
  • before any other call to a function of the web service 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: 03/28/2025

Send a report | Local help