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 134161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:33:49+00:00 2026-05-11T06:33:49+00:00

I have a Flex application that needs to grab reporting data from a JasperReports

  • 0

I have a Flex application that needs to grab reporting data from a JasperReports Server, through the JasperReports Server Web Services API. Flex Builder 3 does a nice job of generating the web services consumption code, with one exception. If you ask for a directory list or an accounting of report parameters, JR Server returns plain XML in the SOAP wrapper and Flex parses it just fine. However, if you ask for a report itself, whether in XML or PDF format, it comes back as a multipart MIME message with some descriptive XML as the first part and the report — even if the report itself is XML — as the second part. Flex doesn’t know what to do with multipart messages and just complains about invalid XML.

Here’s a sample of the response. My current strategy is do some string parsing and manage the bits individually. But does Flex have any built-in methods to handle this? (I’ve been unable to find any.)

------=_Part_2_27050467.1235668849951 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: <0F082AF1DAF83B3077B1867B4FC8AAA6>  <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <soapenv:Body>     <ns1:runReportResponse soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:ns1='http://axis2.ws.jasperserver.jaspersoft.com'>         <runReportReturn xsi:type='xsd:string'>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;operationResult version=&quot;2.0.1&quot;&gt;\n\t&lt;returnCode&gt;&lt;![CDATA[0]]&gt;&lt;/returnCode&gt;\n&lt;/operationResult&gt;\n         </runReportReturn>     </ns1:runReportResponse> </soapenv:Body> </soapenv:Envelope> ------=_Part_2_27050467.1235668849951 Content-Type: application/pdf Content-Transfer-Encoding: binary Content-Id: <report>  %PDF-1.4\n%âãÏÓ\n1 0 obj <</Filter/FlateDecode/Length 29>>stream\nx+är\ná26S°00S\bIár\rá\näâ 
  • 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. 2026-05-11T06:33:50+00:00Added an answer on May 11, 2026 at 6:33 am

    What I am going to say is only what I believe:I may be wrong since I haven’t tried this out.

    I don’t think you have much choice. Flex HTTPService (or whatever you are using) can offer only so many (/or so few) data formats. See here. For any custom stream you will have to retrieve it as an object and pass it through your own decoder. It appears that Flex does not do any parsing of the MIME message but depends on (which is also how browsers behave typically) the server to identify the content that is being transmitted. If the server only sends a text file but changes the content type to say audio/mpeg I think you will have the same problem. Even when Flex does know hot to handle text.

    If you ever can get around to doing this experiment (with text files as MIME type video or whatever fancies you) do let us know.

    Meanwhile, you can take a look at SerializationFilter and go on and add a new MIME type for PDF!

    Hopefully, life will be a little easy with Flex 4 and the HTTPMultiService.

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

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Windows.MessageBox is the WinAPI MessageBox, Application.MessageBox is a wrapper around… May 11, 2026 at 11:47 am
  • added an answer You ask, 'How can we explain the importance of Usability… May 11, 2026 at 11:47 am
  • added an answer I just started researching this myself and it looks like… May 11, 2026 at 11:47 am

Related Questions

I have a flex application that needs the ability to generate and execute JavaScript.
I have a Flex application that calls a function which searches a large document
I have a Flex application that seems larger than it should be. There is
I have a Canvas in a Flex application which has items inside it that
I have a Flex application where I'm using a Canvas to contain several other
I would like to show some hidden text in a Flex application and have
I have a Flex swf hosted at http://www.a.com/a.swf . I have a flash code
I have a Flex ComboBox that gets populated by a dataprovider all is well...
I have a Flex App that allows you to dynamically build an animation. It
I have a requirement to be able to provide a flex component in English

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.