03-12-2018 07:47 PM
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.
03-13-2018 04:15 PM
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.
03-28-2018 04:41 PM
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
03-29-2018 02:27 PM
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.
03-29-2018 02:54 PM
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!
03-30-2018 05:42 PM
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
04-03-2018 10:02 AM
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.