LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is webservice publish

Hi community,

 

I'd like to know what does it mean when I publish a labview web service. I havent nocticed anything really.

 

thx!

0 Kudos
Message 1 of 7
(4,324 Views)
You might want to check the tutorials. But basically it provides a way for you to create a web interface to LabVIEW-based code.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(4,287 Views)

I have created a website in the range of medium complexity (databases, communication to other PCs via datasocket, user management etc), and I never had to publish my webservice in order to make it work properly. 

 

I also studied the tutorials, but never found the reason why should I publish my webservice or what is the meaning of the publish at all. 

 

Can you send me a link which explains it?

 

thanks!

0 Kudos
Message 3 of 7
(4,118 Views)

'Publishing' your Web Service packages it up and installs it on the NI Application Web Server running on your machine so that it will run even if LabVIEW is not running. 'Starting' the web service runs it on the local application instance in the development environment (on a different port).

 

You can also probably just open your web files directly on the operating system - publishing to the web service allows you to access them remotely via a web address (e.g. http://localhost/WebServiceName). 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 7
(4,101 Views)

Checkout the example finder example.  I think there is really only one dealing with a weather station.  It works to show a few ideas well, but only demonstrates the GET method and not the others.

0 Kudos
Message 5 of 7
(4,023 Views)

I did, and I am way beyond that. I have a website with multiple databases, a proper user interface, user management with credential managment, automated emails, datasocket communication to computers in different coutries, POST and GET methods etc, but I still dont understand what the publish does for me.

 

I need to get deeper in Sam's answer.

0 Kudos
Message 6 of 7
(4,016 Views)

@1984 wrote:

but I still dont understand what the publish does for me.


It deploys the web server.  I'm working from source right now, but lets say I'm in my project and I update the code that gets ran on a GET.  That new code won't be called until I perform a publish, in this case by right clicking it in the project and pick deploy.  

 

I see this as something that parallels RT targets.  You deploy code to an RT chassis, and then when you make changes, you need to deploy those changes which is what the publish does.  Of course the EXE has the ability to publish as well if it is configued to work that way.

0 Kudos
Message 7 of 7
(3,996 Views)