01-13-2012 07:04 AM
¡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!
¡Saludos!
01-16-2012 08:49 AM
Hello everyone!
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!
01-16-2012 02:51 PM
01-16-2012 04:00 PM
01-17-2012 12:29 PM
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.
You wrote:
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.
Please clarify.
01-17-2012 04:36 PM
01-17-2012 05:17 PM
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.
01-18-2012 02:46 AM
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,
LabVIEW 2009 : http://digital.ni.com/public.nsf/allkb/62B9C2D5C91EE8B28625778800609FF2?OpenDocument
LabVIEW 8.6: http://digital.ni.com/public.nsf/allkb/0335B60BA1B6485E86257788006066DF?OpenDocument
Also have a look on the link to know how to creating , publishing, deploying and managing web service.
http://zone.ni.com/reference/en-XX/help/371361E-01/lvconcepts/webservices/
01-18-2012 01:05 PM - edited 01-18-2012 01:05 PM
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.
-Jared
01-18-2012 01:29 PM
If you problem solved, thats great.
It doesnt matter to whose solution you have to stick.