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

The Archive Base Latest Questions

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

Hi I am developing an application with Flex for the GUI and Restlet for

  • 0

Hi I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it?
I tried initialising the received Representation object to a DomRepresentation, but thats not working. If I put the received Representation object into a Form object, then getFirstValue is returning that XML as a string!


I noticed that the contentType of the HTTPService was application/www-form-encoded so I set it to application/xml and its not helping either.


I use restlet 2.0m6 and here is the code snippet that I use –

@Post

public Representation process(Representation entity)

{

try

{

DomRepresentation dom = new DomRepresentation(entity);

Document d = dom.getDocument();

.

.

}
catch(Exception e)

{
e.printStackTrace();
}

and it throws a Null Pointer exception at the dom.getDocument() line. Which means no data actually arrived.

And my flex bit looks like this –
var service : HTTPService = new HTTPService();
service.method=”POST”;
service.contentType=”application/xml”
service.url=url;
var token :AsyncToken = service.send(params);

where params is an XML object.

  • 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-13T16:43:46+00:00Added an answer on May 13, 2026 at 4:43 pm

    Here is the answer – http://vatsalad.wordpress.com/2010/02/08/how-to-handle-xml-received-as-part-of-a-post-request-in-restlet/

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

Sidebar

Related Questions

I'm developing a mobile application in Flex 4.6, and I have the autoOrient property
im developing a simple Mxml application using flex 3. I have used simple text
I have a strange issue with Flex 4.6 and Flash Builder 4.6 While developing
I am currently developing an application in Adobe Flex and i have to use
I'm developing a Flex web application for desktop browsers. I have no experience with
I am developing a desktop application in flex wherein i have 2 screen(i.e is
Hi I am developing my application in flex and JSP, so when I am
I'm developing an application using Flas Builder / Flex for Adobe Air. This application
I am developing application which is having Gujarati font in text-view but my problem
I'm developing application using backbone.js & jquery. I have following code in model: runReport:

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.