[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
David, Try this: object RestApi extends XMLApiHelper { def dispatch: LiftRules.DispatchPF = { case r @ Req("api" :: "user" :: user :: Nil, "", _) => () => modify_user(user, r) } // user methods def modify_user(username: String, req: Req): LiftResponse = { println("Is XML: " + req

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 12:28 PM, Tim Perrett wrote: > > > > > Try: > > > > sdfsdfsdf > > > > > > I'd already tried before, that and still no luck. I've also tried just > getting it to print something out that was passed. Even param1=badger type > post requests, but no luck. > > Thoughts? P

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
> > Try: > > sdfsdfsdf > > I'd already tried before, that and still no luck. I've also tried just getting it to print something out that was passed. Even param1=badger type post requests, but no luck. Thoughts? Cheers, Tim --~--~-~--~~~---~--~~ You recei

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 12:22 PM, Tim Perrett wrote: > > The xml is: > > > > sdfsdfsdf > > > I've tried all sorts, but still no cigar any ideas? Try: sdfsdfsdf > > > Cheers, Tim > > > On Jan 30, 8:17 pm, David Pollak > wrote: > > On Fri, Jan 30, 2009 at 12:12 PM, Tim Perrett > w

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
The xml is: sdfsdfsdf I've tried all sorts, but still no cigar any ideas? Cheers, Tim On Jan 30, 8:17 pm, David Pollak wrote: > On Fri, Jan 30, 2009 at 12:12 PM, Tim Perrett wrote: > > > Guys, > > > Just writing a little rest service, and I want to process the incoming > > XML... T

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 12:12 PM, Tim Perrett wrote: > > Guys, > > Just writing a little rest service, and I want to process the incoming > XML... The Req class has the following methods: > > xml_? : Boolean > xml: Box[Elem] > > Now then, xml_? is returning true, and the content-length header is