Forum Replies Created
-
AuthorReplies
-
I have successfully got my HTTPS interface with ClienAuth going, so I will add my findings just in case someone else hits the same problems. Where I went wrong was that the arguments for httpQuery were wrong, you just need {MSGUSE DATA}. Important steps are: 1 : You need a Cloverleaf SSL license.
2 : Set up your web browser (I used both Firefox and IE) with the appropriate certificates and ensure that you can connect to the HTTPS page. You will find that Firefox, IE and Cloverleaf all use different format certificates, and I found that Openssl (free download) a useful tool for the various conversions. For Cloverleaf I originally converted them all to .pem (and that worked) but .cer does work for the certificate file (I did not try the other combinations).
3 : Setup Cloverleaf thread. First off set thread up as GET to ensure that your certificates are correct, if you successfully connect you will get back the web page in the log. Ensure that you setup httpQuery with args {MSGUSE DATA} ! (as I discovered the GET works work fine without the argument but the POST and PUT won’t !).
Once you get the GET working the rest is just a matter of changing around the setup to POST or whatever. With mine I converted it to a POST and set it to message driven.
We are currently using Cloverleaf 5.3. I tried using all variations, GET, POST and PUT with the same results. Just in case someone has hit the same type of problem, hope this is helpful.
This will loop through the subfields of Field_0 and create a NTE segment for each field.
FRL Definition:
Field_0
ch 13 bytes
ch 13 bytes
ch 13 bytes
ch 13 bytes
ch 13 bytes
ch 13 bytes
{ { OP ITERATE }
{ BASIS {0 1 2 3 4 5} }
{ VAR %l3 }
{ TYPE list }
{ BODY {
{ { OP COPY }
{ ERR 0 }
{ IN {{Field_0.[%l3]}} }
{ OUT 0(0).NTE(%l3).00098(0) }
}
}}
}
Same type of loop but different FRL definition. Loop through the field names.
Field_0
ch 13 bytes
ch 13 bytes
Field_1
ch 13 bytes
ch 13 bytes
Field_2
ch 13 bytes
ch 13 bytes
{ { OP ITERATE }
{ BASIS {0 1 2 3 4 5} }
{ VAR %l3 }
{ TYPE list }
{ BODY {
{ { OP COPY }
{ ERR 0 }
{ IN {{Field_%l3.[0]}} }
{ OUT 0(0).NTE(%l3).00097 }
}
{ { OP COPY }
{ ERR 0 }
{ IN {{Field_%l3.[1]}} }
{ OUT 0(0).NTE(%l3).00098(0) }
}
}}
}
-
AuthorReplies