Hi guys,
I have done a restful service with openDB but It seem to me that the
response type of the service is incorrect. According to the example in
the docs
<cfcomponent>
<!--- assume this is saved @ /rpc/mycfc.cfc --->
<cffunction name="run" access="remote" returntype="string">
<cfreturn "from a remote">
</cffunction>
</cfcomponent>
http://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=plain will
return text with content-type: text/html
http://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=wddx will
return text with content-type: text/html
http://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=json will
return json with content-type: text/html
http://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=jsonp&callback=myCall
will return jsonp with content-type: text/html
I think that the content types should be changed into text/xml,
application/json and application/javascript to be much more compilant
I also found a bug. If you specify returntype='jsonp' by default the
call breaks.
OpenBD Bad File Exception
Need some help? Visit our manual http://openbd.org/manual/
The page you were executing caused an internal server error
Type Template
Message Invalid Attribute
Tag CFFUNCTION
Position Line=96; Column=82
Detail Illegal Attribute Value: The RETURNFORMAT attribute can only
have one of the following values: JSON, WDDX, PLAIN
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en