LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL Validation Failed (Web Services)

Solved!
Go to solution

I want to create a Web Service-Based Application in LabVIEW and I'm trying to go through the steps in the tutorial http://zone.ni.com/devzone/cda/tut/p/id/4728.

 

I tried the following web services, but I always get the same error.

http://coeservice.en.kku.ac.th:8080/TemperatureConvertor/TemperatureConvertorService?WSDL

http://www.ecubicle.net/iptocountry.asmx?wsdl

 

Error:

WSDL Validation Failed.

Validation failed. The URL is not formatted correctly and should be in the folowing form: http://localhost/test/good.asmx?WSDL

 

I defined a proxy server with authentication. Without doing, that I get another error:

Validation Failed.

Possible Reasons are:

1. The URL does not exist or the WSDL is bad.

2. Authentication is not correct.

3. Proxy information is not correct.

 

So it seems that the proxy information is ok. But the web service I want to access isn't located on the localhost - I want to access a service in the internet. Can somebody give me a hint? I already tried to change some settings of the LabVIEW webserver. But it didn't help anything.

 

David

 

0 Kudos
Message 1 of 8
(6,861 Views)
Solution
Accepted by topic author david_liechti

Hi David,

I tried to second link you gave and worked perfectly (without authentication). The first one gives me the error you mentioned.

Are you sure that that URL exists?

 

Andrea Perin

Application Engineer

NI Germany

Message 2 of 8
(6,839 Views)

Unfortunately I set the solution as solved, but it isn't...

 

Yes, the 1st link doesn't seem to work. But I tried the second one and some others. I always get the above mentioned errors.

0 Kudos
Message 3 of 8
(6,831 Views)

Hi David,

may I know which LabVIEW Version are you using?

I just imported the Web Service through Tools-> Import->WEB Service. Then I copied the second URL and clicked "Next" till the library "iptocountry "´has been created. This was successful with all the links of the tutorial.

I´m using the version 8.6 of LabVIEW.

Best regards.

 

Andrea Perin

Application Engineer

 

Message 4 of 8
(6,827 Views)

Hi Andrea

 

I'm using LabVIEW 8.6 as well.

Did I forget to define some options somewhere? Why is LabVIEW asking for an URL starting with 'http://localhost/'? 

0 Kudos
Message 5 of 8
(6,823 Views)

It sounds like a proxy issue more likely. Do you know if you must go through a proxy to get out to the internet? You can always check your IE Tools->Options->Connections to see if your IT group set one up.

 

Have you tried this link too?

 

http://ws.cdyne.com/NotifyWS/phonenotify.asmx?WSDL

 

Best regards.

 

Andrea Perin

Application Engineer
 

 

 

 

Message 6 of 8
(6,820 Views)

In my browser I don't need to define a proxy (the proxy is detected automatically). But I still tried to define a proxy for the webservice - I got the informations from our IT department.

 

I attached 3 screenshots of the webservice wizard with the error message...

0 Kudos
Message 7 of 8
(6,814 Views)

Is LabVIEW only capable to generate vi's for webservices that are done by .NET? I find that mostly annoying, since all our webservices are done by java and JAX-WS.

 

Or have I missunderstood something. It would be awesome to show non-LV coworkers how easily things can be done, if LV just could generate the vi's for me...

 

Juha

 

0 Kudos
Message 8 of 8
(6,522 Views)