If anyone is interested I came across this

<cffunction name="getJSONRequest" returnType="string" >

<cfscript>

var size=GetPageContext().getRequest().getInputStream().available();

var emptyByteArray = createObject("java", "java.io.ByteArrayOutputStream").
init().toByteArray();

var byteClass = createObject("java", "java.lang.Byte").TYPE;

var byteArray = createObject("java","java.lang.reflect.Array").newInstance(
byteClass, size);

GetPageContext().getRequest().getInputStream().readLine(byteArray, 0, size);

createObject('java', 'java.lang.System').out.println("{GetJSONRequest}
ByteArray.ToString=" &ToString( byteArray ) );

return ToString( byteArray );

</cfscript>

</cffunction>

<cfset jsonstring = getJSONRequest()>
from here
http://www.mikenimer.com/index.cfm/2006/10/2/DOJOJSON-requests-in-ColdFusion
but
still not working



On 3/30/07, Andrew Scott <[EMAIL PROTECTED]> wrote:
>
> Christopher,
>
> Tried that already and then I decided to do it again, sure enough it shows
> as empty.
>
>
>
> On 3/30/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
> >
> > Andrew,
> >
> > If it's in the FF Post Data, it should be in the CF Form scope. Try
> > dumping form and see if that doesn't help.
> >
> > Chris
> >
> > Andrew Scott wrote:
> > > Christopher,
> > >
> > > I am already using my own framework and its better than jQuery as far
> > as I
> > > am concerned, but even so thats not going to solve my JSON-RPC problem
> > when
> > > a http request is application.json-rpc.
> > >
> > >
> > >
> > > On 3/30/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
> > >> Andrew,
> > >>
> > >> Are you using a framework to do your ajax calls? If not, I highly
> > >> recommend jQuery + AjaxCFC. jQuery is a tremendous little library,
> > and
> > >> now that Rob Gonda has branched AjaxCFC out to be a plug-in for
> > jQuery,
> > >> it's a dynamite combo for an CF'er.
> > >>
> > >> jQuery can be found here:
> > >> http://jquery.com
> > >>
> > >> AjaxCFC can be found here:
> > >> http://RIAForge.org <http://riaforge.org/>
> > >>
> > >> Hope this helps,
> > >> Chris
> > >>
> > >>
> > >> Andrew Scott wrote:
> > >>> Anyone know how to get the HTTP Request Content?
> > >>>
> > >>> I have a a service that is doing a HTTP Post, but it isn't in the
> > url
> > >> and
> > >>> its not in the URL. The content type seems to be
> > application/json-rpc .
> > >> I am
> > >>> sure that getHTTPRequestData() would work but when I dump that I see
> > >> that
> > >>> getHTTPRequestData().content is a byteArray.
> > >>>
> > >>> So anyone know what I need to do?
> > >>>
> > >>>
> > >> --
> > >> http://cjordan.info
> > >>
> > >>
> > >
> > >
> >
> > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274118
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to