LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

internal unkown error when trying to import a web service


Hi!!!

I need help to achive the possiblity to select methods from a web service, I get following errors:

NET Web Service Proxy Tool Report for Web Service:

Monday, May 14, 2007 10:53:44 AM

Web Service URL: http://10.110.30.228/automation/v1.wsdl

The following errors/warnings occurred when generating the local proxy dll and VI wrappers for this web service.


Internal Unknown Error.
Please contact National Instruments for help.
C:\Program Files\National Instruments\LabVIEW 8.2\user.lib\WebService\chassie\.dll


In addition, when opning Labview software I get a message that I do not have permission to read dll file located in directory of webservice.
Hope for quick response.

Best regards A
0 Kudos
Message 1 of 6
(3,731 Views)
Are you using the .NET Web Service Browser ? See these two sites:

http://zone.ni.com/devzone/cda/tut/p/id/4728

http://zone.ni.com/devzone/cda/tut/p/id/4729

Hope it helps,

Wiebe.
0 Kudos
Message 2 of 6
(3,723 Views)
    Hi!!!

These two links are the "only" help to get on the ni support, and I have read them.

This case is about when the method is failing, then what to do ??? Some error handling advice?


I am using Labview 8.2 and .NET

A

0 Kudos
Message 3 of 6
(3,718 Views)
Hi!!



When I try to make a .NET web server browser, by generating a assembly I get the following error:

Generating Assembly...


Error 1172 :Error calling method System.Web.Services.Description.ServiceDescriptionImporter.Import of ObjectId handle:
0xD061128 for obj 0xA82101[System.Web.Services.Description.ServiceDescriptionImporter] in domain [LabVIEW Domain for Run]
and thread 5412, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.InvalidOperationException: Unable to import binding 'ATV_Automation_Binding' from namespace
'http://www.appeartv.com/automation/v1/wsdl'.
    Inner Exception: System.InvalidOperationException: Unable to import operation 'getModuleList'.
    Inner Exception: System.InvalidOperationException: The element 'http://www.appeartv.com/automation/v1:getModuleList' is missing.
) in Import Service Description.vi->Generate Assembly.vi->Web Service Browser.vi



There is probably something wrong with the methods calls, since LW is unable to get the methode list. I would appresiate any suggestion.


Best regards A
0 Kudos
Message 4 of 6
(3,714 Views)
So I guess you are using that...


The link you provided (http://10.110.30.228/automation/v1.wsdl) doesn't seem valid. So it's hard to test what's wrong.


To be honest, I never got anything usefull done with the created .NET dll's.


I'll have to communicate with a WDSL server soon, but it has to work under Linux. So we'll send xml strings wrapped in a SOAP message, and send it with a HTTP POST method. See http://zone.ni.com/devzone/cda/epd/p/id/3153 for information about sending the string with LabVIEW. The strings we'll send will look much like these: http://ws.cdyne.com/ip2geo/ip2geo.asmx?op=GetVersionInfo .


Sorry, not much help on the .NET stuff.


Wiebe.
0 Kudos
Message 5 of 6
(3,709 Views)
Hi!!

I did make a try with http post (see attachment) with the aim to send a soap xml in the http post.
I do get an error when trying to parse the soap message (see message below).
Do you have suggestions for improvement of this VI???

All advice will be appresiated.

A





#####################################################################################################3
HTTP/1.0 200 OK
Date: Tue, 15 May 2007 13:24:20 GMT
Server: Boa/0.94.13
Connection: close
Content-type: text/xml
Cache-Control: no-store
Expires: -1

<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
  <env:Body>
    <env:Fault>
      <env:Code>
        <env:Value>env:Sender</env:Value>
      </env:Code>
      <env:Reason>
        <env:Text xml:lang="en">Failed to parse SOAP message</env:Text>
      </env:Reason>
    </env:Fault>
  </env:Body>
</env:Envelope>
#########################################################################
0 Kudos
Message 6 of 6
(3,698 Views)