将 Orbeon Xform 连接到外部现有数据库

发布于 2024-08-28 14:04:11 字数 721 浏览 3 评论 0原文

我正在尝试将新的 Orbeon XForm 连接到现有的数据库。我的代码应该提交一个 xml 文档以存储在该数据库中。

<xf:submission id="save-to-file"
            method="get"
            action="http://server:8081/exist/rest//test/test/inventory_sample.xml" 
            replace="instance" instance="data-instance" includenamespaceprefixes="ai"/>

当尝试提交我的 xml 文件时,我的日志显示身份验证错误:

Apr 6, 2010 2:06:08 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor
 selectAuthScheme
INFO: basic authentication scheme selected
Apr 6, 2010 2:06:08 PM org.apache.commons.httpclient.HttpMethodDirector processW
WWAuthChallenge
INFO: No credentials available for BASIC 'exist'@kruddler.mitre.org:8081

如何验证此连接?

I am attempting to connect a new Orbeon XForm to an existing exist db. My code should submit an xml doc to be stored in that database.

<xf:submission id="save-to-file"
            method="get"
            action="http://server:8081/exist/rest//test/test/inventory_sample.xml" 
            replace="instance" instance="data-instance" includenamespaceprefixes="ai"/>

When attempting to submit my xml file, my log reveals an authentication error:

Apr 6, 2010 2:06:08 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor
 selectAuthScheme
INFO: basic authentication scheme selected
Apr 6, 2010 2:06:08 PM org.apache.commons.httpclient.HttpMethodDirector processW
WWAuthChallenge
INFO: No credentials available for BASIC 'exist'@kruddler.mitre.org:8081

How do I authenticate this connection ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想你的星星会说话 2024-09-04 14:04:11

要实现 BASIC 身份验证,您需要执行以下操作之一:

在操作中包含凭据:

<xforms:submission method="get" action="http://john:[email protected]/list" separator="&"/>

使用两个扩展属性 xxforms:username 和 xxforms:password:

 <xforms:submission  method="get" action="http://example.org/list" separator="&" xxforms:username="john" xxforms:password="password"/>

To achieve BASIC authentication, you need to do one of the following:

include credentials in action:

<xforms:submission method="get" action="http://john:[email protected]/list" separator="&"/>

Use the two extension attributes, xxforms:username and xxforms:password:

 <xforms:submission  method="get" action="http://example.org/list" separator="&" xxforms:username="john" xxforms:password="password"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文