Example Code

Example Web Service Client using LabWindows/CVI and gSoap,

Code and Documents

Attachment

Overview
This example program provides an example of a simple stand-alone web service application implemented using LabWindows/CVI.

Description

Creates 32 bit application that uses an existing web service: (http://www.webservicex.net/ConvertAcceleration.asmx?WSDL ) to convert acceleration values from one unit to another.   

Everything necessary to build and execute this project is provided in the ConvertAccel.zip file that came with this distribution except the LabWindows/CVI development environment.  This distribution was created using LabWindows 2010.  Extract the zip file, click on the ConvertAccel.cws file to launch LabWindows/CVI and click the green run button (build 32-bit debug executable.)  These instructions, along with some help from the tutorial links to gSOAP and soapUI (see below), provide everything necessary for a CVI programmer to create additional web service applications.  Internet access is naturally required for a web service to work.  

 

Requirements

  • LabWindows/CVI 2012 (or compatible)
  • gSOAP, soapUI and MSVCR80 redistributable run-time environment (included).

 

Steps to Implement or Execute Code

  1. Open the file " ConvertAccel.cws "
  2. click the green run button and run the program.

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
maurizio.bollini
Member
Member
on

This example don't works with LabWindows/CVI 2020 and Windows 10. I think it need to be updated somewhere.

 

Is there an update available? Or an alternative way to deploy web services with LabWindows/CVI?

 

Regards,

 

Maurizio.

Maurizio Bollini
Certified LabVIEW Architect
http://www.met.it
https://www.linkedin.com/in/mauriziobollini/
ryk
Member
Member
on

Maurizio,

 

"Don't works" says very little about your problem.  Give a detailed description of what does not work.  If you can do that, it is likely you are half way to the solution. 

Note, using this example requires that you are comfortable using CVI i.e. creating and debugging a .dll, navigating through gSoap generated code, and using the Windows API. (as shown, MSVCR80 is the library used in this example.)  With newer operating systems, it will likely be necessary to update C bindings to the SOAP web service using the latest versions of gSoap

Also, it has been years since this post has been posted, you should verify the web service it points to is still active and uses SOAP protocols.  (This can be done using: SoapUI).

 

Ryk