Labview Web Services: How to 'undeploy' web services

I have created the example web services:
Address Book project in labview\examples\comm\webservices\address book for an example of a Web service that handles post data, streaming output, static content, and HTML forms.
Weather Monitor project in labview\examples\comm\webservices\weather monitor
for an example of a Web service that publishes simulated weather statistics.
Using Web UI Builder, they are always included in the list of available web services when I Import Web Service.
How do I get rid of them?
Solved!
Go to Solution.

Hello, 
To remove them from the list, you need to undeploy the web service. There are two ways to do this: you can turn off Web Services in Distributed System Manager or you can delete the Web Service file.
To enable the ability to control Web Services in Distributed System Manager follow the steps in KnowledgeBase 5BLESQW5.   
To remove an actively running web service go to C:\ProgramData\National Instruments\WebServices\aws (Windows 7) and remove the directory that has your web service name. Because we also cashe the LVWS files in another location on disk we will also have to remove that to ensure the Web service is not redeployed by the system web server at some other time. Go to C:\Windows\System32\config\systemprofile\Documents\LabVIEW Data\WebServices\Standalone and remove the LVWS file associated with you web service.
Hope this helps! 
Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments

Similar Messages

  • Labview Web Service Stop

    I started to use Labview Web Service and I have a couple of suggestions
    In the Startup Vis you are able to monitor the status of the web service, but you are not able to close it. It says that labview will automatically close the Labview Web Service when closing a standalone exe, but there are some schenarios where you might want to close programatically the web service. e.g.:
    - When building a standalone exe and you want to be able to close the service programatically.
    Also,
    As soon as the web service receives a URI that doesn't have a Web Resource, it throws an error without been able to handle it. Been able to handle the error could be beneficial when trying to make a dynamic routing system e.g. Many web frameworks.
    BR

    Darshan,
    Yeah, I believe your method would indeed allow you to programatically stop and start the web service.  The easiest way I can think to do this is to use the System Exec.VI to start the process, and then again to kill that process.  Take a look at the following example that shows how to stop a process using LabVIEW.  
    http://digital.ni.com/public.nsf/allkb/80432B061C5​A4C888625705400737BE8
    If you are building an executable and want to make it a background process, you will want to take a look at the following link:
    http://digital.ni.com/public.nsf/allkb/EFEAE56A94A​007D586256EF3006E258B
    Regards,
    Shane C
    Regards,
    Shane C
    Applications Engineer
    National Instruments

  • Incomplete behaviour of System Exec VI when part of a LabVIEW web service

    Background
    I would like to execute arbitrary command line commands via a LabVIEW web service.
    Problem
    I have a LabVIEW project (attached) with a VI boot.vi that takes a string as an argument, which is handed over to the System Exec VI.
    This boot.vi works nicely: when I execute it with a string "test", it nicely executes my Ruby program "test.rb" because (i) I put the path of my the directory inside which test.rb resides into my PATH system variable and (ii) ".rb" endings are associated with Ruby programs on my PC. Similary, I can hand over the string "PATH", and it displays my PATH system variable.
    However, if I build and deplay boot.vi as a LabVIEW webservice, the situation looks differently:
    - the URL "http://localhost:8080/serviceManager/boot/PATH" works fine: the content of my PATH system variable is correctly displayed in the browser window as expected.
    - However, the URL "http://localhost:8080/serviceManager/boot/test" does not work as expected. The following error message (coming Standard Error output of the System Exec VI) is displayed: 'test' is not recognized as an internal or external command, operable program or batch file.
    My conclusion
    System Exec VI does make correct use of the search paths in the PATH system variable only when NOT executed as part of a web service. This is the case although even in a web service, the content the PATH system variable is KNOWN to the System Exec VI. Strange!
    Question
    Am I doing something wrong? Or is there a work-around?
    Attachments:
    serviceManager.zip ‏7 KB

    I just wanted to add my experiences to this thread.  We have a similar web application, and in fact it seems like we followed many of the same trials with the Internet Toolkit and G Web Server.
    As of today, I have migrated our GWS/cgi based application to use web services and the LabVIEW 2009 built-in web server.  It was a fairly straightforward move, though I did run into difficulties bridging the gap between our "normal" application instance and that of the web server that holds the web service VI's.
    Now I'm looking to move to LabVIEW 2010 and right away running into some problems.  While our web application has individual pages served depending on the web service called, it also uses a common pool of static web pages.  Typically these would install to the traditional "web root" folder and would be served from there.
    LabVIEW 2010 has the "Application Web Server" set up as a service that starts with the system.  That seems to work fine.  It also hosts its own configuration page through the "System Web Server" on port 3580.  This too seems to work, but has very few configuration options available.
    I have also spotted this article that discusses serving static pages from the Application Web Server:
    http://digital.ni.com/public.nsf/allkb/2D926638796FB20E8625778F00572966
    I believe I can drill down into the web server configuration (.conf) files and set things appropriately, but I think there should be more documentation available from NI describing the configuration options and how to support these in a deployed web application.
    James

  • LabVIEW Web Service Error on Render ESP Template

    Hello
    I was hoping people would be able to help with the following problem:
    I am trying out the Embedded Server Page (ESP) scripting functionality of the LabVIEW webservices and keep receiveing an error when attempting to render a page.
    I believe that I have set up the HTTP request handler correctly - buffered stream with headers
    The correct template is located and used as the page renders upto the esp variable insertion point.
    I find that the Address Book example works fine, except if I try and add an additional variable to the template, then the same error occurs.
    I have attached an example project that displays the same behaviour and the error is below.
    Tested on LabVIEW 2014 (14.0.1 SP1) 32 bit on 64 bit Windows 7.
    Cheers
    John
    Error -67035 occurred at NI_WebServices.lvlib:Error Converter (ErrCode or Status).vi
    Possible reason(s):
    LabVIEW:  (Hex 0xFFFEFA25) LabVIEW Web Services: ESP Error.
    Complete call chain:
         NI_WebServices.lvlib:Error Converter (ErrCode or Status).vi
         NI_WebServices.lvlib:Web Request.lvclass:Render ESP Template.vi
         Test.vi
         Test.vi.ProxyCaller
    *****************************************************************************************************

    Hi John_Neutron,
    I've been working on your code today and we managed to replicate and fix the error you were seeing.
    The Web service does call the ESP file and render the page, but it throws the error because the variable you are trying to set has not been properly declared. We managed to make the error dissapear by changing the ESP text file with notepad as follows.
    <%
    //This is a server side comment
    // Variables:
    var myvariable;
    %>
    <! Here comes the HTML >
    <html>
    <head><h1>This is the test template</h1></head>
    </br>
    <body> This is now the body:
    <p>Here comes the varaiable</p>
    <p>Variable: @@myvariable</p>
    </body>
    </html>
    Before, you had // in front of the variable (making it a comment) and you didn't have "var" in front of it to say you were declaring anything (this is all in the 4th line). Without the proper declaration, the code throws an error when it is called.
    Vsenior

  • LabVIEW Web Services

    I am trying to figure out whether LabVIEW Web Services uses TCP/IP or UDP.
    We are serving up a web service, and all the data is being sent, but sometimes all the packets do not arrive at the other end.  The client requesting from the service doesn't know what to do.
    Does anybody have an idea if this is a UDP problem, a setting issue, or should the client have to deal with lost packets, as opposed to the TCP/IP dealing with that.
    If anybody has an idea on this, I would love to hear it.
    A. 

    We are sniffing the packets at the output from the server, and they are all present.
    We then sniff again at the client, and they don't always all arrive, i.e. sometimes packets are missing.
    There is no rebroadcast however, the software on both ends just stop communicating? thoughts?
    We haven't built in any smarts to the client software to deal with lost packets, as we believed that TCP/IP would take care of this.
    Helpful ideas/thoughts/pointers would be appreciated. 
    A. 

  • How to create web applications with the LabVIEW web server

    Wonderful Forum,
    I've noticed that sometimes it can be tricky for LabVIEW users to learn how to create their own custom web clients using the LabVIEW web server. I created a LabVIEW web development community group and wrote some tutorials to teach the basics of creating web clients using HTML, Javascript, and AJAX. The idea is that LabVIEW users without any web background can quickly look at some tutorials and examples to get started on their own projects.
    https://decibel.ni.com/content/groups/web-services
    What do you think?
    Joey S.
    Software Product Manager
    National Instruments

    Hi Joey,
    A great idea! I recently presented at a local user group meeting about my WebSockets API (see the links in my signature). I've uploaded the presentation and the demo code I gave to our UG here.
    I think the barrier to entry is with needing to know the web languages (e.g. html/css/js) as well as writing your LabVIEW code. I have joined the group and look forward to seeing some interesting content on there! Certainly some demos of using AJAX to make requests to Web Services and do something with the data (e.g. display on a graph) would be a good place to start.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to configure LabVIEW web server to allow viewing and accessing the content of a folders

    I have added the following html line to the body of the html file generated by the LabVIEW Web Publishing Tool:
    <a href="MyFolder" target="_blank">My Folder Content</a>
    I expect the link labeled "My Folder Content" to open a new browser window displaying the content of  "Myfolder" which is located inside the LabVIEW webserver root folder.  I got an error instead.  If I substitute "Myfolder" with a filename, the browser will display the file just fine.
    Can someone provide me with some hints on configuring the web server for this purpose?

    Hola Hector
                       Estoy trabajando con tu caso y se me ha hecho bastante interesante.
    Solo te quiero preguntar... que version de Internet Explorer tienes?
    Utilizas algun otro web server ? ( Mozilla tiene este problema me parece)
    Segui los pasos que mencionas con Internet Explorer 6
    y pude abrir la carpeta sin problemas.
    Te pido por favor que me contestes estos datos para darte una solucion muy especifica.
    lamentablemente tengas que hacer referencia directa ( todo el path) a los archivos del folder para accesar a ellos si tu explorador no lo permite.
    Lo unico que puedo confirmarte es que parece no ser un problema de National Instruments.
    sin embargo si me das mas informacion podemos descartar cualquiera de las conclusiones a las que he llegado.
    Espero tu respuesta
    Saludos 
    Erwin Franz R.

  • LabVIEW Web UI Builder Outage April 21 2011 Postmortem

    Here is the postmortem from the WLV server outage we suffered last week. We did post
    ongoing updates on the NI Hosted Services status page located at http://status.niwsc.com
    - if you think there's something wrong with the NI cloud that's your
    first place to check, if there's a known problem we update it as soon as
    we can.
    What Happened And Why
    From 10:53 AM to 4:05 PM CDT on Thursday, April 21, The LabVIEW Web UI Builder cloud systems were offline. This prevented downloads of the editor, loading or saving to the cloud, and build/deploy. If you were installed locally and using local project storage, you may not have been affected. We apologize for this unplanned outage, we
    got caught up in the massive Amazon AWS Eastern region downtime, which
    is where we host the service.
    Detailed Timeline
    2:51am
    – LabVIEW FPGA Compile Cloud Beta (FCC) and LabVIEW Web UI Builder
    (WLV) experience problems with the load balanced web servers on the
    front end, LV Cloud Ops team is notified by monitoring. We have 24x5
    operations staff on shift so there was no oncall delay.
    3:30am – LV Cloud Ops team is able to stabilize WLV, but FCC is offline (both redundant front end servers are down).
    4:00am – Ticket opened with Amazon support.
    4:00am – Attempted to create new servers to fail over to. Not able to create new servers in Amazon US East Region.
    7:17am – Posted on status.niwsc.com that FCC was no longer functioning.
    10:16am
    – One of the two WLV web servers crashes, AWS still not able to spin up
    new instances in US East. It becomes clear from Twitter that the
    problem is widespread and affecting many Amazon customers hosted in US
    East.
    10:20am – We alert customers that we might be losing WLV on status.niwsc.com.
    10:30am
    – We begin planning moving web servers to US West, but also hoping
    second webserver stays up. Our tests show AWS is generally jacked up.
    10:53am – Second web server for WLV goes down, WLV offline.
    11:00am – Team works on moving assets to the US West Amazon region and continue to try and get new instances in US East.
    12:35 pm – Amazon provides their first explanation:
    A
    networking event early this morning triggered a large amount of
    re-mirroring of EBS volumes in US-EAST-1. This re-mirroring created a
    shortage of capacity in one of the US-EAST-1 Availability Zones, which
    impacted new EBS volume creation as well as the pace with which we could
    re-mirror and recover affected EBS volumes.Additionally, one of our
    internal control planes for EBS has become inundated such that it's
    difficult to create new EBS volumes and EBS backed instances. Weare
    working as quickly as possible to add capacity to that one
    AvailabilityZone to speed up the re-mirroring, and working to restore
    the control plane issue. We're starting to see progress on these
    efforts, but are not there yet.We will continue to provide updates when
    we have them.
    1:00pm – Reset DNS for uibuilder.niwsc.com to point to “Page not found” on our core services.
    2:30pm – Able to provision new instances for the first time.  We grab 4 real quick.
    2:40pm – Deploy software, apps, and config on all 4 new servers.
    3:30pm – Encounter errors with the Elastic Load Balancers (ELBs)
    3:50pm – Swap in new ELBs and move DNS
    4:05pm – Services restored to customers, give it burn in time before communication on status page and forums
    4:55pm – Communicate issue resolution
    What We Can Do Better
    We
    were not already spread across multiple Amazon geolocations, instead
    relying on multiple availability zones for uptime. Furthermore,
    processes to migrate systems over to new regions require the old region
    to be working.  We plan to set up a process to move assets over to
    US-West on a regular basis so that we can bring up systems there as
    needed. We have had consistently good uptime with Amazon up to this
    point and do not plan on moving providers, but of course if the issue
    recurs we would address it at our supplier level. We do intend to
    address the lack of/slow communication to us and other customers
    surrounding the issue.
    It took us a while to get the downtime
    notification page updated. We will do better; it is hard to prioritize
    communication when people are frantically working issues but we train to
    expect that as a top priority. We have an automation solution nearly
    done that will update the notification page when our monitoring goes
    bad, though of course explanations would still have to be entered by
    operations staff.
    We were not able to quickly email affected
    customers, as operations staff does not have a direct channel to send
    email to customers.  We are looking at other communication options such
    as Twitter and opt-in email from the notification page.
    We'd Like To Hear From You
    Were you affected by the outage? What could we have done better in your eyes?
    How
    would you like to be notified of outages? We are reluctant to email all
    hosted services customers about outages in case you'd consider that
    annoying or spammy. Should we always push outage info to you or should
    that be via an opt in mechanism?  Do you like email, twitter, forum
    posts, all of the above?
    Again, we apologize for the
    service disruption and will continue to work to make the NI Cloud up and
    rock solid 100% of the time.

    LabVIEW Web UI Builder is back up and now available again. Please allow me to apologize on behalf of NI if you were inconvenienced by the outage.
    Regards,
    Mike Neal
    LabVIEW Product Manager

  • Security Issues of Labview Web Server?

    Hi All,
    How secure is the web server for Labview? Is anyone aware of any one
    successfully hacking the systems?
    I would assume that it could be possible to gain full control of the
    machine running Labview as Labview can read/write data to drives etc.
    Just interested as we will be running labview servers on open network
    not protected by a firewall etc.
    Any comments?
    Regards
    Wayne Peacock

    I have found that a LabVIEW application running the Web Server can be crashed from any machine that has access to it. The Browser Access List denial of an IP address will not prevent this crash.
    I have reported the details and National Instruments has confirmed the report and responded with this: "Crashing LabVIEW Through the G Web Server Using TCP VIs"
    http://digital.ni.com/public.nsf/websearch/4C3F86E655E5389886256BA00064B22F?OpenDocument. It turns out that this crash will only occur if the web server logging is enabled.
    Aborting a server is generally categorized as a Denial of Service (DOS) attack. In this case, it is the LabVIEW application itself that aborts, web server and all. This can be more serious than the usual DOS if the application is perf
    orming some other important activity by running VIs. They would unexpectedly abort along with the rest of LabVIEW.
    This attack does not enable reading or writing drives, or otherwise controlling the host machine, the vulnerabilities that you asked about. I have even tried to trick the server into getting pages outside of its root directory without success.
    If you are running a LabVIEW Web Server, you should certainly disable web server logging. If you could not tolerate an unexpected abort in some LabVIEW VIs that you are running and want to be even safer, I recommend that you do not run them in the same LabVIEW application that is running the LabVIEW Web Server. The principle here is compartmentalization.
    On one hand, the small number of deployed servers, relative to other more numerous and attractive targets, has not attracted undesired attention. So you're pretty safe now. On the other hand, LabVIEW is growing and moving to the Internet, and LabVIEW systems control machin
    es and chemical processes, not merely data and dollars. Think about the risks as well as the convenience of using the web.
    Steve Zins -- steve @ iLabVIEW . com

  • Is there a way to interface Labview Web GUI with Fusion Charts?

    Is there a way to interface Labview Web GUI with Fusion Charts for dynamic web presentation?
    http://www.fusioncharts.com/

    I have a ballistics program which our clients can use (see attached).  Basically there is a series of Cascading Combo boxes that the user must select for Bullet Manufacturer, Caliber, and Bullet ID.  The program then goes out to the relevant data file (.CSV) and provides ballistic inputs for the selected projectile.  The user is also required to enter in additional data, such as Sight Height, LOS Range, Temp, etc..  Once all data is input, the user either hits the Calculate Button or the Tab (I'm using Event Structures and I now realize this is an issue for Web UI Builder), and the data gets passed to a MathScript which then crunches numbers and spits output to fill a table and a series of Graphs based upon the tablulated data (if so desired).
    I was hoping to use Labivew for the first two parts ( Data Collection and Number Crunching) and use something like Fusion Charts for the presentation.  I tried learning Ruby on Rails.  I was successful with the Ruby part (basically the Mathscript portion) but really got hung up on the Rails section and the need for something like JSON to interface with it.  Could not find a useful source of information which really showed you how to combine the two effectively. 
    Attachments:
    Ballistics1.JPG ‏144 KB
    Ballistics2.JPG ‏265 KB

  • LabVIEW Web UI Builder is currently experienci​ng downtime (4/21/2011​)

    LabVIEW Web UI Builder is currently experiencing unexpected downtime. NI is working to resolve the issue, but users will temporarily be unable to access the editor.
    For status information and updates, please check check status.niwsc.com.

    LabVIEW Web UI Builder is back up and now available again. Please allow me to apologize on behalf of NI if you were inconvenienced by the outage.
    Regards,
    Mike Neal
    LabVIEW Product Manager

  • Can anyone help me find the free full semester labview course slides that were on the labview web site but recently disappeared. I would like to use them in my course.

    Can anyone help me find the free full semester labview course slides that were on the labview web site but recently disappeared. I would like to use them in my course.

    The main page of the Academic section can be found here.
    I think the material you are looking for is the courseware.
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Difference entre G web server et LabVIEW web server

    Salut,
    je voudrais savoir quelle est la difference entre le G Web server et LabVIEW web Server et quelles sont les avantages de chcun d'eux.
    Merci. 

    Bonjour rose2009,
    Labview web server est le serveur web alors que le G server permet d'executer des script CGI. Il faut se rappeller que labview web server ne permet pas de faire des entrées/sorties, les CGI VI permet de recevoir les entrées ou les requetes pour renvoyer les données.
    Cordialement,
    Hi rose2009
    Labview web server is the web server until G server allow to execute CGI script. LabVIEW does not work with standard HTTP input and output, a CGI VI receives the standard input data as a string when it receives request and sends data that it generates as a string. 
    Best regards,
    Aurélien J.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Du 30 juin au 25 août, embarquez pour 2 mois de vidéo-t'chat ! Prenez place pour un voyage au coe...

  • How to undeploy sda/sca from PI 7.1 ?

    Dear SAP colleagues,
    I am looking a tool to undeploy sda and sca file from PI 7.1 system.
    From PI 7.0 or any SAP NW until 7.02, there is SDM.
    SDM does not exist any longer from SAP NW 7.1.
    Thanks for your input.
    Best regards
    SAP NetWeaverAdmin

    Hello
    Please see the link below.
    WEBAS 7.10 How to undeploy with JSPM
    Cheers!
    Javed

  • How to undeploy retired applications?

    Hi there! I'm new to Weblogic Server and to this forum as well.
    I am redeploying an application without any problem but before redeploying a new version I need to undeploy manually (through command line or webconsole) the old version of the app. My question is: how can the retired versions be deleted automatically when it is not active anymore? Do I need to create a script for that?
    Secondly, I don't need to keep all deployed versions of the app. How can I avoid it? Is it because I use the -upload action in the command:
    java -cp C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar weblogic.Deployer -adminurl t3://192.168.100.221:7001 -user weblogic -password weblogic -redeploy -name App -source "C:\Users\516230\.jenkins\jobs\PGU PRODUCTIU\workspace\UniVic.ear" -targets AdminServer -upload
    Thanks!

    Good Question and please refer the below links may narrow down the issue,
    http://www.coderanch.com/t/64892/BEA-Weblogic/Undeployment-Web-App-EJB
    If you want to do undeploy via Ant script refer below sample code for the same,
    http://stackoverflow.com/questions/1212111/how-to-undeploy-the-weblogic-application-using-ant-task
    Regard,
    Ramprakash Arun
    Industry Vertical
    Please Mark Helpful / Correct Answer if so

  • When using the LabVIEW Simulation Module, how can I start a frequency sweep with the Simulation Chirp signal generation VI at an arbitrary time after the simulation initial time?

    I'm using the Simulation Loop on LV RT when interacting with some hardware (i.e. all I/O is happening in the Sim loop). I'm going to conduct a frequency sweep test on the hardware and want to use the Simulation Chirp function. However, there is no way (that I can see) to trigger the Chirp to start at some event (i.e. I click a boolean on the front panel and enter a case statement). The Chirp is tied to the global time of the Simulation loop and so are it's input parameters. Is there a way to make it relative to some time at which an event happens?

    Craig,
    Your solution will 'cut' the beginning of the signal and only show the signal afterwards.
    To control when the chirp should start, the best option is to use the Chirp Pattern.vi ( in the Signal Generation palette) and use a Lookup table to control when to feed the time. The shipping example (in LabVIEW 2013) shows how to code using a lookup table.
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation\Signal Generation\SimEx Chirp.vi
    Then, to start from a toggled boolean, look at the example:
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation\Signal Generation\SimEx Step.vi
    and Here is the example in 2013 (in attachment):
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments
    Attachments:
    SimEx Chirp with Delay.vi ‏241 KB

Maybe you are looking for

  • Batch Management at Plant Level

    Hi, I need to activate batch management only for the DC. All the other plants are not batch managed. I have maintained the Batch at plant level. Where now do I indicate that only the DC plant is to be activated? Thanks, Lee

  • Workflow should trigger through portal.

    Hi Experts,   I am new to workflow.   I have a requirement to trigger workflow through portal.   This is basically to automate the reimbursement process.   When the user submits the form it should go for approval to the managers   depending on the cl

  • I now get an 500 Internal Server error when loading Firefox, after updating RealPlayer

    I now get an 500 Internal Server error when loading Firefox, after updating RealPlayer. When I try to open Firefox, it opens. But there is the error message. What is this? How do I did rid of it? '''bold text'''

  • Fails to backup changes, reports only eight files written

    I had an "oops" moment and looked for a file changed yesterday. Couldn't find it (had other backup, luckily). I then went to the console logs and selected the backupd for the recent days. All of the backups were similar to this (arbitrarily selected)

  • Configuration Issues

    I don't have a preview tab in my Visual Composer storyboard.  I also don't have a Debugger task panel. Can someone tell me how these options are activated? Thanks.