Orbeon : Use of Rest API with Oracle persistence layer

Can you help us pls with a problem concerning Orbeon We have an external web application that includes in its pages Xforms created with Orbeon Form Builder and published in Form Runner. We configured the Oracle persistence layer for persisting form data. Till now all the environment is ok. Now we have data from the external web app that we want to send to a new form data and save it in the Oracle database. So, we think of using the Rest API provided by Orbeon to create the data as explained here : [persistence API][1] by making ajax calls to the link to form data. But, we dont know how to achieve this exactly (meaning how to build the ajax call, the request body, ...etc.). So can you please tell us if it's a good solution and how to do? We also tried this (an ajax call to post to the URL a part of the instance): var buffer = "
" + "" + "" + info.attachment.bytes + "" + "" + "
"; var xmlDoc = document.implementation.createDocument("", "", null); xmlDoc.load(buffer); $.ajax({ type: "PUT", url: urlToXml, // "/crud/[APPLICATION_NAME]/[FORM_NAME]/data/[FORM_DATA_ID]/data.xml" processData: false, data: xmlDoc, dataType: "xml", success: function(msg) { alert ("xml data sent successfully"); } }); But the response returns an invalid XML doc. Thanks by advance [1]: http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api

以上就是Orbeon : Use of Rest API with Oracle persistence layer的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏