PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves a header in the SOAP message received further to a call to a Webservice.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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 the 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 (with or without quotes)
Name of the Webservice whose header must be retrieved
<Header>: Character string (with quotes)
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 several times in order to retrieve several headers.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230xml.dll
Windows Mobile wp230xml.dll
Linux wd230xml.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment