LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing WSDL from Windows Communication Foundation (WCF)

We've created a new WCF windows service using VS2008/.net 3.5.  Using IE we can find the WSDL.  When using the LabVIEW (8.5) Import Web Service utility, returns an error when referencing the WSDL.
Has anyone had any experience accessing a WCF based WSDL?
0 Kudos
Message 1 of 27
(8,680 Views)

Hi Michael,

What (and where), exactly, is the error that is occurring?  Sometimes attaching a Simple Error Handler can give you a more descriptive error message.

Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 2 of 27
(8,652 Views)
Hello, I have the same experience, we us a web server also VS2008/.net 3.5 and we will control a device with it.  

error from web server import:

1. The URL does not exist or the WSDL is bad   // comment is correct we have check out with java client

2. Authentication is not correct    //comment we haven't any authentication 

3. Proxy information is not correct // comment no Proxy is localhost !

But with a java applet the server url (http://127.0.01:8111/MacroServer) is it achievable look user XML sheet in the attachment.But also we have checked the LV 8.6 import function with the web server example on the Website xmethods (http://www.xmethods.net/ve2/index.po) those functions are very well.

Please if there any go around for this tell us.

Best regards reiner
0 Kudos
Message 3 of 27
(8,239 Views)
Hello, I have the same experience, we also use a web server VS2008/.net 3.5 and we will control a device with it.  

error from web server import:

1. The URL does not exist or the WSDL is bad   // comment is correct we have check out with java client

2. Authentication is not correct    //comment we haven't any authentication 

3. Proxy information is not correct // comment no Proxy is localhost !

But with a java applet the server url (http://127.0.01:8111/MacroServer) is it achievable look our XML sheet in the attachment.But also we have checked the LV 8.6 import function with the web server example on the Website xmethods (http://www.xmethods.net/ve2/index.po) those functions are very well.

Please if there any go around for this tell us.

Best regards reiner
0 Kudos
Message 4 of 27
(8,238 Views)

 

Hey Reiry,

 

As Eric V had mentioned, do you know where these errors are occurring? Are these errors you are receiving occurring when you are working in the LabVIEW environment? Could you point out or give a link to which example you are working with so we can take a closer look at what you are doing that generated these errors? It is not extremely clear what your issue is, and where it is occurring.

 

Let us know if you have any more information that could make your issue a little clearer.

 

Ben

Applications Engineering

National Instruments

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 5 of 27
(8,202 Views)
Hi Ben,i hope that was clear okay again:I work with Labview 8.6 I uesed the web server import from Labview 8.6 with user URL  

http://127.0.0.1:8111/MacroServer?WSDL

but this Webserver is compiled from
VS2008/.net 3.5. by this tool webserver import Labview 8.6 is not working. Please read user fault description in this follow attachment.

 

0 Kudos
Message 6 of 27
(8,181 Views)

Hey Reiry01,

 

Thanks for the PDF with your error message and Import Web Service window. If you notice in the Import Web Service window the example is ...localhost/DataService.asmx?WSDL. In your entry you don't have a file extension. This may cause some problems if one is required. If you enter your address into a web browser, does it take you to the correct location? Would it be possible to include the entire source code so we could take a look at it and try to recreate you issue.

 

Also, here is a decent tutorial on how to create a Creating a Customer Web Service.

 

Ben

Applications Engineering

National Instruments

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 7 of 27
(8,134 Views)

Hello Ben!

I have similar problem which I mentioned earlier on thread http://forums.ni.com/ni/board/message?board.id=170&thread.id=318834 

In Reiry's problem, he had the URL with missing filename extension. I have given correct filenames, but I face error.

Actually the problem is that I want to keep my IIS directory security with "unchecked" Anonymous Access and "checked" Integrated Windows Authentication.

In this way, I cannot access the computer (or webservices page) just by typing URL in webbrowser (which is good, for security) because it asks for a password. But also I cannot import webservices like this. When I allow anonymous access, I can import the webservices however. But this is not secured.

As you can see in the above mentioned thread, I had this problem in the past, and interestingly I could access (import) the webservices keeping both the security checks. This state remained for some time, and again it's giving error.

 

I want to develop my application after importing the secured webservices, because otherwise, if I import again, I would have to rewrite the whole application again (which is another problem). Because LabVIEW simply will not update the application evenif the webservice names and directory are the same. I don't know why.

 

Any idea for the two problems mentioned above?

 

 

Thanks.

Vaibhav
0 Kudos
Message 8 of 27
(8,085 Views)

Hey Vaibhav,

 

I am not sure why you are able to receiving an error when you are trying to import your webservice in a secured manor. What error message are you receiving when you attempt to do this? You had mentioned that you were able to do this in the past. What has changed between when you had it working and now? Can you provide us with anything so that we can recreate the error?

 

Hope this helps get to the root of the problem.

 

Ben

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 9 of 27
(8,062 Views)
Hi Ben,Okay the extension don´t play any role we have checked out examples with VS .Net 2.0 compiled source code this Labview 8.6 works fine.But until .net.3.5 it Labview didn’t works fine.Here we have a simple example with source code in the attachment:

best regards Reiner

0 Kudos
Message 10 of 27
(8,050 Views)