Here’s my ws_create() function:
function ws_create(content)
{
//application.output("param1:" + content);
return true;
}
It doesn’t do much!
What I’m sending in the HTTP BODY is the string:
{“parm1”: “hello”,“parm2”: “world”}
However it just returns a HTTP 405 all the time.
Seems I needed to return null or something other than true!
Gah.
Alan,
You get the 405 Method Not Allowed when Servoy cannot find the ws_xxx method in your form.
Rob
Rob
Thanks …
Not in this case though - it was literally just returning ‘true’ that caused the problem. If I sent in a HTTP body that it didn’t recognise as XML or JSON, it would give the expected ‘unsupported media type’ error (or whatever the wording is), so it was definitely finding ws_create().