SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

How to publish Web Services on NI Web Server?

Solved!
Go to solution

Hi everybody,

 

I know this is not a SystemLink question but nobody is answering me inside the LabVIEW forum and we want to install Web Services with the NI Web Server, which means with the SystemLink Web Server.

 

We are currently experiencing some troubles with our webservices and their call in LabVIEW NXG Web app hosted on a SystemLink server.

To keep it simple we changed http to https on our SystemLink server. The NXG Web app is running through https but our webservices are running trough http and it's not working.

 

Since we're using the NI Web Server and not the old NI application Web Server, we can't add the SSL regarding all the documentation we're founding.

We saw that there is a new possibility in LabVIEW 2020 to configure Web services for the NI Web Server or the Application web server. Here is the screenshot of the Build Specifications for Application :

HVW_0-1621349756344.png

 

Once you choose that, great you have an exe (that I don't need) with my service.lvws file. I just discovered you can unzip it!

 

But, how to publish it to the NI Web Server?

The upgrades notes of LabVIEW 2020 are saying that: "You can publish a Web service to the NI Web Server through a stand-alone application, package, or package installer."

I was used for the http one to do an empty Installer to publish the webservice at the end, but inside the Build Specification for Installer, you can't choose between NI Web Server and Application Web Server.

 

Any help would be great 

HVW_1-1621349756346.png

 

0 Kudos
Message 1 of 5
(3,075 Views)
Solution
Accepted by topic author HVW

Hi HVW, 

 

The documentation on how to do this is buried in the LV Help, but once you see how it works its pretty simple. 

 

  1. Create your web service in your LV project as you normally would.
  2. Right click Build Specifications > New > Package
  3. In the package configuration Window, note the Web Services Section
    Screen Shot 2021-05-24 at 4.08.00 PM.png
  4. Select your web service and click Build
  5. Move the nipkg for you web service onto the machine you want to deploy it on. 
  6. Double click the nipkg to open package manager and install the package
  7. When the installer is complete your web service will be at the URL as configured in the LV project. 

 

Hope this helps!

Mark
NI App Software R&D
Message 2 of 5
(3,009 Views)

Wow ! many thanks MarkBlack!

We thought that it was not so difficult, but it was impossible to find some explanation on it!

 

We found almost nothing with the new NI web server. And it's far most easier than the Application Web Server!

 

Our webservices are running through https now! Thank you again 😉

0 Kudos
Message 3 of 5
(2,998 Views)

@MarkBlack I have an issue related to web services publishing. I posted it here --> https://forums.ni.com/t5/LabVIEW/Publishing-web-service-fail-with-error-67404-LV2020/m-p/4170702

If you have any information about the issue I would be pleased to hear them.

 

Thanks,

 

Olivier


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 4 of 5
(2,499 Views)

removed

------------------------------------------------------------------------------------
Seriously concerned about the Labview subscription model
0 Kudos
Message 5 of 5
(2,188 Views)