06-15-2009 05:48 AM
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
Solved! Go to Solution.
06-16-2009 03:28 AM
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
06-16-2009 03:34 AM
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.
06-16-2009 04:13 AM
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
06-16-2009 04:19 AM
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/'?
06-16-2009 04:27 AM
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
06-16-2009 05:47 AM
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...
12-08-2009 12:21 PM
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