I'm adding an issue here. Should I open another discussion? How can I access the FORM scope inside the remote method? the scope FORM seems to be empty!! It's suppose to allow only Rest with GET? what about POST, DELETE and PUT?
On 31 mar, 16:53, David G Ortega <[email protected]> wrote: > 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=plainwill > return text with content-type: > text/htmlhttp://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=wddxwill > return text with content-type: > text/htmlhttp://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=jsonwill > return json with content-type: > text/htmlhttp://myhost.com/rpc/mycfc.cfc?method=run&__BDRETURNFORMAT=jsonp&cal... > 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 manualhttp://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
