LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to import WSDL file into LabView 8.6?

 
0 Kudos
Message 1 of 30
(8,517 Views)

It seems you clicked on the Post button before actually providing some details to your questions.

 

Please provide a reply with some more information. What is WSDL? Are you referring to Web Services Description Language? If not, then what are you referring to. If you are, what exactly do you mean by "import"? Import into what, for what goal?

Message 2 of 30
(8,496 Views)

My computer has .NET 1.1 and I am working with LabView 8.6.  I followed the side http://zone.ni.com/devzone/cda/tut/p/id/4728 to import WSDL file that I have called "Programmer_Service.wsdl".  First in LabView, I went to Tool >import>Web service.  At the box of "Web Service Description Language URL" I enter "C:\Program Files\National Instruments\LabVIEW 8.6\instr.lib\Webservices\Programmer_Service.wsdl" and then pressed Next.  Next page I left blank for "Input the Authentication Information".  When I pressed next, LabView gave me an error "Internal unknow error, please contact National Intrument for help"

Please help me to solve this issue if you can.

 

Thanks,

wwwu

 

 

 

0 Kudos
Message 3 of 30
(8,470 Views)

Hello wwwu,

 

I have been able to reproduce this error.  I am currently looking into this. I do want to know what your overall objective is. What is the file that you created "Programmer_Service.wsdl"?

Message Edited by seVEMes on 02-11-2010 10:38 AM
Vince M
Applications Engineer
0 Kudos
Message 4 of 30
(8,411 Views)

This is the file that my company uses to control one of our equipment. I attach some first lines of the file for you to look at. Thanks, Viet

 

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://efjohnson.com/2600RepeaterServices/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://efjohnson.com/2600RepeaterServices/" xmlns="http://schemas.xmlsoap.org/wsdl/">
  <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://efjohnson.com/2600RepeaterServices/">
      <s:element name="GetSoftwareVersion">
        <s:complexType />
      </s:element>
      <s:element name="GetSoftwareVersionResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetSoftwareVersionResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="QueryPasswordStatus">
        <s:complexType />
      </s:element>
      <s:element name="QueryPasswordStatusResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="QueryPasswordStatusResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SetPassword">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="level" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SetPasswordResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="SetPasswordResult" type="s:boolean" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SetAccessLevel">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="functionname" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SetAccessLevelResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="SetAccessLevelResult" type="s:boolean" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="KeyTransmitter">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="EnergizePA" type="s:boolean" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="KeyTransmitterResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="KeyTransmitterResult" type="s:boolean" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetRxFrequency">
        <s:complexType />
      </s:element>
      <s:element name="GetRxFrequencyResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetRxFrequencyResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SetRxFreq">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="rxFreq" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="channelSpacing" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="bandNumber" type="s:int" />
          </s:sequence>

0 Kudos
Message 5 of 30
(8,395 Views)

Hello Viet,

 

This issue is you are trying to use WSDL file that is locally on your hard drive. This tool is expecting you to access a WSDL that is online. This is why the tool asks for a URL and not a path.

 

Try the process again using this URL instead of the file path.
http://ws.cdyne.com/NotifyWS/phonenotify.asmx?WSDL
 

Vince M
Applications Engineer
0 Kudos
Message 6 of 30
(8,378 Views)

It works with the link you gave me.  So, how can I use our WSDL file?

 

VVu

0 Kudos
Message 7 of 30
(8,344 Views)

Hello VVU,

 

Is your wsdl file hosted on the web? It needs to be on the web in order to be used. Are you trying to invoke web services? LabVIEW Web Services is server-side only. This means that you can only invoke web services from a machine that is serving up a web page or has a web server running on it.

Vince M
Applications Engineer
0 Kudos
Message 8 of 30
(8,320 Views)

I will try through this way.

 

Thanks,

VVu

0 Kudos
Message 9 of 30
(8,307 Views)

Thanks,  I put this file into one computer with web server anable and I can use LabView to import those vi's now.  The problem I am having next is after enter the address (10.2.2.84 for instance) at proxy server setting and run a simple one, but it seems no communicate at all with the device that I want to control.  Is there anything else that I have missed?

 

Viet

 

 

0 Kudos
Message 10 of 30
(8,236 Views)