LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to import WSDL file into LabView 8.6?

In order to run the VI on a web service it needs to be treated as a subVI. To do this the connector pane must be connected. The connector pane has a link from the help that I sent to the LabVIEW Help: Assigning Terminals to Controls and Indicators.

 

I hope this helps. It has links to help clarify. To see the connector pane right click on the Icon at the top right side of your front panel. You will have an option to view the connector pane. This is what the help will be refering to.

Vince M
Applications Engineer
0 Kudos
Message 21 of 30
(3,518 Views)

You mean like this in the attachment?  I rebuilt and deploy, but still not works.  Or I have to create another add.vi and include this sub vi into that? 

 

Viet

0 Kudos
Message 22 of 30
(3,502 Views)

Hello Viet,

 

I have attached a document that shows step by step how to connect the connector pane. There are 8 steps in numerical order. In the screenshot the mouse is not showing but the black on the connector pane indicates a mouse click and the highlight of a front panel object indicates a mouse click.

 

Image one is a right click. Image 2-7 are using the wiring tool on the tools palette. This tool appears automatically if the automatic tool selector is chosen.

Vince M
Applications Engineer
0 Kudos
Message 23 of 30
(3,494 Views)

Sorry to confuse you.  Thank you for details, but I did all these including rebuilt and deploy and it still doesn't work.  After that, do I have to connect this sub to anything?  My number is 214 493 8839.  If you don't mind, please call me.

 

Thanks,

Viet

0 Kudos
Message 24 of 30
(3,490 Views)

Hello Viet,

 

Could you elaborate on how this is not working? If you would like to speak to one of our applications engineers, please dial 1-866-275-6964. You will be able to create a service request with us provided you are a member of the Standard Service Program.

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 25 of 30
(3,477 Views)

Hi Vince,

I have a similar problem. I am trying to import a .wsdl file from the harddrive and not from an internet web host.

 

A supplier has developed a system for us that uses web services to send messages via SOAP (I think I have it right) between the equipment in the system. There is no web host setup on either equipment, they just use the web services protocol as the communication "method". The system works fine.

 

I would like to create a LabVIEW program to monitor temperature in the system. The supplier has included some .wsdl files in their source code distribution and suggested that I get the infromation (temperature readings) that I want using web services to access the info.

 

Attached is one of the .wsdl files (had to change extension to .txt for attaching to this forum post) that I would like to use.

If I cannot import the file from the harddrive, can I setup a temporary web host (or whatever) to import the file from using the Import Web Service wizard?

 

I'm running LabVIEW 8.5 on Windows XP.

 

Thanks for your help. If you need any info please let me know.

 

Tim W.

0 Kudos
Message 26 of 30
(3,384 Views)

Hi Tim,

 

I will have to look a bit more into this and get back to you. I will update you soon with what I find out.

 

Vivek Nath || Applications Engineer || National Instruments

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 27 of 30
(3,355 Views)

Hi Tim,

 

It is not possible to import the WSDL file from the hard drive. The WSDL file will have to be hosted on a web server. This was also mentioned in post #8 of this thread.

I hope that answers your question.

 

Regards,

Vivek Nath || Applications Engineer || National Instruments

 

 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 28 of 30
(3,340 Views)

Here is the solution: I use Service.wsdl as an example.

(Works for me with LabVIEW 2016)

 

1. Save your file here:

C:\Program Files (x86)\National Instruments\Shared\NI WebServer\www\Service.wsdl

 

2. Verify it is accessible in your browser:

http://localhost:8080/Service.wsdl

If not working then fix it here: LabVIEW > Tools > Options > Web Server > Configure Web Application Server (needs Internet Explorer & Silverlight)

 

3. Use the LabVIEW > Tools > Import > Web Service ...

with the same URL:

http://localhost:8080/Service.wsdl

 

4. Click Next > Next > Next > Next > Generate > Finish

Message 29 of 30
(2,679 Views)

Greil: 

 

Thank you!! 

Sr Test Engineer at American Innovations - LabVIEW CLA - Kudo's are appreciated!!
0 Kudos
Message 30 of 30
(2,442 Views)