LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a webservice on a local network

Dear all,

 

I'm trying to import a webservice that is running on a computer on our local network, and i always get the "validation failed" msg  whether i pass the IP adress or the computer name as url.

 

I did some tries:

 

- The webservice works perfectly fine with a c# client.

- It works if i run the webservice on my own computer and call it from localhost.

 

I don't really understand this issue. 

Does anyone has an idea ?

 

BR

0 Kudos
Message 1 of 6
(3,254 Views)

the obvious "did-you-turn-it-off-and-on-again"-question:

have you checked, that your service listens on 0.0.0.0 or only on 127.0.0.1?

(i mean can you use the service from any other machine?)

 

thats what came to mind.

 

good luck and happy bug-hunting


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 6
(3,213 Views)

 

Thank you for your response,

 

Well, I went a little further and i finally found a way to import the webservice by using this "?singleWsdl" instead of "?Wsdl" at the end of the url.

 

But still, when i try to use it, it keeps trying to talk to this IP 127.0.0.1 (localhost) instead of the IP of the computer that is running the webservice ???

 

 

0 Kudos
Message 3 of 6
(3,208 Views)

unfortunately i have no experience (yet) with calling webservices from labview.

 

id suggest to be more explicit and show your code,

that might enable the smart people (not me) to see wether this is a coding error.

 

other than that, try to find a simple webservice (http) and make sure

that for given adress you get data from that adress.

maybe your hosts-file/firewall is redirecting the ip/domain to local.

 

so long

j


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 4 of 6
(3,200 Views)

I tried with this one:

 

http://www.webservicex.net/globalweather.asmx?WSDL

 

it works fine, no issues..

0 Kudos
Message 5 of 6
(3,188 Views)

this worked for me, the indicator showed the same xml stuff my browser showed

 

[edit]

dont use to small timeout values,

3000 threw a timeout error

[/edit]


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 6 of 6
(3,183 Views)