LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about webservice using LabVIEW 2010

hi LabVIEW gurus,

 

I was trying out the web service feature in LabVIEW 2010. After I build and deploy my web service, it appears as a folder in C:\Documents and Settings\All Users\Application Data\National Instruments\WebServices\aws\database-B6EB1CE6-6236-46BE-AA52-652E245F4FC0

It appears as a service name with some strange coded alphanumeric characters. In the folder there is a text file called service_installed.txt. The strange thing is, sometimes when the deployed web service is not working properly, I will see multiple entries of the web service name but with different alphanumeric code. And most of the folders will contain a text file called service_deleted.txt. So if my service is called database as above I will see multiple entries such as

C:\Documents and Settings\All Users\Application Data\National Instruments\WebServices\aws\database-WWWWWW-WWW-WWWW-WWWWWWW

C:\Documents and Settings\All Users\Application Data\National Instruments\WebServices\aws\database-XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX

C:\Documents and Settings\All Users\Application Data\National Instruments\WebServices\aws\database-YYYY-YYYY-YYYYY-YYYYYYYYYYYY

W, X andY are just the unique folder name created by the LabVIEW Web service. Two of the folders will contain service_deleted.txt and the correct web service will contain service_installed.txt.

 

My problem is, my webservice actually reads an ini file from the internal.llb folder which is required for my application to work properly. But due to the webservice sometimes delete the web service itself, I will not know where to place my ini file. My question is,

1) Why does the web service get deleted and installed but into another folder?

2) Anybody knows how to get web service to read a configuration file properly?

 

Any help is appreciated.

 

Rando

 

0 Kudos
Message 1 of 4
(2,974 Views)

I found an easier way. I can place any initialization in the aws folder. In the web service code, just split the path twice to get to the aws folder. The path is C:\Documents and Settings\All Users\Application Data\National Instruments\WebServices\aws

This way web service is not affected even if the web service gets deleted or not.

 

-Rando

0 Kudos
Message 2 of 4
(2,961 Views)

Dear Rando or others professional who might help, 

             I have same situation as Rando. I am generating an image when user generate it using webservice then i have to display the image in their webpage. Initially i am generating image and put into webservice folder which didt contain service_deleted.txt . Everything is working perfectly except when webservice didt not work probably, many webservice folders are generated and some folders are not containing service_deleted.txt. This cause me cannot put that image into actual webservice folder. 

             I tried using the way that Rando mentioned but failed. I put an image inside aws folder and try to access using http://localhost:8080/ . But it returns Access Error:404. I have to put inside folder \aws\database-WWWWWW-WWW-WWWW-WWWWWWW , then only can access by using http://localhost:8080/database. May i ask whether i am doing anything wrong in this? Maybe is different version of labview so having different solution? Btw, i am using Labview 2011. Or maybe there is a way to know which actual webservice folder is running the webservice so that i can put my image into the correct folder?

             

0 Kudos
Message 3 of 4
(2,834 Views)

For other's future reference:

 

Please check out the discussion we had with Loops on this topic here:

https://decibel.ni.com/content/message/100672#100672

Joey S.
Senior Product Manager, Software
National Instruments
0 Kudos
Message 4 of 4
(2,791 Views)