11-29-2012 03:07 AM
In the past I have successfully created a lvlib, to get Information from our ERP system (Dynamics NAV) via web service. I have used the LabVIEW import wizard for web services. Now we have exported another page of Dynamics NAV as a web service and I want to write a LabVIEW-Tool for this. But with a valid URL I get always an error
Validation failed. Possible Reasons are:
1. The URL does not exist or the WSDL is bad
2. Authentification is not OK
3. Proxy information is not correct.
I can communicate with a c# application. So, the reason must be in LabVIEW.
I have checked the import wizard again with the URL of my first first lvlib and the wizard gives the same error, but my lvlib is working well.
Regards
Dirk
12-06-2012 05:08 AM
Hello Dirk,
Which LabVIEW verison are you using? Depending on it I can propose you several solutions:
Have you take a look at this link? LabVIEW 2010: http://digital.ni.com/public.nsf/websearch/54DA5F6466B622A5862577BB0048E221?OpenDocument
I have this vi to fix your issue, but that was tested for LabVIEW 2010, you can try it with the version you are working with and keep me updated. I will send you a new file if needed.
Replace the attached VI file to have the fix. <LabVIEW 20xx>\vi.lib\Platform\WebService\Main Panel\Pages\Input WSDL\Main.vi
I hope this will solve your problem. Keep me posted!
12-06-2012 05:49 AM
Hello Carmen,
I have replaced the main.vi, but still it is not working. I am using LabVIEW 2011 SP1 and I have tested it with 2012.
Regards
Dirk
12-06-2012 09:58 AM
I forgot to attach a dll. you can find it in this .zip
you have to copy both files in the following directories:
Main.VI» C:\Program Files......\LabVIEW 2010\vi.lib\Platform\WebService\Main Panel\Pages\Input WSDL
WebServiceUtil.dll»C:\Program Files.....\LabVIEW 2010\resource
In your case you have to copy them in the folder LabVIEW 2011. This workaround was made by our developpers for LabVIEW 2010 but I can't think of a reason why it shouldn't work with LabVIEW 2011. Keep me updated and if this is not working I will investigate further.
cheers!
12-06-2012 10:35 AM
Hi Carmen,
the behavior is still the same.
cheers
Dirk
12-11-2012 02:43 AM
Can you try the workaround that I sent you with LabVIEW 2010?
12-11-2012 06:59 AM
Hi Carmen, also with LabVIEW 2010 it does not work. But I have tried a different web service and this works with both 2010 and 2011. The cause seems to be the Web service.
Cheers
Dirk
12-11-2012 07:07 AM
Good to know that your web service is working now.
What was exactly the change you made to make it work?
Cheers!
12-11-2012 07:41 AM
Hi Carmen,
no, the web service for our ERP system is still not working with the import tool.
I have just verified the import tool with another web service that is available in the internet.
Regards
Dirk
12-11-2012 09:55 AM
Ok. Just let me know if there is something else that I can do for you.
Regards