From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web service

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

 

0 Kudos
Message 1 of 3
(1,686 Views)

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.


GCentral
0 Kudos
Message 2 of 3
(1,654 Views)

Thank you for your answer. 

0 Kudos
Message 3 of 3
(1,550 Views)