将整个 InfoPath 表单传递给 Web 服务(不提交)
我有一个用于查询 Web 服务的 InfoPath 2010 表单。 Web 服务需要将整个 InfoPath 表单作为 XML 字符串参数。我所说的 XML 字符串是指格式上的字符串。
<my:myFields xmlns:my=...>
<my:Name>UserName</my:Name>
...
</my:myFields>
然后,Web 服务将处理该字符串并将结果返回到 InfoPath 表单。
我尝试传递根元素“.”,但在 Web 服务端我收到的值仅由 \r\n 和 \t 格式化。关于如何传递 XML 标签和值的任何想法。
I have an InfoPath 2010 form that queries a web service. The web service is expecting the entire InfoPath form as an XML string parameter. By an XML string I mean the string on the format
<my:myFields xmlns:my=...>
<my:Name>UserName</my:Name>
...
</my:myFields>
The web service will then process the string and return a result to the InfoPath form.
I have tried to pass the root element, ".", but at the web service end I am receiving the values only formatted by \r\n and \t. Any idea on how to pass the XML tags and the values.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一种解决方法,将列表名称和表单名称传递给 Web 服务。然后,托管在 SharePoint 中的 Web 服务将获取表单的 XML。
这是供参考的代码:
I have found a workaround by passing the list name and the form name to a web service. The web service, which is hosted in SharePoint, will then get the XML of the form.
Here is the code for reference: