REST Accessing Request XML Body

View: New views
3 Messages — Rating Filter:   Alert me  

REST Accessing Request XML Body

by scottwarren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi, I am a newbie using Grails 1.0.2

 

I am trying to use Grails + XStream to create a REST data server (ie Pull the data from the Database, generate XML for the front-end)

 

Can someone tell me what configuration I need to access the Body of a POST request?

 

I have tried request.reader.text get but I get an exception because the reader  has been read.

 

I need the String of the body so I can pass this to XStream to parse the XML.

 

Thanks in advance.

 

Regards

 

Scott Warren

Ocom Software

... Exceeding Quality....

web        | ocom.com.au

 


Re: REST Accessing Request XML Body

by Siegfried Puchbauer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try removing the xml entry in grails.mime.types in your Config.groovy

hth

Cheers, Sigi

On Fri, May 16, 2008 at 2:32 AM, Scott Warren <scottwarren@...> wrote:

Hi, I am a newbie using Grails 1.0.2

 

I am trying to use Grails + XStream to create a REST data server (ie Pull the data from the Database, generate XML for the front-end)

 

Can someone tell me what configuration I need to access the Body of a POST request?

 

I have tried request.reader.text get but I get an exception because the reader  has been read.

 

I need the String of the body so I can pass this to XStream to parse the XML.

 

Thanks in advance.

 

Regards

 

Scott Warren

Ocom Software

... Exceeding Quality....

web        | ocom.com.au

 




--
_______________________
Siegfried Puchbauer
http://siegfried.puchbauer.com/

RE: REST Accessing Request XML Body

by scottwarren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks! I will give that a try.

 

Regards

 

Scott Warren

Ocom Software

... Exceeding Quality....

 

web        | ocom.com.au

 

From: Siegfried Puchbauer [mailto:siegfried.puchbauer@...]
Sent: Friday, 16 May 2008 3:51 PM
To: user@...
Subject: Re: [grails-user] REST Accessing Request XML Body

 

Try removing the xml entry in grails.mime.types in your Config.groovy

hth

Cheers, Sigi

On Fri, May 16, 2008 at 2:32 AM, Scott Warren <scottwarren@...> wrote:

Hi, I am a newbie using Grails 1.0.2

 

I am trying to use Grails + XStream to create a REST data server (ie Pull the data from the Database, generate XML for the front-end)

 

Can someone tell me what configuration I need to access the Body of a POST request?

 

I have tried request.reader.text get but I get an exception because the reader  has been read.

 

I need the String of the body so I can pass this to XStream to parse the XML.

 

Thanks in advance.

 

Regards

 

Scott Warren

Ocom Software

... Exceeding Quality....

web        | ocom.com.au

 




--
_______________________
Siegfried Puchbauer
http://siegfried.puchbauer.com/