将XForm实例序列化为SOAPAttach附件 [英] Serialising XForm instances as SOAPAttach attachments

查看:143
本文介绍了将XForm实例序列化为SOAPAttach附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将XForms实例作为 SOAPAttach 附件。但是,从XForms 1.1规范中:

I wish to submit an XForms instance to a web service as a SOAPAttach attachment. However, from the XForms 1.1 specification:


<$ 提交的c $ c>方法属性 将rel =nofollow>必须设置为 get post 以访问SOAP HTTP绑定。

The method attribute of the submission must be set to get or post in order to access the SOAP HTTP binding.

我明白这意味着 multipart-post 方法(SOAPAttach所需)不能与SOAP HTTP绑定一起使用

I understand this to mean that the multipart-post method (required for SOAPAttach) cannot be used with the SOAP HTTP binding?

11.9.6序列化为多部分/相关



  • 后续部分要求

  • Subsequent part requirements


  • 数据类型为 xsd的每个节点的一部分: anyURI 通过上传填充:

  • One part for each node with a datatype of xsd:anyURI populated by upload with:

由于它明确指出由上传填充,所以我认为这意味着XML实例数据或其他生成的内容只能出现在第一个身体部位(与SOAPAttach的要求相反)。

Since it explicitly states "populated by upload", I take this to mean that XML instance data or other generated content can only appear in the first body part (contrary to the requirements of SOAPAttach).

我正确理解每个这些限制使得(本地)不可能将XForms实例作为附件提交;因此,必须自己生成这样的序列化(例如通过处理 xforms-submit-serialize 事件)?有没有一个标准的方法,或一个可以帮助的图书馆?

Am I correct in understanding that each of these restrictions make it impossible to (natively) submit an XForms instance as such an attachment; and, therefore, that one must generate such a serialization oneself (e.g. by handling the xforms-submit-serialize event)? Is there a standard way to do so, or a library that could help?

推荐答案

我不是一个SOAP专家,但我认为你是对的。

I am not a SOAP expert, but I think you are right.

Orbeon表单通过检查 xforms:upload 控件来处理由上传填充的要求绑定到实例的节点提交,所以是的,现在我认为XForms 1.1不幸被绑定上传。

Orbeon Forms handles the "populated by upload" requirement by checking that xforms:upload controls are bound to the nodes of the instance to submit, so yes for now I think that the XForms 1.1 is unfortunately tied to upload.

另一方面,它不'就像你指出的那样,XForms的实现应该远远不能原生地做,因为他们应该已经支持 multipart / related 与上传的文件作为附件。

On the other hand, it doesn't seem like XForms implementations should be very far from from being able to doing this natively, as they should already support multipart/related with uploaded files as attachments, as you point out.

做自己的序列化似乎是很多工作。

Doing your own serialization seems like a lot of work.

这篇关于将XForm实例序列化为SOAPAttach附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆