01-10-2012 09:30 AM
Hi
I'm trying to import the Dektec SpRcApi web service to remote control Dektec StreamXpress.
(this will the be first time I've done anything with WSDL/SOAP/Web services so I may get terminology wrong)
From LabVIEW I've used
Tools > Import > Web Services
then I use the URL "http://www.dektec.com/Products/Apps/DTC-300/SpRc.wsdl" and ignore the Authentication and Proxy Server settings.
On the next screen I get the Project Library (SpRc.lvlib) and destination directory (c:\dektec)
Next I "select all" the methods to import, and next >
Then I get the summary page as shown:
After LabVIEW 'does it's stuff' I get the status report as attached (in zip). There are no files in the output directory, it is not read only and it's the first thing I've done since opening LabVIEW???
The thing is that the files are generated (as shown in zip file)
Normally I'd just ignore the error file and carry on but I can't seem to get a connection to StreamXpress. I get error code 1172???
Does anyone have an idea what's wrong or working example of something using a Web Service Import?
Oh I'm using LabVIEW 10 with Windows XP SP3.
01-13-2012 07:26 AM - edited 01-13-2012 07:28 AM
Hi Rachel,
I have not had much experience using web services but will try and help you with this issue.
Are you sure that the web service you are trying to connected to is compatible with LabVIEW. From your description it sounds as if you followed the recommended steps as described within LabVIEW help.
http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/importwebservice/
Would you be able to attach a screenshot of the error message you are receiving so I can try and see what the error message is referring too. Who created the web service as they may know what the error message is referring to. The error code 1472 refers to the Microsoft .net assembly. Please have a look at the resources below that relate to the error.
Error 1172 .NET Exception Converting .NET DateTime to LabVIEW Time Stamp - National Instruments
LabVIEW and .NET Exceptions - National Instruments
How LabVIEW Locates .NET Assemblies - National Instruments
Hopefully some of the information within these articles will help find the source of your error.
Regards,
01-16-2012 04:17 AM
Hi
The instructions in the API documentation (attached) specifially mention LabVIEW although all the examples are in C#.
The error message I get is also attached.
Even though I get this error message, the LabVIEW files are created?
What I can't figure out is how/where/ etc I'd include the IP address of the PC where the device is installed?
Thanks for any help you may be able to give me.
Rachael
"Trying to fix wind to the wall with a jelly nail!"
01-16-2012 04:30 AM
I forgot the attachments!
01-26-2012 05:04 AM - edited 01-26-2012 05:05 AM
Hi Rachel,
Sorry for the late reply. I have been out of the office the past few days.
It seems like the issue could be with the XML File we are trying to use. I have been able to replicate your error here and get the same message when I try to produce all the files at once. However when I selected a single file at a time it produced without an error message.
Other things to check include ensuring you have .NET framework 2 installed. As this is required for the web service wizard.
If you are still having an issue could you let me know what individual file is causing it.
Many thanks,