<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged webservice</title>
<link>https://overflow.efficy.io/?qa=tag/webservice</link>
<description>Powered by Question2Answer</description>
<item>
<title>Files in webservice</title>
<link>https://overflow.efficy.io/?qa=5892/files-in-webservice</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;A customer would like to send an attachment to the CRM by a webservice. Is it possible to use the E-DEAL webservices to send an attachment to the CRM? If so, with what method?&lt;/p&gt;
</description>
<category>E-Deal support</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5892/files-in-webservice</guid>
<pubDate>Thu, 11 Feb 2021 17:24:33 +0000</pubDate>
</item>
<item>
<title>Download file from a external webservice</title>
<link>https://overflow.efficy.io/?qa=5872/download-file-from-a-external-webservice</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;A customer has provide an access to a webservice that is returning a file (binary data, filename) in JSON and we would like to be able from the information in Efficy to call this webservice in order to directly download the file.&lt;/p&gt;

&lt;p&gt;The customer is in Efficy 11.0 so we cannot use the following project guide : &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/projectguides/files_overview#download_a_file_through_node&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/projectguides/files_overview#download_a_file_through_node&quot;&gt;https://help.efficy.io/edn/projectguides/files_overview#download_a_file_through_node&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is there any easy way to do it ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5872/download-file-from-a-external-webservice</guid>
<pubDate>Fri, 05 Feb 2021 10:32:05 +0000</pubDate>
</item>
<item>
<title>Error when making rest calls on https</title>
<link>https://overflow.efficy.io/?qa=2135/error-when-making-rest-calls-on-https</link>
<description>&lt;p&gt;Hello everyone, &lt;/p&gt;

&lt;p&gt;For one of my customer (Ingenico) I have to communicate with another api using rest call (Method; POST) to synchronise Efficy's tickets/actions. &lt;/p&gt;

&lt;p&gt;During my first tests, I encountered some errors due to the invalid certificate (It's expired since 2015). &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First version:&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;//@Author: PPT: Create HTTP request
function createRequest() {

  return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}

function SendCaseToJira(k_case){

                var url = Database.GetSysStorageValue('Jira_ApiUrl') + &quot;update/case/&quot; + k_case;
                var req = createRequest();
                try{         
                                var ret;
                                var OnSuccessFunction = function (args2, _html) {ret=_html;}                                    
                                req.onreadystatechange = function() {
                                  if (req.readyState == 4 &amp;amp;&amp;amp; req.status == 200) {
                                                OnSuccessFunction(&quot;&quot;,req.responseText);
                                  }else
                                                  ret = &quot;not working&quot;;
                                };
                                req.open(&quot;POST&quot;, url, false);
                                req.send();

                                Logger.Write(ret);
                }catch(e){
                                Logger.Write(&quot;Error when notifying Jira: &quot; + e.message);
                }

}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Here is the error message that I was getting: &lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Error when notifying Jira: Security certificate required to access&lt;br&gt;
  this resource is invalid.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Then I found that I could disable certificate check by modifying my code: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second version:&lt;/strong&gt; &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;//@Author: PPT: Create HTTP request
function createRequest() {

  // return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  return new ActiveXObject(&quot;Msxml2.ServerXMLHTTP.3.0&quot;);
}

function SendCaseToJira(k_case){

                var url = Database.GetSysStorageValue('Jira_ApiUrl') + &quot;update/case/&quot; + k_case;
                //var url = Database.GetSysStorageValue('Jira_ApiUrl') + &quot;update/&quot;;
                var req = createRequest();
                //Disable the certificat check
                req.setOption(2, 13056);
                try{         
                                var ret;
                                var OnSuccessFunction = function (args2, _html) {ret=_html;}                                    
                                req.onreadystatechange = function() {
                                  if (req.readyState == 4 &amp;amp;&amp;amp; req.status == 200) {
                                                OnSuccessFunction(&quot;&quot;,req.responseText);
                                  }else
                                                  ret = &quot;not working&quot;;
                                };
                                req.open(&quot;POST&quot;, url, false);
                                req.send();

                                Logger.Write(ret);
                                //Logger.Write(&quot;Success notifying Jira: &quot; + response);
                }catch(e){
                                Logger.Write(&quot;Error when notifying Jira: &quot; + e.message);
                }

}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And now I'm getting the following error: &lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Error when notifying Jira: An error occurred in the secure channel&lt;br&gt;
  support&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Have someone ever had that kind of problem? Can someone help me on how to generate rest call over https using javascript serverside? &lt;/p&gt;

&lt;p&gt;Thanks in advance. &lt;/p&gt;

&lt;p&gt;KR, &lt;/p&gt;

&lt;p&gt;Prince.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2135/error-when-making-rest-calls-on-https</guid>
<pubDate>Wed, 21 Dec 2016 12:31:30 +0000</pubDate>
</item>
<item>
<title>Webhook configuration</title>
<link>https://overflow.efficy.io/?qa=1958/webhook-configuration</link>
<description>&lt;p&gt;Hi Everyone, &lt;/p&gt;

&lt;p&gt;For one of our client, I have to configure a webhook to allow a third party application to synchronise Ticket by sending us information (via an url) to notify Efficy when a ticket has been created/modified in the other platform so Efficy could pull the ticket and create it.&lt;/p&gt;

&lt;p&gt;I know how to developp it but I'm wondering where should I create that page? &lt;br&gt;
Should it be like a guest page? If I create an independent html page within Efficy, how should the url look like? &lt;/p&gt;

&lt;p&gt;Thanks for your time.&lt;/p&gt;

&lt;p&gt;KR,&lt;/p&gt;

&lt;p&gt;Prince.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1958/webhook-configuration</guid>
<pubDate>Fri, 21 Oct 2016 11:01:39 +0000</pubDate>
</item>
<item>
<title>Impersonating a user</title>
<link>https://overflow.efficy.io/?qa=491/impersonating-a-user</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;Is it possible in Efficy using the or .NET SOAP API or XML webservice messages to impersonate a user?&lt;/p&gt;

&lt;p&gt;My client wants to create and update information in Efficy using one of both interface possibilities but he also wants that the applied changes are not all logged in sys_changed under the same user, used for executing the soap calls.&lt;br&gt;
He prefers it is logged as an other user, also known in Efficy.&lt;/p&gt;

&lt;p&gt;A possible workaround could be by working with workflow and/or database triggers but it looks cleaner to use impersonate.&lt;/p&gt;

&lt;p&gt;Any suggestions?&lt;/p&gt;

&lt;p&gt;gr&lt;br&gt;
Erwin&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=491/impersonating-a-user</guid>
<pubDate>Fri, 03 Jul 2015 13:24:42 +0000</pubDate>
</item>
<item>
<title>Efficy SOAP DLL: Webservice Inserting an Attachment</title>
<link>https://overflow.efficy.io/?qa=4/efficy-soap-dll-webservice-inserting-an-attachment</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I would like to know how to use to use the insertattachment function that is available in the Efficy SOAP dll.&lt;/p&gt;

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

&lt;p&gt;Stéphane R.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4/efficy-soap-dll-webservice-inserting-an-attachment</guid>
<pubDate>Thu, 18 Sep 2014 13:44:34 +0000</pubDate>
</item>
</channel>
</rss>