ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import Web Service not working

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

0 Kudos
Message 1 of 10
(4,005 Views)

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!

0 Kudos
Message 2 of 10
(3,954 Views)

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

0 Kudos
Message 3 of 10
(3,945 Views)

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! 

0 Kudos
Message 4 of 10
(3,933 Views)

Hi Carmen,

 

the behavior is still the same.

 

cheers

Dirk

0 Kudos
Message 5 of 10
(3,929 Views)

Can you try the workaround that I sent you with LabVIEW 2010?

0 Kudos
Message 6 of 10
(3,914 Views)

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

0 Kudos
Message 7 of 10
(3,900 Views)

Good to know that your web service is working now.

What was exactly the change you made to make it work?

 

Cheers!

0 Kudos
Message 8 of 10
(3,898 Views)

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

0 Kudos
Message 9 of 10
(3,895 Views)

Ok. Just let me know if there is something else that I can do for you.

 

Regards

0 Kudos
Message 10 of 10
(3,891 Views)