Hi list,
the BaseX [1] REST interface requires me to send POST requests with a content- type of "application/query+xml". Is it possible to send such requests with Orbeon? As far as I know, the only way to send POST requests is to use an XForms submission, which seems to force the content-type to "application/xml" - at least, if I change the serialize attribute to the other content type, no serialization is performed at all. Kind regards, Ralf [1] http://basex.org/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi again,
I wrote a patch which allows me to send the requests I need - however, I am not sure if this is really the desired way to do that. You can find it attached. Kind regards, Ralf On Wednesday 21 September 2011 18:58:59 Ralf Jung wrote: > Hi list, > > the BaseX [1] REST interface requires me to send POST requests with a > content- type of "application/query+xml". Is it possible to send such > requests with Orbeon? As far as I know, the only way to send POST requests > is to use an XForms submission, which seems to force the content-type to > "application/xml" - at least, if I change the serialize attribute to the > other content type, no serialization is performed at all. > > Kind regards, > Ralf > > [1] http://basex.org/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws 0001-allow-serialization-application-query-xml-in-xforms-.patch (2K) Download Attachment |
Hi list,
the issue was in the mean time solved on the other side - BaseX no longer requires a custom content-type for POSTed queries. Kind regards, Ralf On Wednesday 21 September 2011 20:03:01 Ralf Jung wrote: > Hi again, > > I wrote a patch which allows me to send the requests I need - however, I am > not sure if this is really the desired way to do that. > You can find it attached. > > Kind regards, > Ralf > > On Wednesday 21 September 2011 18:58:59 Ralf Jung wrote: > > Hi list, > > > > the BaseX [1] REST interface requires me to send POST requests with a > > content- type of "application/query+xml". Is it possible to send such > > requests with Orbeon? As far as I know, the only way to send POST > > requests is to use an XForms submission, which seems to force the > > content-type to "application/xml" - at least, if I change the serialize > > attribute to the other content type, no serialization is performed at > > all. > > > > Kind regards, > > Ralf > > > > [1] http://basex.org/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |