LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

web services Access Error: 404 -- Not Found

I'm going through the web service example on the help menu.  The vi is built exactly as required and the deployment works.  Labview is running and the vi is open, but when i start up firefox and go to the url, i get the error "Access Error: 404 -- Not Found".  Any ideas?  Thanks.
0 Kudos
Message 1 of 13
(9,062 Views)

Hi Pojoaque,

 

Thanks for the post and I hope your well.

 

What version of LabVIEW are you using and which example is it? 

 

The error either means that you have entered the wrong URL or that the address that you have requested has moved. Also, it can be linked to a server failure. What would be wise to do in first hand is to ping for the website, to see if it is still available through the server. I would also check your setup.

 

Also, please look at the following link for more information on Web Services and issue,

 

LabVIEW Web Services

http://zone.ni.com/devzone/cda/tut/p/id/7747#toc6

 

Hope this helps,

 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 13
(9,052 Views)

Hi,

 

Also check to make sure the LabVIEW Web Server is running and that it is enabled for Web Services.  You can find it in Tools >> Options.  It is not enabled by default. 

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 3 of 13
(9,027 Views)
Labview version is 8.6 and the example is the "add" example.  Web server is running and web services are enabled.  I can get the weather station example to run fine, but any vi i create myself doesn't work.  I must be missing a step somewhere...
0 Kudos
Message 4 of 13
(9,023 Views)

Hi Pojoaque,

 

Thanks for the update. Which example is called add? 

 

Maybe its the address book example, if so, please see this KnowledgeBase article with a known issue with this example - also please double check your configuration of LabVIEW. 

 

In the VIs you create yourself what are you trying to do?

 

Why Does the Address Book RESTful Web Service Project Found in the LabVIEW 8.6 Example Finder Not Work?

http://digital.ni.com/public.nsf/allkb/A8830F04188D2835862574AA0059055E?OpenDocument

 

If its the VI itself which does work - have you checked your LabVIEW configuration allows access to the webserver for all vis?

 

Hope this helps, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 5 of 13
(9,018 Views)
Do you have your URL mapping set up properly in the build specification for the web service?  How do you have it configured?  If you can attach your project, I can take a look at the build spec and see if I can find anything wrong.
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 6 of 13
(9,016 Views)

Hi Hi Pojoaque,

 

I hope your well.

 

I was wondering if any of the advice given thus far has resolved your issue?

 

Thanks,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 7 of 13
(8,988 Views)
I went back to the beginning and rebuilt the example entirely and it worked, so i'm past the issue but i'm not sure where the error was.   Now i'm trying to pass data back and forth between a web page and shared variables in another vi using POST and the html "form" function.  Are there any examples of this available?  Even something like the weather station example except with streaming data instead of having to reload the page to update the values would be helpful.
0 Kudos
Message 8 of 13
(8,984 Views)

Hi Pogoaque,

 

Thanks for getting back to us.

 

If you take a look at these two links, 

 

Streaming IMAQ Images Over a Network (or Internet)

http://digital.ni.com/public.nsf/allkb/2E60AF970E49531586256A8C0051332C?OpenDocument

 

Web Services in LabVIEW

http://zone.ni.com/devzone/cda/tut/p/id/7350#toc5

 

 You'll notice one of the negitives for the Web Server is a flashing image update -as the front panel is an image. 

 

For the Web Serice article, under advanced - it talks about streaming data. There is a zip example - this may help.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 9 of 13
(8,978 Views)

Hi,


You can set a web method VI to be streaming, and then use the Write Response VI to stream the response (use it in a loop).  You can also use AJAX to do a periodic refresh.

Message Edited by Jeremy_B on 12-10-2008 11:59 AM
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 10 of 13
(8,974 Views)