Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 08:24
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flex, Air, FlashBuilder, Catalyst (Moderators: ..:: Mazhar Hasan ::.., kofi addaquay)
| | |-+  HTTPService Flex and Json data
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: HTTPService Flex and Json data  (Read 6452 times)
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« on: 08/08/07, 05:57 »

Just for the records ...

Flex use HTTPService as the standard component to access back-end stuff. On a HTTPService you can set the content-type only as url-encoded data or XML (whatever other thing you add not only will trigger an error, but will be ignored, XML by default)
So if for whatever reason your back-end service check the content-type before to proccess the request (in my case, is looking for text/json) you should use your own way. In my case, I wrap the Json call into an XML object, that allow to set headers (URLRequest allows also) In any case, Darron Shall Json library works fine

Jorge
Logged

kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #1 on: 05/19/10, 15:28 »

Hi Jorge, i am faced with this problem. i know it was a while back that you posted. but can you further explain this method?...or perhaps you found another way?
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #2 on: 05/21/10, 06:12 »

Hi Kofi

This was a couple of years ago and really I don't remember the details. I was playing around requestHeaders method to pass the proper data type in the URLRequest trough an array of URLRequestHeader. Also since I was using also AS2 at the time, I recall that there was a setHeader method in the XML class

Jorge
Logged

kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #3 on: 05/21/10, 10:22 »

ok..no problem Jorge. i will find a way. just thought i asked you first. funny..i was googling for results..thats when i saw your post:)
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #4 on: 05/21/10, 10:24 »

Post when you find something always could be helpful to others ... will try to be more verbose next time, even for myself Smiley

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything