Greetings, I am attempting to communicate with a REST interface for a
fedora repository and am experiencing difficulty in one area. According to the
documentation [https://wiki.duraspace.org/display/FEDORA35/REST+API#RESTAPI-ingest],
you can POST with no request content which will then create a blank object in
the repository. The following curl commons works just fine: curl -u fedoraAdmin:fedoraAdmin
-X POST http://localhost:8080/fedora/objects/new?namespace=test My submission in Orbeon looks like this: <xforms:submission
method="post"
action="http://localhost:8080/fedora/objects/new?namespace=test" xxforms:username="fedoraAdmin" xxforms:password="fedoraAdmin" /> This submission generates HTTP error 415 from the fedora
repository stating “The server refused this request because the request
entity is in a format not supported by the requested resource for the requested
method” So I guess I have a couple of questions. 1)
What am I POSTing to the REST interface if I am not
specifying a specific instance? 2)
Is there a way to POST to an interface without
specifying any content? Thanks, David
Lacy Falvey
Library Technology Services Villanova
University library.villanova.edu 610-519-7361 -- 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 |
Administrator
|
Hi Dave, Not specifying a ref="…" is the same as having a ref="instance()", that is submitting your first instance. If you don't want anything to be submitted, I would add serialization="none", as in:
<xforms:submission id="s" method="post" serialization="none" action="/" replace="instance"/> Alex
On Wed, Nov 9, 2011 at 6:35 AM, David Lacy <[hidden email]> wrote:
Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |