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
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
>
> 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
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
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
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