pgstein104 Posted June 17, 2011 Report Share Posted June 17, 2011 Hi All, I am fairly new to any kind of Web based development and am trying to teach myself how to create a webservice and thin-client using LabVIEW 2009 and the Web UI Builder appliciation. I have followed the tutorial on how to create a thin-client app that connects to an existing web service provided by NI. I also completed the tutorial on how to create a webservice in LabVIEW 2009 and access it from a web browser (the one where you add two numbers and it returns the result in html). My question is; is there anyway I can create a webservice in LV2009 and import it into my Web UI Builder project? Anytime I try to import a webservice I made, I get a 'LabVIEW Web UI Builder cannot connect to the server" message. Is it not possible since the webservice would be hosted on my localhost and the Webbuilder app is coming from the internet? What I really want to do is be able to create a webservice and import it to play with in Web UI Builder. I have tried creating a clientaccesspolicy.xml file, but with no luck. What would be the next logical step? Again, I am a fairly advanced LabVIEW programmer, but releatively new to web-based development. Any suggestions would be greatly appreciated. Thanks, Paul Quote Link to comment
gleichman Posted June 17, 2011 Report Share Posted June 17, 2011 Could this be your problem? "Previously LabVIEW Web UI Builder could not import NI Authenticated Web Services. March 15th National Instruments pushed an update that allows LabVIEW Web UI Builder to import LabVIEW 2010 SP1 authenticated web services." From: LabVIEW Web UI Builder NI Auth Support Documentation Quote Link to comment
Roger_1 Posted June 19, 2011 Report Share Posted June 19, 2011 I had trouble getting the example to connect to the web browser using http://localhost:8080/Add2Numbers/index.html It worked when I used the computers full URL such as : http://<mycomputerURLhere>.com:8080/Add2Numbers/index.html Quote Link to comment
pgstein104 Posted June 20, 2011 Author Report Share Posted June 20, 2011 I did finally get it to work correctly. It had something to do with how I was addressing the web server. Now I am trying to make an application that runs on a web server that I can 'poll' for information, but keeps running. An example would be connecting from a web browser to monitor a plant of some sort. The only thing I could figuere out was to use global variables to pass out the information. Is that my only option? I tried using queues, but the data would not pass through. Thanks, Paul Quote Link to comment
pgstein104 Posted June 20, 2011 Author Report Share Posted June 20, 2011 Also, (and sorry for all of my questions), has anyone expierienced this error before? I can connect to the web server, but it cannot retrieve the description. Quote Link to comment
Aristos Queue Posted June 22, 2011 Report Share Posted June 22, 2011 Also, (and sorry for all of my questions), has anyone expierienced this error before? I can connect to the web server, but it cannot retrieve the description. You should post these questions on a forum where more Web UI Builder users and developers hang out: http://forums.ni.com/t5/LabVIEW-Web-UI-Builder/bd-p/480 I strongly suspect you'll get faster, better answers there. Quote Link to comment
pgstein104 Posted June 23, 2011 Author Report Share Posted June 23, 2011 You should post these questions on a forum where more Web UI Builder users and developers hang out: http://forums.ni.com...uilder/bd-p/480 I strongly suspect you'll get faster, better answers there. Thanks. For anyone interested, I have moved the thread to the NI board here: http://forums.ni.com...ce/td-p/1610968 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.