<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged openurl</title>
<link>https://overflow.efficy.io/?qa=tag/openurl</link>
<description>Powered by Question2Answer</description>
<item>
<title>When is OpenUrl.log generated ?</title>
<link>https://overflow.efficy.io/?qa=7085/when-is-openurl-log-generated</link>
<description>&lt;p&gt;From the content of OpenUrl.log it looks like it contains the calls to external services + the post payload.&lt;br&gt;
I suppose it is related to one of Efficy.openUrl... methods but I am not quite sure.&lt;br&gt;
The issues is more on log file that is generated in PROD env. but not in TST env. &lt;/p&gt;

&lt;p&gt;I'd like to understand: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When it usually created ?  &lt;/li&gt;
&lt;li&gt;Why it behaves differently ?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The client (on-premise) noticed a peak of space usage since few weeks (it wasn't like that before apparently ). UpenUrl.log  takes over 600mb each day. Most of them are related to sending personalised emails  (flexmail) from campaign. And the flexmail playload take huge space.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7085/when-is-openurl-log-generated</guid>
<pubDate>Wed, 07 Aug 2024 08:33:44 +0000</pubDate>
</item>
<item>
<title>Problem with request to external webservice with TLS 1.2</title>
<link>https://overflow.efficy.io/?qa=4553/problem-with-request-to-external-webservice-with-tls-1-2</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;for a customer we've made a connection with a external webservice. This external party is migrating their service so that it's going to use TLS 1.2. We are testing this but we encounter a problem when we make a request to that external webservice which is using TLS 1.2. We receive the following error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Cannot find web server &quot;xxxxx.xxxxxx.xx&quot;
Error Code: 12044
ErrorContext
=============================     
EEfficyException 0
(LIBS-1690) Cannot find web server &quot;xxxxx.xxxxxx.xx&quot;
Error Code: 12044
Error
=============================     
ESlspException 0
Application Server Error
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I'm using the following code to make the request:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var soapResponse = efficy.OpenURL2(this.options.Url + apiCommandUrl, soapText, this.soapHeaders);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Does anyone know how I can solve this?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4553/problem-with-request-to-external-webservice-with-tls-1-2</guid>
<pubDate>Wed, 10 Jul 2019 09:31:36 +0000</pubDate>
</item>
<item>
<title>Authentication error using openURL</title>
<link>https://overflow.efficy.io/?qa=3887/authentication-error-using-openurl</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am having a problem with soap requests being sent to a webservice designed to synchronise efficy changes with another system ( Navision ).&lt;br&gt;
The client has upgraded the version of Navision and this is now located on a different server. Efficy version is 2014.&lt;/p&gt;

&lt;p&gt;These webservices worked with the old version, but now there seems to be a problem.&lt;/p&gt;

&lt;p&gt;The soap requests are triggered in the workflow ( you will find the code below ). After some digging, i found that the request was sending back an HTTP 401 status.&lt;br&gt;
It seems that the authentication is now different than it was before.&lt;/p&gt;

&lt;p&gt;The client thinks the new version of Navision does'nt support basic authentication anymore, and that NTLM is now required.&lt;/p&gt;

&lt;p&gt;The soap-request itself is correct, i managed to get a result using SoapUI ( see screenshot ), but this seems to use the NTLM protocol. &lt;br&gt;
I used the authentication utility in soapUI for this. ( adding the headers manually doesn't work ).&lt;/p&gt;

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

&lt;p&gt;Could this mean we cannot use openURL to connect anymore? Does it only use basic authentication?&lt;/p&gt;

&lt;p&gt;Any suggestions are welcome.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var oldURL = &quot;http://hostname/DynamicsNAV90/WS/Dialog/Page/Integratie_Contact_Card&quot;;
var URL = &quot;http://hostname/Dialog/WS/Dialog%20LIVE/Page/Integratie_Contact_Card&quot;;   
    var RequestHeader = TStringList.Create;
    try {
        RequestHeader.Add('POST /Dialog/WS/Dialog/Page/Integratie_Contact_Card HTTP/1.1');
        RequestHeader.Add('SOAPAction: urn:microsoft-dynamics-schemas/page/integratie_contact_card:Read');
        RequestHeader.Add('EffNtlmLogin: ...');
        RequestHeader.Add('EffNtlmPassword: ...');
               RequestHeader.Add('Content-Type: text/xml; charset=utf-8');
        var requestContent = '&amp;lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:int=&quot;urn:microsoft-dynamics- 
               schemas/page/integratie_contact_card&quot;&amp;gt;';
            requestContent += '&amp;lt;soapenv:Header/&amp;gt;';
                requestContent += '&amp;lt;soapenv:Body&amp;gt;';
                    requestContent += '&amp;lt;int:Read&amp;gt;';
                        requestContent += '&amp;lt;int:GTex_CustAddr&amp;gt;&amp;lt;/int:GTex_CustAddr&amp;gt;';
                        requestContent += '&amp;lt;int:No&amp;gt;' + navNumber + '&amp;lt;/int:No&amp;gt;';
                    requestContent += '&amp;lt;/int:Read&amp;gt;';
                requestContent += '&amp;lt;/soapenv:Body&amp;gt;';
            requestContent += '&amp;lt;/soapenv:Envelope&amp;gt;';

        var response = Database.OpenURL2(URL, requestContent, RequestHeader.text);

        navKey = GetTagValue(response, &quot;Key&quot;);
        if (navKey == &quot;&quot;){
            Logger.Write(&quot;Reading: Company reading with ID: &quot; + compKey + &quot; failed. Response was: &quot; + response);
        }       
} finally {
        RequestHeader.Free;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3887/authentication-error-using-openurl</guid>
<pubDate>Fri, 25 Jan 2019 14:44:24 +0000</pubDate>
</item>
<item>
<title>Is it possible to do HTML1.1 PUT operation with OpenURL2?</title>
<link>https://overflow.efficy.io/?qa=1856/is-it-possible-to-do-html1-1-put-operation-with-openurl2</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;For a customer, I have to use an external WebService through a Workflow script.&lt;/p&gt;

&lt;p&gt;For the creation I used &quot;POST&quot; operation and &quot;GET&quot; operation for retrieving data from the webservices. and this is working fine with Database.OpenURL2 operation.&lt;/p&gt;

&lt;p&gt;For updating data through the webserivce I have to use a &quot;PUT&quot; operation, but I got an error saying I am not using a PUT operation but a POST operation instead when using Database.OpenURL2.&lt;/p&gt;

&lt;p&gt;Does anyone knows how I could create a PUT call ?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1856/is-it-possible-to-do-html1-1-put-operation-with-openurl2</guid>
<pubDate>Mon, 12 Sep 2016 07:14:45 +0000</pubDate>
</item>
</channel>
</rss>