Forum: Ruby on Rails CDATA as api_method expected parameter

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Casey Liscum (Guest)
on 2006-06-13 21:57
(Received via mailing list)
I'd like to know if there is any way to accept a CDATA block as a
parameter to an ActionWebService API method. I'd like to have
something like this,

class MyAPI < ActionWebService::API::Base
  api_method :test, :expects => [:cdata]

The client would pass "<![CDATA[ ...blah blah... ]]>" as the parameter
to the method, test.

Perhaps I need to specify :string as the expected type and somehow
tell the parsing library to interpret the string as CDATA?
This topic is locked and can not be replied to.