928 new features of WINDEV 28, WEBDEV 28 and WINDEV Mobile 28
assigns an empty object to the variable • Reset YAML variables: the MyYamlVariable = {} syntax assigns an empty object to the variable • Prefix syntax is now available for: - connecting to the analysis - properties of WLanguage types, for example: Start- Date, Date, ToString • StringToNum : binary format supported. Benefit of this new feature in version 28: Useful improvements WEBSERVICES 148 N e w f e a t u r e W D W B WM RUNTIME LOG SOAP and REST webservices created with WINDEV can generate execution logs on demand with the dbgEnableLog function. These logs can be viewed later in the environment using the new Real-Time Performance Profiler. (see new feature 110) Benefit of this new feature in version 28: Runtime analysis 149 N e w f e a t u r e W D W B WM 64-BIT TEST MODE You can test web services (via the GO icon) in 32 or 64-bit mode. Benefit of this new feature in version 28: Test in production 150 N e w f e a t u r e W D W B WM REST WEB SERVICE: NATIVELY CALL REST APIS IN WLANGUAGE (OPENAPI DOCUMENTATION) You can document REST web service APIs using an OpenAPl file. This documentation file can be imported into the project: the code editor recognizes the APIs described in the file. These APIs will be called "natively". Named, optional and mandatory parameters are supported. The response is returned in an httpResponse type that contains the return code and the body of the response. You can handle particular cases with the httpRequest type. Sample code for the Swagger Petstore web service: Dog is Pet Dog . id = 745513 Dog . name = "Noopy" // Add animal ' Swagger Petstore - OpenAPI 3.0 '. addPet ( Dog ) Benefit of this new feature in version 28: Calling APIs is easier than ever 151 N e w f e a t u r e W D W B WM SOAP: ADDITIONAL VERIFICATIONS WHEN GENERATING THE WEB SERVICE • Web services can return classes. In this case, the devel- oper must check the "Export class" option in the web service generation wizard. If this option is left unchecked, the wizard highlights the error. • If the type of the return value of a web service proce- dure is not specified, the compiler tries to determine this type. If the compiler cannot determine the type, the new "Strict mode" generates an error to encourage the devel- oper to specify the type of this value. Benefit of this new feature in version 28: Rigorous coding, more security 152 N e w f e a t u r e W D W B WM MISCELLANEOUS • When using SOAP web services, you can directly handle the array of structures returned by the web service proce- dure: no need to copy the arrays! • HTTP Get requests can send data (contain a payload) Benefit of this new feature in version 28: Simpler code XML 153 N e w f e a t u r e W D W B WM XML IMPORT: COMPILATION ERROR IF INVALID SYNTAX The code editor allows you to import XML files and use them natively in WLanguage. When importing an XML file into a project, a compilation error appears if the file format is not correct: missing closing tag,(See new feature 134). Benefit of this new feature in version 28: Precision N ew f e a t u r e s i n W I ND E V 2 8 WE BD E V 2 8 W I ND E V Mo b i l e 2 8 32
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==