Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleLogin işlemleri ile birlikte
linenumberstrue
  <SetVariable Name="$(LoginURL)">
    <StringConcat>
      <Value Culture="" Target="None">$(APIURL)</Value>
      <Value Culture="" Target="None">auth/oauth2/token</Value>
    </StringConcat>
  </SetVariable>
  <Set Node="DYSAPI/Login/Request">
    <StringConcat>
      <Value Culture="" Target="None" IsCDATA="True"><![CDATA[username=]]></Value>
      <Value Culture="" Target="None">$(APIUser)</Value>
      <Value Culture="" Target="None" IsCDATA="True"><![CDATA[&password=]]></Value>
      <Value Culture="" Target="None">$(APIPassword)</Value>
      <Value Culture="" Target="None" IsCDATA="True"><![CDATA[&grant_type=password&client_id=]]></Value>
      <Value Culture="" Target="None">099153c2625149bc8ecb3e85e03f0022</Value>
    </StringConcat>
  </Set>
  <JsonInvoke Url="$(LoginURL)" InvokeType="Post" RequestNode="API/Login/Request" ResponseNode="API/Login/Result" ClearInto="False" IsHeadersEncoded="False" IsSerialize="False" Timeout="100" ContentType="application/x-www-form-urlencoded" Accept="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" IsResultJson="True">
    <Headers />
  </JsonInvoke>

Örnek Kullanımı

Code Block
languagexml
titleRestfull bir servisi giriş token'ı ile çağırma örneği
linenumberstrue
  <JsonInvoke
Url="https://esbgwpreprod.yildizholding.com.tr/yhia_e_payment/v1/get/Payment"
InvokeType="Get" RequestNode="GetPayment/Request"
ResponseNode="GetPayment/Response" ClearInto="True"
IsHeadersEncoded="False" IsSerialize="True"
Timeout="100" ContentType="application/json"
Accept="application/json" IsResultJson="True">
    <Headers>
      <Header
Key="Authorization">Basic
Zm9ybS5lc2lnbmF0dXJlLmVndXZlbjo2bjFiQkJWUVdqNXE4Zngx</Header>
    </Headers>
  </JsonInvoke>

 

 

Info
titleSisteme dahil olmayan ITASK için Dll üzerinden çağırma

<Using Name="JsonInvoke" Type="EBI.ExtraFunctions.JsonInvoke,EBI.ExtraFunctions" />

...