Skip to content

Commit

Permalink
HPCC-30976 Document PERSIST option on a SOAPCALL
Browse files Browse the repository at this point in the history
Signed-off-by: Jim DeFabia <[email protected]>
  • Loading branch information
Jim DeFabia committed Dec 6, 2023
1 parent a3306dd commit 4d0e1d8
Showing 1 changed file with 39 additions and 15 deletions.
54 changes: 39 additions & 15 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/BltInFunc-SOAPCALL.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@
<primary>SOAPCALL</primary>
</indexterm></title>

<para><emphasis>result</emphasis><emphasis role="bold"> :=
SOAPCALL<indexterm>
<primary>SOAPCALL Function</primary>
</indexterm>( [ </emphasis><emphasis>recset, </emphasis><emphasis
role="bold">]</emphasis><emphasis> url, service, instructure,
</emphasis><emphasis role="bold">[ </emphasis><emphasis>transform,
</emphasis><emphasis role="bold">]</emphasis><emphasis role="bold">
DATASET<indexterm>
<primary>DATASET</primary>
</indexterm>(</emphasis><emphasis>outstructure</emphasis><emphasis
role="bold">) </emphasis><emphasis>| outstructure </emphasis><emphasis
role="bold">[</emphasis><emphasis>, options </emphasis><emphasis
role="bold">]</emphasis> <emphasis role="bold">[, UNORDERED |
<para><emphasis>result</emphasis><emphasis role="bold"> </emphasis><emphasis
role="bold"> := SOAPCALL( [ </emphasis><emphasis>recset,
</emphasis><emphasis role="bold">]</emphasis><emphasis> url, service,
instructure, </emphasis><emphasis role="bold">[
</emphasis><emphasis>transform, </emphasis><emphasis role="bold">]
DATASET(</emphasis><emphasis>outstructure</emphasis><emphasis role="bold">)
</emphasis><emphasis>| outstrucuture </emphasis><emphasis
role="bold">[</emphasis>,options <emphasis role="bold">[, UNORDERED |
ORDERED(</emphasis> <emphasis>bool </emphasis><emphasis role="bold">) ] [,
STABLE | UNSTABLE ] [, PARALLEL [ (</emphasis> <emphasis>numthreads
</emphasis><emphasis role="bold">) ] ] [, ALGORITHM(</emphasis>
<emphasis>name </emphasis><emphasis role="bold">) ] );</emphasis></para>
<emphasis>name</emphasis><emphasis role="bold"> )] [, PERSIST [ (
</emphasis><emphasis>option</emphasis> <emphasis role="bold">) ] ] ) ;
<indexterm>
<primary>PERSIST</primary>
</indexterm><indexterm>
<primary>SOAPCALL Function</primary>
</indexterm><indexterm>
<primary>DATASET</primary>
</indexterm></emphasis></para>

<para><emphasis role="bold">SOAPCALL( [ </emphasis><emphasis>recset,
</emphasis><emphasis role="bold">]</emphasis><emphasis> url, service,
Expand All @@ -34,7 +37,9 @@
ORDERED(</emphasis> <emphasis>bool </emphasis><emphasis role="bold">) ] [,
STABLE | UNSTABLE ] [, PARALLEL [ (</emphasis> <emphasis>numthreads
</emphasis><emphasis role="bold">) ] ] [, ALGORITHM(</emphasis>
<emphasis>name </emphasis><emphasis role="bold">) ] );</emphasis></para>
<emphasis>name</emphasis><emphasis role="bold"> )] [, PERSIST [ (
</emphasis><emphasis>option</emphasis> <emphasis role="bold">) ] ] ) ;
</emphasis></para>

<para><informaltable colsep="1" frame="all" rowsep="1">
<tgroup cols="2">
Expand Down Expand Up @@ -202,6 +207,22 @@
UNSTABLE options.</entry>
</row>

<row>
<entry><emphasis role="bold">PERSIST</emphasis></entry>

<entry>Optional. Use persistent connections. </entry>
</row>

<row>
<entry><emphasis>option</emphasis></entry>

<entry>Optional. If omitted, it uses the default number of
connections. If TRUE, it enables persistent connections. If FALSE
or 0, it disables persistent connections. If set to an integer, it
enables persistent connections and sets the number of active
connections. </entry>
</row>

<row>
<entry>Return:</entry>

Expand Down Expand Up @@ -509,6 +530,9 @@ DATASET(outRecord), ONFAIL(genDefault1())));
OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(genDefault2(LEFT))));
OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP)));

OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP),PERSIST(12)));
//use 12 persistent connections

//Using HTTPHEADER to pass Authorization info
OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP),
HTTPHEADER('Authorization','Basic dXNlcm5hbWU6cGFzc3dvcmQ='),
Expand Down

0 comments on commit 4d0e1d8

Please sign in to comment.