LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing WSDL to LabView / .NET issue

Hi,

 

Could someone please point me in right direction?

 

I successfully imported WSDL via Import Web Service wizard (no errors).

 

https://onlineavl2api-go82.navmanwireless.com/onlineavl/api/V2.0/service.asmx?WSDL

 

However, when I open the VI, I observe that there is a .net block and I am not able to use it.

 

I have .NET Framework 4.0 installed on my PC.

 

 

 

 

 

0 Kudos
Message 1 of 7
(2,802 Views)

Hi KatyaR,

 

Can you clarify what you mean when you say you are unable to use it? It looks as though this VI you imported might need to be wired in as a subVI and passed inputs one of which would be the .net refnum, rather than opened and operated on its own.

 

 

Tyler C.
Technical Support Engineering
National Instruments
0 Kudos
Message 2 of 7
(2,741 Views)

Thank you for your reply!

 

I tried to pass inputs (see below). Unfortunately, I do not know how to pass GUID to the .NET.

Could you please point me in right direction?

SessionID         00000000-0000-0000-0000-000000000000

ApplicationID   870f02e5-9516-44ac-b1af-03c2cb4349ae

ClientID            76EE01BD-7369-4252-BBB1-85D9EB77EC10

 

 

0 Kudos
Message 3 of 7
(2,697 Views)

Can you clarify where you are trying to send this GUID info? It seems as though you should be able to simply wire the output from the "session ID" to the location you would like.

Tyler C.
Technical Support Engineering
National Instruments
0 Kudos
Message 4 of 7
(2,684 Views)

Yes, the SessionId output I could wire, but I am asking about SessionId input as well as ApplicationId and ClientId.

I marked inputs that I am interested with the arrows on the screenshot.

Attached please find a screenshot.

Thanks!

0 Kudos
Message 5 of 7
(2,677 Views)

Hi,

 

I changed a few things and I think I got how to input GUID to .net.

But unfortunately, it is still not working.

Now I have Error 1172 occurred at Property Node (Arg :1) Error accessing field Service.UserCredentialInfo.UserName, (System.Reflection.TargetException: Non-static field requires a target.)

 

attached please find updated .vi and the error.

 

I have no idea how to fix it. 

could you please review it and point me in right direction?

 

thanks!

 

Katya

Download All
0 Kudos
Message 6 of 7
(2,669 Views)

Hi Katya,

 

It seems like error 1172 could occur for a number of reasons stemming from improperly creating the .NET constructor. Here is a discussion on this error and a number of troubleshooting steps for how to resolve it: https://forums.ni.com/t5/LabVIEW/net-error-1172/td-p/2475016

I would take a look through that discussion to see if there is any troubleshooting steps that can help you out here.

Applications Engineering
National Instruments
0 Kudos
Message 7 of 7
(2,648 Views)