Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Web services: current best practices for server side?

by mattk (Pilgrim)
on Jun 01, 2008 at 18:49 UTC ( #689590=note: print w/replies, xml ) Need Help??


in reply to Re^2: Web services: current best practices for server side?
in thread Web services: current best practices for server side?

- 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.

  • Comment on Re^3: Web services: current best practices for server side?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://689590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2023-06-06 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?