On Nov 7, 4:10 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> First of all, are you using any XMLRPC or XML helpers?  I've never
> used them so that could be causing the problem

No.

> Secondly, the correct call to the action you specified above should be:
>
> /things/xmlrpc_doSomething
>
> Because you have an action called 'xmlrpc_doSomething' as part of the
> 'things' controller.  My appologies if I'm misunderstanding things.

Well, this is exactly the kind of confusion I'm having. I've been
following what it says in the configuration docs (the only mention I've
found of the built-in web services stuff). As far as I can see, if you
have WS enabled in core, then if you call /xmlrpc/things/doSomething it
will call xmlrpc_doSomething in the Thing controller, much as admin/x/y
will (apparently) call admin_y in controller x if the admin routing is
enabled. I was also under the impression that /doSomething may be
mapped to do_something() according to context, but from other posts in
here, that's wrong.

> According to what you've posted above, if you call
> /things/xmlrpc_doSomething in a browser we should see 'blah' outputted
> in the browser window.

Well, apart from the naming issues I just mentioned, yes. I just want
to make sure that the routing is right before trying to deal with the
XML side of things.

> Other than this, I suggest that if you haven't already done so, set
> DEBUG to 1 in order to prevent Cake from caching anything.

[EMAIL PROTECTED] mentions in the notes for his RPC plugin linked above
that you should make sure debug is off as otherwise it can add
additional data that will trash the XML.

> It can't be this hard. :)

Well, quite! A web services page in the manual would go a long way.

Marcus


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to