外部に存在するDBに接続Orbeon変形移動
質問
私は、既存のが存在DBに新しいOrbeon XFormsを接続しようとしています。私のコードは、そのデータベースに格納される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
どのように私は、この接続を認証しますか?
解決
BASIC認証を実現するには、以下のいずれかを実行する必要があります
アクションで資格情報が含まれます:
<xforms:submission method="get" action="http://john:password@example.org/list" separator="&"/>
を使用する2つの拡張属性、xxforms:ユーザ名とxxforms:パスワード:
<xforms:submission method="get" action="http://example.org/list" separator="&" xxforms:username="john" xxforms:password="password"/>
所属していません StackOverflow