将 Orbeon Xform 连接到外部现有数据库
我正在尝试将新的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要实现 BASIC 身份验证,您需要执行以下操作之一:
在操作中包含凭据:
使用两个扩展属性 xxforms:username 和 xxforms:password:
To achieve BASIC authentication, you need to do one of the following:
include credentials in action:
Use the two extension attributes, xxforms:username and xxforms:password: