responding to PUT (and other) methods.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

responding to PUT (and other) methods.

Daniel E. Renfer
Hello,

I'm trying to get Orbeon Forms to process requests PUT methods as well
as possibly DELETE and others.

I have discovered how to read the method used using the oxf:request
processor, but I was getting "Unsupported HTTP method: PUT" from
OPSServletDelegate.

I searched through the source and found that it appears that Forms
loads a comma-separated list of acceptable methods. (btw, this is no
where in the documentation)

I loaded into my properties.xml this line:
<property
        as="xs:string"
        name="oxf.http.accept-methods"
        value="get,post,head,put,delete"/>

After restarting the server, I am still getting the same error. Is
there something else I've missed? Has anyone else gotten Orbeon Forms
working with any methods other than the standard GET, POST, and HEAD?
I would really like to eventually use Forms for running an AtomPP
server, but at the moment this is simply for updating entries by
PUTting POX data to a URL.

Any help would be greatly appreciated.

--
Daniel E. Renfer
http://kronkltd.net/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: responding to PUT (and other) methods.

Erik Bruchez
Administrator
Daniel,

You should put this in web.xml, not in properties.xml.

Try this in the configuration of ops-main-servlet:

<init-param>
   <param-name>oxf.http.accept-methods</param-name>
   <param-value>get,post,head,put,delete</param-value>
</init-param>

-Erik

Daniel E. Renfer wrote:

> Hello,
>
> I'm trying to get Orbeon Forms to process requests PUT methods as well
> as possibly DELETE and others.
>
> I have discovered how to read the method used using the oxf:request
> processor, but I was getting "Unsupported HTTP method: PUT" from
> OPSServletDelegate.
>
> I searched through the source and found that it appears that Forms
> loads a comma-separated list of acceptable methods. (btw, this is no
> where in the documentation)
>
> I loaded into my properties.xml this line:
> <property
>        as="xs:string"
>        name="oxf.http.accept-methods"
>        value="get,post,head,put,delete"/>
>
> After restarting the server, I am still getting the same error. Is
> there something else I've missed? Has anyone else gotten Orbeon Forms
> working with any methods other than the standard GET, POST, and HEAD?
> I would really like to eventually use Forms for running an AtomPP
> server, but at the moment this is simply for updating entries by
> PUTting POX data to a URL.
>
> Any help would be greatly appreciated.
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws