wood burning stoves 2.0*
The moose likes Web Services and the fly likes passing parameter from GET function to python script in Restful server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "passing parameter from GET function to python script in Restful server" Watch "passing parameter from GET function to python script in Restful server" New topic
Author

passing parameter from GET function to python script in Restful server

Balkishore pandey
Greenhorn

Joined: Apr 19, 2012
Posts: 19
Dear javaranch members,

I have a small problem, in which i am struck for few days now.

Here is my Get Restful code, in this i use Pathparam to pass parameter via the web-browser.


As it can be seen from above code i pass the parameter using PAthParam to the python file Command.py. But when i enter the parameter value (i.e) name1=USB0::0x164E::0x13EC::TW00008555; which is the id of my instrument connected and command=*IDN?, which is SCPI command to get the name of the instrumnet, in the browser window i get an error: Command result NULL, but in reality i should get either 0 or 1.

But am kinda confused if the values i am passing in the browser window is actually passed in or not?

If not what i could do to pass this values? I have attached the image of the error,
Is my code correct? or am i missing something in it?

Any help would be very much appreciated. Thanks a ton in advance.!



[Thumbnail for rest.jpg]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing parameter from GET function to python script in Restful server
 
Similar Threads
Runtime.exec to open + run ping.exe localhost
Java and PSExec
Error printing out from a read in file.
Having more than one Get in Restful webservice.
getRuntime question