我试图新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

我如何验证这个连接?

有帮助吗?

解决方案

要实现基本的身份验证,你需要做以下之一:

包括在动作凭证:

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

使用两个扩展属性,xxforms:用户名和xxforms:密码:

 <xforms:submission  method="get" action="http://example.org/list" separator="&amp;" xxforms:username="john" xxforms:password="password"/>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top