PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Procedure Execution
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
Adds a header to the next procedure that will be run on the server. This header contains an additional parameter. This parameter is used to check a specific information on the server (type of security for example).
Note: This procedure will be run by J2EERun or J2EERunXML.
Example
// Add a header to the next J2EE procedure run
// This header is used to check the security level
// used by the server
// If the maximum security level is not used, the next
// J2EE procedure will not be run
J2EEAddHeader("Security", "MaxSecurity", "Security-Level", True)
Syntax
J2EEAddHeader(<Parameter Name> , <Parameter Value> , <Parameter Namespace> [, <Procedure Execution>])
<Parameter Name>: Character string (with quotes)
Name of additional parameter. This additional parameter is used to check an information specific to the server. This parameter is supplied in the documentation of server of J2EE XML Web services.
The name of the parameter is case sensitive.
<Parameter Value>: Any type
Value of additional parameter. The possible values are supplied in the documentation of the server of J2EE XML Web services
<Parameter Namespace>: Character string (with quotes)
Namespace of parameter. This parameter is supplied in the documentation of server of J2EE XML Web services
<Procedure Execution>: Optional boolean
  • True: the procedure must not be run if the header cannot be processed by the server (mandatory header).
  • False: the header is ignored by the execution of the procedure (optional header).
Remarks

Procedure Execution

You have the ability to run (or not) the next procedure by adding a header. To do so, <Procedure Execution> must be initialized to True.
If <Procedure Execution> is initialized to True:
  • J2EERun (or J2EERunXML) returns True if the link with the server has been established, False otherwise.
  • If the connection with the server was established and if the server fulfills the conditions requested by the header, the procedure is run.
  • If the procedure was run, J2EEGetResult returns:
    • the result of the procedure if the procedure was successfully run,
    • an empty string ("") if the procedure failed.
  • If the procedure failed or if it was not run, J2EEError returns:
    • the "MustUnderstand" error code if the server does not fulfill the conditions requested by the header,
    • an error in the other cases.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment