<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article On-Demand Custom Application Example in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/On-Demand-Custom-Application-Example/ta-p/1488978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NPrinting’s On-Demand Service exposes a standard interface that can be used by custom applications. This article shows you an example of a simple C# application that runs an NPrinting Task and a Report from the command line. The application is kept simple so you can focus on implementing NPrinting On-Demand on your own.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Pre-Requirements&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;.NET 4.5 installed&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;NPrinting Training environment installed. Download it from: &lt;A href="https://community.qlik.com/docs/DOC-9196"&gt;NPrinting Training Material&lt;/A&gt; and decompress into &lt;CODE&gt;C:\NPrintingTraining&lt;/CODE&gt;. The source code of the application is saved in the folder &lt;CODE&gt;C:\NPrintingTraining\CustomApplication\OnDemandCustomApplicationSample&lt;/CODE&gt;.&lt;/LI&gt;&lt;LI&gt;On-Demand Service running - You need a license with On-Demand feature enabled, then install and configure the NPrinting Service. Refer to the tutorial&lt;A href="https://community.qlik.com/docs/DOC-8415"&gt;How to Configure QlikView NPrinting 16 Service&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Optional requirements&lt;/H3&gt;&lt;P&gt; To open the sample project you need Visual Studio 2013. &lt;/P&gt;&lt;H2&gt;Architecture&lt;/H2&gt;&lt;P&gt; You can connect to On-Demand Services via the SOAP/WSDL web-service located at &lt;CODE&gt;http&lt;/CODE&gt;&lt;S&gt;&lt;CODE&gt;://{yourserver}:{port}/ODS&lt;/CODE&gt;. If your server is installed on the local machine and it has a standard port, you’ll need to use the following URL: &lt;A href="http://localhost:9000/ODS"&gt;http://localhost:9000/ODS&lt;/A&gt;. Opening it you’ll see an help page. WSDL is available at: &lt;CODE&gt;http&lt;/CODE&gt;&lt;S&gt;&lt;CODE&gt;://{yourserver}:{port}/ODS?wsdl&lt;/CODE&gt;. With a local installation, use: &lt;A href="http://localhost:9000/ODS?wsdl"&gt;http://localhost:9000/ODS?wsdl&lt;/A&gt; &lt;/S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The example is a .NET command-line application which calls the NPrinting On-Demand web-service to generate and download a report, also to run a task. All call details are explained in C# source files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; By integrating an NPrinting Project with a custom application you can: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Generate any report&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Run any task&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Filter reports or tasks with your own custom filters&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Filter reports or tasks with saved filters&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Filter reports or tasks for recipients you prefer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; Custom application can be developed with the programming languages you prefer (i.e. Java, PHP,C#...). Just connect to the aforementioned web-service. We suggest using C# sources as the guideline for implementation in other languages. &lt;/P&gt;&lt;H2&gt;Suggested integration architecture&lt;/H2&gt;&lt;P&gt; In general, we suggest using On-Demand web-service as a &lt;STRONG&gt;back-end&lt;/STRONG&gt; integration solution. For example, you can integrate an existing PHP portal by calling On-Demand web-service on the server-side to generate reports. For security reasons, be sure not to allow users to reach the On-Demand web-service. &lt;/P&gt;&lt;H2&gt;Example project&lt;/H2&gt;&lt;P&gt; The example project can be opened through Visual Studio 2013. The source code is locates at: &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;C:\NPrintingTraining\CustomApplication\OnDemandCustomApplicationSample&lt;/CODE&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you open the project with Visual Studio, you can modify it and run it. This is how we suggest experimenting with On-Demand web-service. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To run the example, use the pre-compiled version which can be found at &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;C:\NPrintingTraining\CustomApplication\OnDemandCustomApplicationSample\OnDemandCustomApplicationSample\bin\Release\OnDemandCustomApplicationSample.exe&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;Double click to run it, then follow the instructions on the console window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 13:40:30 GMT</pubDate>
    <dc:creator>Bjorn_Wedbratt</dc:creator>
    <dc:date>2015-11-24T13:40:30Z</dc:date>
    <item>
      <title>On-Demand Custom Application Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/On-Demand-Custom-Application-Example/ta-p/1488978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NPrinting’s On-Demand Service exposes a standard interface that can be used by custom applications. This article shows you an example of a simple C# application that runs an NPrinting Task and a Report from the command line. The application is kept simple so you can focus on implementing NPrinting On-Demand on your own.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Pre-Requirements&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;.NET 4.5 installed&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;NPrinting Training environment installed. Download it from: &lt;A href="https://community.qlik.com/docs/DOC-9196"&gt;NPrinting Training Material&lt;/A&gt; and decompress into &lt;CODE&gt;C:\NPrintingTraining&lt;/CODE&gt;. The source code of the application is saved in the folder &lt;CODE&gt;C:\NPrintingTraining\CustomApplication\OnDemandCustomApplicationSample&lt;/CODE&gt;.&lt;/LI&gt;&lt;LI&gt;On-Demand Service running - You need a license with On-Demand feature enabled, then install and configure the NPrinting Service. Refer to the tutorial&lt;A href="https://community.qlik.com/docs/DOC-8415"&gt;How to Configure QlikView NPrinting 16 Service&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Optional requirements&lt;/H3&gt;&lt;P&gt; To open the sample project you need Visual Studio 2013. &lt;/P&gt;&lt;H2&gt;Architecture&lt;/H2&gt;&lt;P&gt; You can connect to On-Demand Services via the SOAP/WSDL web-service located at &lt;CODE&gt;http&lt;/CODE&gt;&lt;S&gt;&lt;CODE&gt;://{yourserver}:{port}/ODS&lt;/CODE&gt;. If your server is installed on the local machine and it has a standard port, you’ll need to use the following URL: &lt;A href="http://localhost:9000/ODS"&gt;http://localhost:9000/ODS&lt;/A&gt;. Opening it you’ll see an help page. WSDL is available at: &lt;CODE&gt;http&lt;/CODE&gt;&lt;S&gt;&lt;CODE&gt;://{yourserver}:{port}/ODS?wsdl&lt;/CODE&gt;. With a local installation, use: &lt;A href="http://localhost:9000/ODS?wsdl"&gt;http://localhost:9000/ODS?wsdl&lt;/A&gt; &lt;/S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The example is a .NET command-line application which calls the NPrinting On-Demand web-service to generate and download a report, also to run a task. All call details are explained in C# source files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; By integrating an NPrinting Project with a custom application you can: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Generate any report&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Run any task&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Filter reports or tasks with your own custom filters&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Filter reports or tasks with saved filters&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Filter reports or tasks for recipients you prefer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; Custom application can be developed with the programming languages you prefer (i.e. Java, PHP,C#...). Just connect to the aforementioned web-service. We suggest using C# sources as the guideline for implementation in other languages. &lt;/P&gt;&lt;H2&gt;Suggested integration architecture&lt;/H2&gt;&lt;P&gt; In general, we suggest using On-Demand web-service as a &lt;STRONG&gt;back-end&lt;/STRONG&gt; integration solution. For example, you can integrate an existing PHP portal by calling On-Demand web-service on the server-side to generate reports. For security reasons, be sure not to allow users to reach the On-Demand web-service. &lt;/P&gt;&lt;H2&gt;Example project&lt;/H2&gt;&lt;P&gt; The example project can be opened through Visual Studio 2013. The source code is locates at: &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;C:\NPrintingTraining\CustomApplication\OnDemandCustomApplicationSample&lt;/CODE&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you open the project with Visual Studio, you can modify it and run it. This is how we suggest experimenting with On-Demand web-service. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To run the example, use the pre-compiled version which can be found at &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;C:\NPrintingTraining\CustomApplication\OnDemandCustomApplicationSample\OnDemandCustomApplicationSample\bin\Release\OnDemandCustomApplicationSample.exe&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;Double click to run it, then follow the instructions on the console window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/On-Demand-Custom-Application-Example/ta-p/1488978</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2015-11-24T13:40:30Z</dc:date>
    </item>
  </channel>
</rss>

