LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW & WebService import with Virtual properties

Hi,

 

Importing a web service seems to generate a lot of additional inputs compared with the method deployed as web service. The parameters in the method are:

- public int PanelID

- public Int16 PrintPosition

- public int PcbID

- public virtual PcbIDLog PcbIDLog

 

In LabVIEW it looks like this:

CreatePcbIDPanelRelation.png

 

Calling this method generate an error if "Id" or "Ref" is empty saying "Must not be null or empty." Putting data in "Ref" I get an error saying "Deserialized object with reference id '000' not found in stream." (I inserted "000" in "Ref" is I have no idea what else to insert.)

 

I've got the .NET DLL and tried to insert data using this. VI looks like this:

CreatePcbIDPanelRelationIsingDLL.png

Value inserted in "PcbIDLog" must be NULL ref object but somehow this seems to be the problem as LabVIEW returns an error saying: "Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object."

 

I guess the problem is the virtual property "PcbIDLog". Seems like LabVIEW does not know how to handle this (or maybe it's me who does not know).

 

Anyone who has an idea what to do?

 

Thanks in advance

 

Vagn

0 Kudos
Message 1 of 1
(2,583 Views)