Simple XMLRPC?

    Feb 17 2011 | 2:15 am
    Hi everybody,
    Hopefully someone can at least point me in the right direction - as Google turns up nothing.
    I'm looking to implement into a patch, a driver of sorts I wrote that gets data off a device, does some post-processing to it and creates a Simple XMLRPC server, in which it serves as a connection point. It was a cinch to implement in Processing as their is a library available for doing that.
    For Max though - I'm kinda unsure that I can even do it.
    Again, I'm looking to get data off a SimpleXMLRPC server. Is there any patches for that effect - or is there a way to do raw HTTP processing in Max?

    • Feb 17 2011 | 2:41 am
      yolk- Simplest way I can think of would be to use java in mxj, the max5 java interpreter: if you want a simple syntax for most of these xml web/net requests and raw http request response control, check out the simple "groovy" ( syntax, and use nick cassiel's groovy shell object. Or check out the base java classes and code it your self. ymmv, g'luck, std disclaimer, etc.
      cfb aka j2k
    • Feb 17 2011 | 3:33 pm
      I don't know the status of Groovy as a project - the mailing list has been dead for years - so I'd suggest Jython (Python in Java) which lets you script Java in a clean and convenient manner:
    • Feb 17 2011 | 6:00 pm
      ...having said that, a look at the Groovy web site suggests it's still being developed.
      My main problem with Groovy is that the syntax seems arbitrary and rather fragile. Python, although much less Java-like, is cleaner and more consistent.
    • Feb 17 2011 | 11:09 pm
      Thanks for the tips. However, I was talking to my professor yesterday. He mentioned something that didn't even occur to me, which is OSC.
      I feel it would give me less headaches to work with OSC than to try making Raw http requests and such. It should be pretty trivial to take my python code and have it send OSC messages with pyliblo instead.
      I'll keep you all updated!