NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
TheKackler
Posts: 11
0 Kudos

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

Member
TheKackler
Posts: 11
0 Kudos

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

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page