I'm using xdmp:http-get to call to an external web service and things are
running really slowly. I believe that the slowness is in the external service.
I want to be able to capture a timestamp prior to the call and after the call
and subtract them and log how long it took. I attempted these lines:
let $startTime := fn:current-dateTime()
let $log := xdmp:log("--> calling service")
let $token :=
fn:normalize-space(fn:substring-after(xdmp:http-get($serviceUri)[2],"token.id="))
let $endTime := fn:current-dateTime()
let $log := xdmp:log(fn:concat("--> call took ", ($endTime - $startTime)))
But the two calls to get datetime return the same value even though about 25
seconds elapsed between them based upon the ErrorLog.txt timestamps. The error
log is getting real timestamps from somewhere. Can I get them too somehow to
expose the speed of the external service and remove concern about mark logic
being the culprit?
Thanks.
Mark
Mark R. Boyd
Principle Engineer
ICS Department
The Church of Jesus Christ of Latter-Day Saints
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general