SQL fonction httpgetclob param httpheader
Posté : mar. 09 déc. 2014, 15:31:39
Bonjour,
j'utilise la fonction httpgetclob mais un paramètre du httpheader ne passe pas : connectionTimeout ?
alors que l'attribut readTimeout lui passe OK...
en repartant pourtant du lien du site :
http://www.volubis.fr/Pausecaf/PAUSECAF64.html
merci,
Xavier
exemple :
-----------------------------------------------------------------------------------
values systools.httpgetclob('http://AS400MB1:10300',
CAST ( '<httpHeader readTimeout="10" ></httpHeader> ' AS CLOB(10K) ) ) ;
[ Tue Dec 09 15:22:05 CET 2014 ] Exécution de Instruction sélectionnée
> values systools.httpgetclob('http://AS400MB1:10300', CAST ( '<httpHeader readTimeout="10" ></httpHeader> ' AS CLOB(10K) ) )
L'instruction a été exécutée (90 ms)
-----------------------------------------------------------------------------------
values systools.httpgetclob('http://AS400MB1:10300',
CAST ( '<httpHeader connectionTimeout="10" ></httpHeader> ' AS CLOB(10K) ) )
;
[ Tue Dec 09 15:22:13 CET 2014 ] Exécution de Instruction sélectionnée
> values systools.httpgetclob('http://AS400MB1:10300', CAST ( '<httpHeader ConnectionTimeout="10" ></httpHeader> ' AS CLOB(10K) ) )
Etat SQL : 38000
Code fournisseur : -4302
Message : [SQL4302] Abandon de la proc. stockée ou fonction UDF Java SYSTOOLS.HTTPGETCLOB, nom spécifique HTTPGETCLOBNONXML. Exception : Unknown attribute: ConnectionTimeout. Cause . . . . . : La procédure stockée Java ou la fonction UDF a été abandonnée et a généré une exception Java. Si la trace du composant SQJAVA est activée, elle contient une trace de pile Java relative à la méthode abandonnée. Que faire . . . : Déboguez la méthode Java pour supprimer l'exception.
j'utilise la fonction httpgetclob mais un paramètre du httpheader ne passe pas : connectionTimeout ?
alors que l'attribut readTimeout lui passe OK...
en repartant pourtant du lien du site :
http://www.volubis.fr/Pausecaf/PAUSECAF64.html
merci,
Xavier
exemple :
-----------------------------------------------------------------------------------
values systools.httpgetclob('http://AS400MB1:10300',
CAST ( '<httpHeader readTimeout="10" ></httpHeader> ' AS CLOB(10K) ) ) ;
[ Tue Dec 09 15:22:05 CET 2014 ] Exécution de Instruction sélectionnée
> values systools.httpgetclob('http://AS400MB1:10300', CAST ( '<httpHeader readTimeout="10" ></httpHeader> ' AS CLOB(10K) ) )
L'instruction a été exécutée (90 ms)
-----------------------------------------------------------------------------------
values systools.httpgetclob('http://AS400MB1:10300',
CAST ( '<httpHeader connectionTimeout="10" ></httpHeader> ' AS CLOB(10K) ) )
;
[ Tue Dec 09 15:22:13 CET 2014 ] Exécution de Instruction sélectionnée
> values systools.httpgetclob('http://AS400MB1:10300', CAST ( '<httpHeader ConnectionTimeout="10" ></httpHeader> ' AS CLOB(10K) ) )
Etat SQL : 38000
Code fournisseur : -4302
Message : [SQL4302] Abandon de la proc. stockée ou fonction UDF Java SYSTOOLS.HTTPGETCLOB, nom spécifique HTTPGETCLOBNONXML. Exception : Unknown attribute: ConnectionTimeout. Cause . . . . . : La procédure stockée Java ou la fonction UDF a été abandonnée et a généré une exception Java. Si la trace du composant SQJAVA est activée, elle contient une trace de pile Java relative à la méthode abandonnée. Que faire . . . : Déboguez la méthode Java pour supprimer l'exception.