<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged soap_request</title>
<link>https://overflow.efficy.io/?qa=tag/soap_request</link>
<description>Powered by Question2Answer</description>
<item>
<title>SOAP Connection with executesqlquery including sum and having statement does not work</title>
<link>https://overflow.efficy.io/?qa=6864/soap-connection-executesqlquery-including-having-statement</link>
<description>&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;We've been working successfully for a few years now wtih SOAP connections and SQL execution&lt;br&gt;
We're now facing an issue with a SQL clause containing a having and sum statement.&lt;br&gt;
Here is the body of the soap envelop :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;SOAP-ENV:Envelope xmlns:efficy=&quot;http://XXXXX.efficy.cloud&quot; xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&amp;gt;
&amp;lt;SOAP-ENV:Body&amp;gt;
&amp;lt;efficy:api&amp;gt; 
&amp;lt;currentuserfullname/&amp;gt;
&amp;lt;datacontainer id=&quot;1&quot; operation=&quot;executesqlquery&quot; recordcount=&quot;&quot;&amp;gt;                    

&amp;lt;sql&amp;gt;
SELECT 
C.F_SAP,
   COALESCE(SUM(F_CA_CUMULE_N), 0) as CA_N,
    COALESCE(SUM(F_CA_TOTAL_N_1), 0) as 'CA_N - 1',
    COALESCE(SUM(F_CA_TOTAL_N_2), 0) as 'CA_N - 2',
    COALESCE(SUM(F_CA_CUMULE_N), 0)  +  COALESCE(SUM(F_CA_TOTAL_N_1), 0) +  COALESCE(SUM(F_CA_TOTAL_N_2), 0) as TOTAL_CA


    FROM 
    (
    SALE_COMP SC
    INNER JOIN
        SALES S
    ON
        S.K_SALE = SC.K_SALE
     )
inner join r_companies C
on 
(C.K_COMPANY= SC.K_COMPANY)

Where
len(C.F_SAP)&amp;gt;0 

GROUP BY
C.F_SAP
having COALESCE(SUM(F_CA_CUMULE_N), 0)  +  COALESCE(SUM(F_CA_TOTAL_N_1), 0) +  COALESCE(SUM(F_CA_TOTAL_N_2), 0) &amp;gt;3000
&amp;lt;/sql&amp;gt;
&amp;lt;queryparams&amp;gt;&amp;lt;/queryparams&amp;gt;
&amp;lt;/datacontainer&amp;gt;
&amp;lt;/efficy:api&amp;gt;
&amp;lt;efficy:logoff/&amp;gt;
&amp;lt;/SOAP-ENV:Body&amp;gt;
&amp;lt;/SOAP-ENV:Envelope&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The post method returns the following error message :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EEfficyExceptionCannot find Child Node &quot;document&quot;LIBS-1822
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If I use a more simple SQL pointing to the exact same tables, I have no problem :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;   &amp;lt;SOAP-ENV:Envelope xmlns:efficy=&quot;http://XXXX.efficy.cloud&quot; xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&amp;gt;
&amp;lt;SOAP-ENV:Body&amp;gt;
&amp;lt;efficy:api&amp;gt; 
&amp;lt;currentuserfullname/&amp;gt;
&amp;lt;datacontainer id=&quot;1&quot; operation=&quot;executesqlquery&quot; recordcount=&quot;&quot;&amp;gt;                    

&amp;lt;sql&amp;gt;
SELECT 
C.F_SAP


    FROM 
    (
    SALE_COMP SC
    INNER JOIN
        SALES S
    ON
        S.K_SALE = SC.K_SALE
     )
inner join r_companies C
on 
(C.K_COMPANY= SC.K_COMPANY)

Where
len(C.F_SAP)&amp;gt;0 

GROUP BY
C.F_SAP


&amp;lt;/sql&amp;gt;
&amp;lt;queryparams&amp;gt;&amp;lt;/queryparams&amp;gt;
&amp;lt;/datacontainer&amp;gt;
&amp;lt;/efficy:api&amp;gt;
&amp;lt;efficy:logoff/&amp;gt;
&amp;lt;/SOAP-ENV:Body&amp;gt;
&amp;lt;/SOAP-ENV:Envelope&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I have opened a ticket (CFT-2023-261853) but somebody mastering well SOAP connections  could help @Laurent Truffaut...&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6864/soap-connection-executesqlquery-including-having-statement</guid>
<pubDate>Sat, 08 Apr 2023 08:37:35 +0000</pubDate>
</item>
<item>
<title>Node &lt;category&gt; not allowed in TConsultRequestHandler</title>
<link>https://overflow.efficy.io/?qa=4371/node-category-not-allowed-in-tconsultrequesthandler</link>
<description>&lt;p&gt;Hello Efficy Team, &lt;/p&gt;

&lt;p&gt;According to (my understanding of) the &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/rpcfunctions#category&quot;&gt;documentation&lt;/a&gt;, we can retrieve the data of a categoy in SOAP, with the node &quot;category&quot;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=2839812894757847389&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;However, I get an error when I am trying to use it : &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=14000412078254602911&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=13552593901520736249&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;What did I missed ? &lt;/p&gt;

&lt;p&gt;Obviously, I am not in &amp;gt;11.2, I cannot use RPC JSON request ... :( &lt;/p&gt;

&lt;p&gt;Regards, &lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4371/node-category-not-allowed-in-tconsultrequesthandler</guid>
<pubDate>Tue, 28 May 2019 04:53:13 +0000</pubDate>
</item>
<item>
<title>Watchdoc - soap_request.xml becomes huge</title>
<link>https://overflow.efficy.io/?qa=723/watchdoc-soaprequest-xml-becomes-huge</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Be aware that the WatchDoc can crash any server if a file that needs to be uploaded to Efficy is bigger than the IIS &quot;Maximum allowed content length&quot; (default : 28.61 Mb).&lt;/p&gt;

&lt;p&gt;Here is the problem :&lt;/p&gt;

&lt;p&gt;1/ When a scan/Fax is made, it goes to a specific folder&lt;br&gt;
2/ The watchdoc service is watching this folder, and every time a document comes in, it upload it to Efficy (using SOAP) and then move this document to an ‘uploaded’ folder.&lt;br&gt;
3/ By default, IIS is configured to accept request with a maximum of 30000000 bytes (= 28.61 Megabytes).&lt;br&gt;
4/ If the document is heavier than 28.61 Megabytes, the Watchdoc fail to upload it to Efficy, and log the request (which contain the document that has been base64 encoded) in soap_request.xml.&lt;br&gt;
5/ This file is growing every time the WatchDoc is launched, and for one customer it has reached 130GB  !&lt;/p&gt;

&lt;p&gt;The solution is very simple : increase the “Maximum allowed content length” in IIS. To do so :&lt;/p&gt;

&lt;p&gt;1/ Open IIS&lt;br&gt;
2/ Click on the website that is running Efficy&lt;br&gt;
3/ Click on the icon “Request Filtering”&lt;br&gt;
4/ On the right panel, click on “Edit Feature Settings…”&lt;br&gt;
5/ Increase the “Maximum allowed content length” value (for instance, setting it to 209715200 will allow files up to 200mo to be uploaded).&lt;/p&gt;

&lt;p&gt;Geoffrey&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=723/watchdoc-soaprequest-xml-becomes-huge</guid>
<pubDate>Wed, 09 Sep 2015 10:53:06 +0000</pubDate>
</item>
</channel>
</rss>