Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69019

problem with web service included in a stand-alone application

$
0
0

I'm trying to run a labview stand-alone application which includes a web service VI using labview 2013 on a windows 7 64bit system.

 

According to the instructions I read, the web services included in a stand-alone app should be accessible through a web server unique to the application I built only while the app is running. However, when I run the application and try to access the web service with a web browser through the port I specified in the build specifications settings, I get the response "the connection to localhost:8002 could not be established". What am I missing?

 

These are the build settings I set up:

 

properties -> web services -> checked the web service I want to inlcude in the application & enabled HTTP port 8002.

properties -> source files -> added the web service VI to "always included" just in case.

 

Here is the niembeddedws.conf file I got:

 

# Web server configuration file.
# Generated by LabVIEW 13.0f2
# 4/19/2014 10:05:16 AM

#
# Global Directives
#
NI.AddLVRouteVars
TypesConfig "$LVSERVER_ROOT/mime.types"
LimitWorkers 10
LimitRequestBody 50000000
LoadModulePath $LVSERVER_ROOT/modules;$LVSERVER_ROOT/..
LoadModule niSessionManagerModule mod_nisessmgr
LoadModule niAuthModule mod_niauth
LoadModule EspModule mod_niesp
LoadModule WSRuntime ws_runtime
Listen 8002

#
# Directives that apply to the default server
#
NI.ServerName "LV Embedded Web Server"
DocumentRoot "$LVSERVER_ROOT/ws_www"
InactivityTimeout 60
SetConnector netConnector
AddHandler niAuthHandler
AddHandler WSRuntime
AddHandler fileHandler ""
AddOutputFilter chunkFilter
LimitRequestForm 50000000
NI.WSRuntime.Configuration embedded "$LVSERVER_ROOT/services"
NI.WSRuntime.LoadWebService Digital_Output_Web_Service.lvws

 

and here is the application.ini file I got:

 

 

[Application]
server.app.propertiesEnabled=True
server.tcp.paranoid=True
server.tcp.serviceName="My Computer/VI Server"
server.vi.callsEnabled=True
server.vi.propertiesEnabled=True
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=False
DebugServerWaitOnLaunch=False
RTTarget.ApplicationPath=\\vmware-host\Shared Folders\Documents\LabVIEW Data\Remote Development\startup.rtexe
RTTarget.VIPath=\\vmware-host\Shared Folders\Documents\LabVIEW Data\Remote Development

 

Of course, I also got the application.exe, application.aliases and webservice.lvws files too.

 

When I run the application and check the active ports with netstat -aon | more I don't see port 8002 listening either.

 

By the way, I tried first to access the web service as a stand-alone web service by deploying it directly from labview and it works fine. I'm testing everything in the same computer where I have the labview 2013 installed.

 

Any ideas?


Viewing all articles
Browse latest Browse all 69019

Trending Articles