<?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>topic NI Web Server issues with HTTP Method VIs in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4251965#M1237243</link>
    <description>&lt;P&gt;We are having issues getting a simple web interface to work with the NI Web Server.&amp;nbsp; Essentially we want to enter a string into a webpage, receive that string into a LabVIEW application that will compare the string to a recipe, and then display a response on the webpage. We have two HTTP Method VIs, one for moving data from the web page to the LabVIEW code and one for the opposite direction.&amp;nbsp; We are using global variables in the block diagrams of the Method VIs and LabVIEW code as a simple way to link them together.&amp;nbsp; We have some javascript that interacts with the Method VIs and updates the web page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything has worked fine during development if we right-click on the web service in the Project Explorer and go to the Application Web Server -&amp;gt; Start (Debug Server).&amp;nbsp; However, we run into lots of problems trying to run the NI Web Server by right-clicking on the web service and selecting "Start."&amp;nbsp; The Method VI that fills in the feedback text boxes only works once in a while.&amp;nbsp; All this VI is doing is copying global variables to terminals that get used as variables in our javascript.&amp;nbsp; I have a suspicion that the data on the webpage is getting overwritten but only with NI Web Server.&amp;nbsp; The Method VI looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jtrout_1-1661547030053.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/577af73a4ccfcf68aa8f5f93025dc9492c8fbe06/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303733373769304545373434423934424641464435342f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="jtrout_1-1661547030053.png" alt="jtrout_1-1661547030053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output type of Method VI is set to Terminal.&amp;nbsp; It works fine running the debug Application Server when we only have the globals and the indicators wired to terminals.&amp;nbsp; However, it seemed to help running with the NI Web Server if we added the Web Service Request control, the read block, and the value indicator.&amp;nbsp; I don't understand what the Request control does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On two other laptops, it just doesn't run at all (We get error messages like 67404, and we get other messages related to NI Package Manager if we try to deploy).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want to deploy the project on our client's computer and run the NI Web Server and associated executable application.&amp;nbsp; However, we are feeling uneasy, since we have had such inconsistent results in our office.&amp;nbsp; Can anyone explain how to make the web service more reliable or how we should change the design?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 21:05:05 GMT</pubDate>
    <dc:creator>jtrout</dc:creator>
    <dc:date>2022-08-26T21:05:05Z</dc:date>
    <item>
      <title>NI Web Server issues with HTTP Method VIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4251965#M1237243</link>
      <description>&lt;P&gt;We are having issues getting a simple web interface to work with the NI Web Server.&amp;nbsp; Essentially we want to enter a string into a webpage, receive that string into a LabVIEW application that will compare the string to a recipe, and then display a response on the webpage. We have two HTTP Method VIs, one for moving data from the web page to the LabVIEW code and one for the opposite direction.&amp;nbsp; We are using global variables in the block diagrams of the Method VIs and LabVIEW code as a simple way to link them together.&amp;nbsp; We have some javascript that interacts with the Method VIs and updates the web page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything has worked fine during development if we right-click on the web service in the Project Explorer and go to the Application Web Server -&amp;gt; Start (Debug Server).&amp;nbsp; However, we run into lots of problems trying to run the NI Web Server by right-clicking on the web service and selecting "Start."&amp;nbsp; The Method VI that fills in the feedback text boxes only works once in a while.&amp;nbsp; All this VI is doing is copying global variables to terminals that get used as variables in our javascript.&amp;nbsp; I have a suspicion that the data on the webpage is getting overwritten but only with NI Web Server.&amp;nbsp; The Method VI looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jtrout_1-1661547030053.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/577af73a4ccfcf68aa8f5f93025dc9492c8fbe06/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303733373769304545373434423934424641464435342f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="jtrout_1-1661547030053.png" alt="jtrout_1-1661547030053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output type of Method VI is set to Terminal.&amp;nbsp; It works fine running the debug Application Server when we only have the globals and the indicators wired to terminals.&amp;nbsp; However, it seemed to help running with the NI Web Server if we added the Web Service Request control, the read block, and the value indicator.&amp;nbsp; I don't understand what the Request control does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On two other laptops, it just doesn't run at all (We get error messages like 67404, and we get other messages related to NI Package Manager if we try to deploy).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want to deploy the project on our client's computer and run the NI Web Server and associated executable application.&amp;nbsp; However, we are feeling uneasy, since we have had such inconsistent results in our office.&amp;nbsp; Can anyone explain how to make the web service more reliable or how we should change the design?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 21:05:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4251965#M1237243</guid>
      <dc:creator>jtrout</dc:creator>
      <dc:date>2022-08-26T21:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: NI Web Server issues with HTTP Method VIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4251966#M1237244</link>
      <description>&lt;P&gt;We also have just noticed that the Method VIs don't work if we use the IP address in the URL instead of localhost.&amp;nbsp; This problem also is only when running with NI Web Server.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 21:11:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4251966#M1237244</guid>
      <dc:creator>jtrout</dc:creator>
      <dc:date>2022-08-26T21:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: NI Web Server issues with HTTP Method VIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4253009#M1237647</link>
      <description>&lt;P&gt;BTW: I should have mentioned that we are using LabVIEW 2020 32 bit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another update: we tried repairing the NI software but to no avail.&amp;nbsp; However, everything just started working after many attempts at building our application and package installer and deploying on various computers.&amp;nbsp; This week, at the customer site, we had everything working except for one logic error in our main VI.&amp;nbsp; After fixing this, we rebuilt the application and just replaced the .exe and associated files from the application build folder onto the target computer.&amp;nbsp; Now we have a new issue where the webpage is only being served when running the application from the Administrator user account and not when running from the regular user account on the PC.&amp;nbsp; Nothing else changed.&amp;nbsp; We just rebuilt the application after making a minor fix to the LabVIEW block diagram.&amp;nbsp; We rebuilt and replaced the files in the folder with the .exe.&amp;nbsp; Now there appear to be some new permissions issues.&amp;nbsp; Each step of the way, we haven't known good methods to debug the web service issues.&amp;nbsp; We just keep guessing and trying and hopefully make progress.&amp;nbsp; Any help with systematic methods for how other programmers are successfully deploying NI web services would be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 16:45:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NI-Web-Server-issues-with-HTTP-Method-VIs/m-p/4253009#M1237647</guid>
      <dc:creator>jtrout</dc:creator>
      <dc:date>2022-09-01T16:45:09Z</dc:date>
    </item>
  </channel>
</rss>

