Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

User interface for a LabVIEW 2011 Web Service using Measurement Studio for Visual Studio .NET

Solved!
Go to solution

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.

Regards,

 

J. R.

 

ERROR::

 

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.

 

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 1 of 14
(5,228 Views)

Hi jarTec

 

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?

Francisco S.
National Instruments
Account Manager
www.ni.com/soporte
0 Kudos
Message 2 of 14
(5,148 Views)

Hola Francisco,

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?

 

Regards,

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 3 of 14
(5,143 Views)

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.

Francisco S.
National Instruments
Account Manager
www.ni.com/soporte
0 Kudos
Message 4 of 14
(5,134 Views)

Hey there,

 

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.

 

Thanks!

 

 

0 Kudos
Message 5 of 14
(5,029 Views)

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.

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 6 of 14
(5,027 Views)

Thanks jarcTek!

 

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.

 

Best,

Raniel

0 Kudos
Message 7 of 14
(5,025 Views)

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.

 

 

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 8 of 14
(5,023 Views)

Thanks again!!

 

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? 

 


Best,

-Raniel


0 Kudos
Message 9 of 14
(5,015 Views)

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

 

Good luck!

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 10 of 14
(5,008 Views)