CallWebService Script Examples: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
(403051)
 
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page contains script examples for the [[Supported_QPR_ProcessAnalyzer_Commands_in_Scripts#--.23CallWebService|CallWebService]] script command.
This page contains script examples for the [[SQL Scripting Commands#--.23CallWebService|CallWebService]] script command.


<pre>
<pre>
(SELECT 'Method', 'GET') UNION ALL
(SELECT 'Method', 'GET') UNION ALL
(SELECT 'Address', 'http://google.com') UNION ALL
(SELECT 'Address', 'https://google.com') UNION ALL
(SELECT 'ContentType', 'application/json') UNION ALL
(SELECT 'Content-Type', 'application/json') UNION ALL
(SELECT 'Accept', '*/*')
(SELECT 'Accept', '*/*')
--#CallWebService
--#CallWebService
Line 29: Line 29:
</nowiki>
</nowiki>
</pre>
</pre>


[[Category:Examples]]
[[Category:Examples]]

Latest revision as of 10:48, 21 February 2022

This page contains script examples for the CallWebService script command.

(SELECT 'Method', 'GET') UNION ALL
(SELECT 'Address', 'https://google.com') UNION ALL
(SELECT 'Content-Type', 'application/json') UNION ALL
(SELECT 'Accept', '*/*')
--#CallWebService
PRINT SUBSTRING(@_ResponseText, 1, 50);

When the script is run, entries similar to the following will be shown in the script log:

Execution duration: 0,753 seconds
Execution Log:
2015-09-14T13:59:49.2838661+03:00 	Notification 	85 	Script operation: "--#CallWebService" started
2015-09-14T13:59:49.3468813+03:00 	Notification 	85 	Address: http://google.com
Method: GET
ContentType: application/json
Encoding: Unicode (UTF-8)
Body content length: 0
Timeout: 60000
ExecuteInClientSide: 0
Additional headers: Accept(3)
2015-09-14T13:59:49.6579900+03:00 	Notification 	85 	Script operation: "--#CallWebService" completed: Result: OK, text length: 53019, status code: 200

2015-09-14T13:59:49.7230130+03:00 	Notification 	85 	<!doctype html><html itemscope="" itemtype="http:/