03-27-2020 09:01 AM
I'm currently developing program using Web services. My URL looks something like this:
http://127.0.0.1:8001/Webservices/?unit1={value}&unit2={value}
Through this URL i get out a correct answer. As one of the outputs my program needs to make different link where he will show this answer with more understandable URL.
URL needs to look like this:
http://127.0.0.1:8001/unit1={value}/unit2={value}
Does anyone have any idea how to do it using Web services because i tried everything. Thanks for help in advance
03-27-2020 10:49 AM
I suspect this might not be possible.
In the first case (blah/?unit1={A}&unit2={B}) you're accessing a static page (.../blah) with two arguments.
In the second case you want to produce a new page dynamically using run-time specified values.
It sounds like (and correct me if I misunderstood) you'd like the page localhost/unit1={A}/unit2={B} to be available on demand, before any other request is made.
This would mean any values of A and B must be allowed - which isn't supported by the system.
You'd need something that detects requests for a URL, then creates something to serve that page without processing arguments (only the URL). As far as I know, this isn't possible with LabVIEW Web Services.
04-16-2020 03:14 AM
Thank you for your answer.