LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I switchout the reference to the constructer of a Web Services

I have two web services that are idententical (Site A and Site B).

 

Can I use a case statement on the reference from the constructer node to the rest of my code?

 

I am using Constructer>>Invoke>>Property nodes. The Invoke nodes are breaking if they were not created from the Constructer node.

 

Is there a different way to use Web Services to allow me to use the same code logic for two different web services?

 

I am using LabVIEW 8.2. Will I have the same problem in later versions of LabVIEW?

 

Thanks!

-John Redman

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

I *think* I have answered my question... If somone can confirm or deny it would be appreciated.

 

Labview *only* works with Web Services via a wizard that creates a .Net interface.

 

The constructer reference of a .Net assembly can not be switched switched out because (I don't know why... the rules of .Net? The rules of LabVIEW? Other? Either way the reference can't be switched.)

 

I tried this in LabVIEW 2010 via an evaluation version and I had the same problem (Invoke nodes broke when Constructer referencs were changed).

 

I guess the way around this is to make sub VIs and only pull data from the DB, one for each data source. The VI should have no other functionality to simplify the copy/paste from DB1 to DB2, DB3... process.

 

Let me know what you think!

 

-John Redman

0 Kudos
Message 2 of 2
(2,387 Views)