I have a tune table that stores SOAP requests. Some parts of the query are constant, some parts are variable. To get the values of the variables, i need to perform another select whose text is stored in a separate table column.
How to collect SOAP request text with get result of select variables?
Please, look at the picture.
I'm expect an example of pg function, which collect SOAP request text from my table.
You can use dynamic SQL to evaluate your queries in
high_valand assemble a complete body: demoIt initially builds the request body with
%splaceholders wherever a "variable" needs to go:<read:ready_date>%s
</read:ready_date>
<read:property_name="EXTRACT_GUID" value=">%s
"/></soapenv:Body>
Then runs your queries and collects their results in an array, that is then fed as a variadic argument array
<read:ready_date>2023-09-27T17:51:32
</read:ready_date>
<read:property_name="EXTRACT_GUID" value=">9F7F8FEC9608B02A5946DBABCE2557F2
"/></soapenv:Body>