LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot receive posted data from Labview web service

I deployed a web service in client pc, which writes the posted Text data locally (ie. to a local text file). I was able to successfully post messages via LabVIEW Web UI Builder. But when i try to post it using "LabVIEWhttpclient.lvlib:Post.vi", i get 67202 error. Here in "https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/errors/web-services-error-codes.html" the error description is given as No post data available for the given request id. I also tried posting data through html but it doesnt work. 

 

I deployed the same service in different stations and found that it works fine in some station. What am i doing wrong? Why it is not working in some stations? I can access get methods in all stations without any issues. Only in the post data method i am facing the issues.

 

My questions are:

1. Why post method works only in some stations?

2. How if i use LabVIEW web UI builder, it works in all stations?

 

Can anyone help me on this?

Anand kumar SP
Senior Project Engineer
Soliton Technologies Pvt Ltd
0 Kudos
Message 1 of 3
(2,724 Views)

A lot of firewalls/proxies/routers block the less-often used HTTP methods, either for security reasons or ignorance. Check the firewall settings for stations in which the POST command doesnt work. Also, LabVIEW Web UI Builder is firewall friendly, which could be the reason why you could successfully post messages using the LabVIEW WebUI Builder.
For your reference: https://www.ni.com/docs/en-US/bundle/labview/page/designing-user-interfaces.html

 

Message 2 of 3
(2,681 Views)

A lot of firewalls/proxies/routers block the less-often used HTTP methods, either for security reasons or ignorance. Check the firewall settings for stations in which the POST command doesnt work. Also, LabVIEW Web UI Builder is firewall friendly, which could be the reason why you could successfully post messages using the LabVIEW WebUI Builder.
For your reference: https://www.ni.com/docs/en-US/bundle/labview/page/designing-user-interfaces.html

 


 

In firewall enabled stations, i am not able to access even get methods.

For your information, i tried turning off firewall in the station(where i can access only GET methods) with no success. If firewall is the barrier for web services, then how GET methods alone can respond in this case?

 

Anand kumar SP
Senior Project Engineer
Soliton Technologies Pvt Ltd
0 Kudos
Message 3 of 3
(2,668 Views)