Collegare Orbeon Xform su External esiste DB
Domanda
Sto tentando di collegare un nuovo Orbeon XForm a un db esistere esistente. Il mio codice dovrebbe presentare una doc XML per essere memorizzati nel 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"/>
Quando si tenta di presentare il mio file xml, il mio log rivela un errore di autenticazione:
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
Come faccio autenticare questa connessione?
Soluzione
Per ottenere l'autenticazione di base, è necessario fare una delle seguenti:
includere le credenziali in azione:
<xforms:submission method="get" action="http://john:password@example.org/list" separator="&"/>
Utilizzare i due attributi di estensione, xxforms: username e xxforms: Password:
<xforms:submission method="get" action="http://example.org/list" separator="&" xxforms:username="john" xxforms:password="password"/>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow