¡Buenas a tod@s!
Estoy programando varias VI como servicios web, y no consigo ver la manera de poder crear dichos WS en un servidor remoto. Mediante New>>WebService(RESTful) (en las Build Specifications de un Proyecto) creo los WS pero en el mismo PC dónde estoy desarrollando. Y quisiera poder desplegar los WS en otro ordenador dónde también tengo el WebServer configurado.
Consejos, sugerencias... ¡son siempre bienvenid@s!
Sorry for the previous post. I didn't realized that this wasn't a spanish comunity forum (I any moderator can delete the previous one... better!). So, my question/doubt is the following:
Is there any way to deploy a WebService in a remote Server. The idea is to work in one computer and not to send via ftp (or other stuff) the .vi file to the server and do the deployment there (where I have the VI Server and Web Server configured already)
Is it possible?
Thank you so much!
It seems you need to deploy your web service on the remote machine, for which you need make an installer on the development machine and install this application on the remote machine, it should work as web service on the remote machine.
The way I deploy my Web Services in the remote PC (let's say server) is creating the Project in the Server, adding the VIs manually to this project and building them as Web Services in the Server.
As i understand remote pc is not Labview development PC, so how you can create the project on that machine.
For security reasons, LV does not allow you to deploy services from one PC to another thru the LabVIEW Project. You must create an installer to do this. Which is easy to do.
From your LabVIEW project on your dev machine, right click on Client Specifications, and choose "installer". From the intaller build spec properties, add your web service build spec as a source to the installer. Doesn't matter what the destination folder is, that is up to you.
Then just build your installer. Once built, you can move the installer EXE over to your production server, and run it. Once the installer finished, your web service will be deployed with all required dependencies.
There is no need to have the full LV development installed on your production server. The installer you build above will install all necessary dependencies for your web service to execute.
Hope this helps.
You have to configure web server settings on the development machine and build your web service application
Installer itself creates an configuration file (.ini), which will have all your configurations and same will apply on the remote machine.
Procedure for creating an installer,
Also have a look on the link to know how to creating , publishing, deploying and managing web service.
The above linked installer articles are outdated for LV 2011. They also describe how to include a web service inside of a LV Built Application, not an installer. It's a subtle difference, but important.
In your case, you just need an installer for a web service, not a LV built EXE, so stick with the simple instructions in my post.
Let us know if any of this is helping.
If you problem solved, thats great.
It doesnt matter to whose solution you have to stick.