LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Share a common web service across projects

Has anyone come up with any clever ways to share a common web service across multiple LabVIEW projects? I'm toying with an idea for a generic REST API that could work with multiple applications, and it would be nice if there were a way to build the web service into some sort of library that could be easily included any any *.lvproj. As far as I can tell, though, there doesn't seem to be any way to do this simply; it seems like my only option would be to build a tool that leverages scripting (and *maybe* even some direct XML manipulation of the *.lvproj file) to

  • Create a new web service in the selected *.lvproj
  • Add the common method VIs
  • Configure those method VIs appropriately (e.g. set them as GET, POST, etc.; set output type to JSON, etc.)
  • Add the web service to the applicable build specifications

That seems technically *feasible*, but kind of a pain. Wondering if the whole web service could be built into some sort of library/distribution that could pulled into a new project wholesale. Anybody done that?

 

In particular, it would be *really* nice if it could be done for web services to be included in realtime target applications.

0 Kudos
Message 1 of 2
(1,143 Views)

I am looking at trying the same thing. Have you been able to figure out a way to share web services? The best I can think of is to create sub vis with the desired functionality and build them into a toolkit package. But the user will still have to create the web service in their project and configure it correctly.

0 Kudos
Message 2 of 2
(977 Views)