SID-02118: More of a Variable Question, actually...
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
5.20.2 |
| Category: |
XmlRpcPlugin |
Server OS: |
Windows 7 |
Last update: |
10 years ago |
OK, so we're looking at TWiki as a quick front-end for distributed organizations to collaborate and interface with a lab environment. One of the key pieces we want to do is hit a completely-unrelated server to gather statistical information with some drill-down capabilities. I've been messing around with the
XmlRpc plugin for a few days and had to hack it a bit to get it to work on Windows (Sys::SigAction not supported on Windows); as of now, I can call out to the service, handle all of the
XmlRpc-compliant responses and assign the response to a variable which I can expand and display on the main page of my dev web. My question is: now what? I can't figure out how to parse the response! It seems to treat whatever comes back as a string. The really weird part: I tried the
GetSetPlugin to try handling things if it receives a JSON string -- not only does
that not work, the line of code seems to have disappeared whenever I edit the page to try something different.
--
Joe Bagodonuts - 2015-10-30
Discussion and Answer
If you get back a JSON object you likely want to parse it to make it presentable to the users. You can use the
SetGetPlugin for that. Did you install the latest version of the plugin?
--
Peter Thoeny - 2015-10-30
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.