Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
- Apache 2.0 will be fine.
- Supporting different encoding methods is really easy - just check the client's Accept: header (e.g. text/xml or text/json), or a GET/POST parameter (/path/to/app?format=json), or whatever, and pass your data structure to the appropriate module for serialisation (e.g. JSON or XML::Simple) before returning it to the client. - There's java code on json.org that will do it, otherwise XML::Simple is easy to use on the Perl side. In reply to Re^3: Web services: current best practices for server side?
by mattk
|
|