03-10-2012 09:17 PM
I am trying to see how hard would it be to develop a user interface for a LabVIEW web service using Measurement Studio 2010 sp1 in Visual Studio 2008. I have created a web service in LabVIEW (XML type) and I can successfully access it using my browser. Nonetheless, when I try to add the web reference in my Visual Studio project, I get the error shown at the bottom. I have searched the Visual Studio .NET forums but have not found any specific discussion about LabVIEW web services.
I am wondering if I am missing something or if the access to a LabVIEW web service is not that simple using Visual Studio. My idea would be to emulate what the NI UI Web Builder does but using the Measurement Studio tools.
I will appreciate any comments or suggestions.
The document at the url http://localhost:8080/WebService/MyVI was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Discovery document at the URL http://localhost:8080/WebService/MyVi could not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (1, 2).'.
- <Response xmlns=''> was not expected.
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
Metadata contains a reference that cannot be resolved: 'http://localhost:8080/WebService/SineGen/5/5'.
There was no endpoint listening at http://localhost:8080/WebService/MyVi that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
Solved! Go to Solution.
04-27-2012 05:35 PM
Since you can see it on your web browser, it seems to be a problem with Visual Studio. Have you try to use another computer to open the web service?
04-27-2012 07:53 PM
Indeed the problem is with Visual Studio and its access to the LabVIEW webservice. I have not tried using a different computer.
Have you ever used a LabVIEW webservice from Visual Studio?
05-01-2012 06:10 PM
I have used webservice form LabVIEW but nor from Visual Studio and I am not aware if there is any compatibility issue. However, if you don't mind, I would like to see how you created your webservice to see if I can see any missing part from the LabVIEW side.
07-31-2012 05:30 PM
I need to build a thin web acessible UI to acess a LabVIEW 2011 Web Service. Which one to go, Measurement Studio for Visual Basic .NET or NI Web UI Builder?
Any information or suggestions would be nice.
Note: I don't have experience with text-based languages but the Visual Basic seems to be handy.
07-31-2012 06:17 PM
If you have purchased the license for NI web UI builder I would go for that one. If you have no experience with .NET, building the client on C# o VB.net will not be that easy, I think.
07-31-2012 06:27 PM
Do you know why there's no much work done in Web UI Builder? And even the Measurement Studio, apparently the newest version is back in 2010.
I'm just worried about the long run process, maintainability and so on.
07-31-2012 06:45 PM
I have explored the functionality of the Web UI Builder just a little, but I think you could build a simple, very nice-looking web interface. My personal concern is that the Web UI Builder uses MS Silverlight. This is an issue if you are planning on using your web service client on a mobile device. On the other hand, Measurement Studio extends Visual Studio with various interesting tools that can provide LabVIEW-like functionality. Nonetheless, you can create the client for your Web Service in Visual Studio (which is where Silverlight applications are usually programmed) without Measurement Studio. The later only provides extra controls and functionality. It is important to take into account that LabVIEW uses a RESTful architecture for its web services.
I have been meaning to keep exploring the development of a simple UI for a LabVIEW web service using Visual Studio, but have not had time. If I manage to do something interesting I will post the link on this thread.
08-01-2012 12:25 PM
How about the NI support for the Web UI Builder, is it still being improved or it was put aside?
As I don't have much experience on this subject, I still have one question left, when you said "It is important to take into account that LabVIEW uses a RESTful architecture for its web services." what is implied by that?
08-01-2012 01:39 PM
Your first question may have to be answered by someone in NI.
Regarding LV webservices, you may want to read this document: http://www.ni.com/white-paper/7350/en