Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3844104
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:02:13+00:00 2026-05-19T16:02:13+00:00

I am calling Python script from flex using HTTP service. How can I send

  • 0

I am calling Python script from flex using HTTP service. How can I send back some values from python to flex app?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:02:14+00:00Added an answer on May 19, 2026 at 4:02 pm

    Using HTTPService, many people will send back XML. Sometimes they’ll send back plain text. In your result handler, you should get the text returned from the service call as event.result.

    Your result handler may look something like this, if you were to return XML:

    public function onHTTPServiceResult(event:ResultEvent):void{
     var myResult : XML = event.result as XML
     // process XML in some manner
    }
    

    If you were to return plain text, it may look something like this:

    public function onHTTPServiceResult(event:ResultEvent):void{
     var myResult : String = event.result as String
     // do something with the String value here
    }
    

    The only time I’ve used the latter approach is if the return value is really simple, like a Boolean value (true or false). The only time I use XML is when I have no control over what the remote service returns. If at all possible I try to use an AMF Gateway; which will automatically translate server side objects into ActionScript objects.

    I can assume that you know how to create a service in Python to output XML or text data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling a WSDL web service from Python using SOAPpy . The call
I'm calling a python script from the below one using subprocess. From the command
I am calling a python script from PHP. The python program has to return
After asking organising my Python project and then calling from a parent file in
When calling CoInitializeEx , you can specify the following values for dwCoInit : typedef
I would like to call a Python script from within a Bash while loop.
I am calling a python script with the following command line: myscript.py --myopt=[(5.,5.),(-5.,-5.)] The
I'm writing a python script that uses subprocess.Popen to execute two programs (from compiled
I have a Python CGI script from which I am trying to call a
Obviously this shell script is calling itself as a Python script: #!/bin/sh ## repo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.