Search found 21 matches

by vkdev
Wed Apr 26, 2017 1:11 pm
Forum: XQuery
Topic: xdmp:unqote and cts:query($qNode/*) from the generated node
Replies: 1
Views: 6929

xdmp:unqote and cts:query($qNode/*) from the generated node

let $query:=<cts:path-range-query xmlns:cts="http://marklogic.com/cts" operator="&le;"><cts:path-expression>processInstance/tasks/task/auditTask/createdOn </cts:path-expression> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" ...
by vkdev
Fri Feb 24, 2017 9:18 pm
Forum: XQuery
Topic: How to search json document using xquery and output results
Replies: 3
Views: 5889

Re: How to search json document using xquery and output results

Alex
Please provide some details about configuring a transformation for json. What "Type"? I don't see Json transformation with XQuery. There is XML transformation with XQuery but that does not work.
by vkdev
Tue Feb 07, 2017 7:59 pm
Forum: XQuery
Topic: How to search json document using xquery and output results
Replies: 3
Views: 5889

How to search json document using xquery and output results

Hi If I use this xquery against json document- let $x:=cts:search(fn:doc()/colData, cts:json-property-value-query("taskData", "id")) I don't get any output. Is it a transformation issue? Which transformation scenario do I select/configure to work with json document and see the ou...
by vkdev
Fri Feb 03, 2017 5:05 pm
Forum: XQuery
Topic: How to print query statement being executed by cts:search
Replies: 1
Views: 3961

How to print query statement being executed by cts:search

Is it possible to see or print the full query that a cts:search executed? Like when we use hibernate, we can turn on a logging flag to trace the slq query statement and also the bind parameters that it used.
Is a similar feature of logging the executed query statement on oxygenxml console please?
by vkdev
Fri Feb 03, 2017 1:04 pm
Forum: XQuery
Topic: writing test cases for xquery
Replies: 4
Views: 5648

Re: writing test cases for xquery

please can you point me to some documentation and examples of writing test cases?.
by vkdev
Wed Feb 01, 2017 12:50 pm
Forum: XQuery
Topic: writing test cases for xquery
Replies: 4
Views: 5648

writing test cases for xquery

How do I write and automate tests in oxygen for xquery?
We connect to MarkLogic datasource.
Is any automation of testing possible?
Please advice how to go about it.
Thanks
by vkdev
Mon Jan 30, 2017 11:14 pm
Forum: XQuery
Topic: xdmp:document-insert --error
Replies: 1
Views: 4731

xdmp:document-insert --error

Consider this simple script that I try to run in oxygen. Its connected to Marklogic server. let $a1:=xdmp:unquote("<a><b>bbb</b></a>") xdmp:document-insert("/vk/test/example.xml",$a1 ) In oxygen editor it gives error- XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error,...
by vkdev
Mon Jan 23, 2017 7:43 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Alex When I followed the steps to debug at line 820 on extensions-util.xqy I get this- Severity: warning Description: Could not update breakpoints. They will not be in effect: The XDBC server used to send queries may not have its modules configured correctly. XDBC server name: waas-audit-xdbc-server...
by vkdev
Fri Jan 20, 2017 5:32 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

I have added the url in the breakpoint view. How do I start the debugger now? I just tried right click on the breakpoint resource(url) and select run to breakpoint- it says no XSL selected. When I select go to- I get the same error- Cannot open the specified file- SVC-FILOPN: xdmp:document-get("...
by vkdev
Thu Jan 19, 2017 5:27 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

I get an error when I try to open url- oxygen://im4w193.svr.us.jpmchase.net/MarkLogic$bpmn-poc/fs//$/opt/MarkLogic/Modules/MarkLogic/rest-api/lib/extensions-util.xqy$/MarkLogic/rest-api/lib/extensions-util.xqy Datasource name is MarkLogic and connection name is bpmn-poc java.io.IOException: Cannot o...
by vkdev
Thu Jan 19, 2017 1:11 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Alex-

you wrote-
"Unfortunately, another limitation that I discovered is that you can't add breakpoints inside your extension. This means that you will have to rely on Step In/Out/Over actions to navigate the query."

If i cannot put break points inside my extension, then how can i debug?
by vkdev
Tue Jan 17, 2017 1:07 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Yes entry point is tomcat server. and it makes an rest endpoint call that is the Marklogic rest endpoint. The xquery file is uploaded to ML modules database to /v1/config/resources. We followed the instructions on how to create and install it https://docs.marklogic.com/guide/rest-dev/extensions#id_5...
by vkdev
Mon Jan 16, 2017 11:14 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Alex Our web application is not run on the Http server on Marklogic. Its a separate tomcat server that receives the REST calls. The mvc spring controller (dispatcher servlet) receives this REST request, calls a service that makes a REST call to xquery extension. I do see the request in the Marklogic...
by vkdev
Fri Jan 13, 2017 4:58 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

the app server is enabled in debug mode. here is the output while the debugger is running. <server-status xmlns="http://marklogic.com/xdmp/status/server"> <server-id>625740577222718969</server-id> <server-name>waas-audit-xdbc-server</server-name> <host-id>12995321406427516165</host-id> <se...
by vkdev
Thu Jan 12, 2017 5:53 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Alex- I don't get to see the blank file everytime. Today I have tried many times and unable to bring that blank page up. The debugger seems to jump. Sometimes it hits the host-model.xqy, sometimes it stops at resource-service-query.xqy. It completed the execution. then I ran the script and here is t...
by vkdev
Thu Jan 12, 2017 2:36 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

<server-status xmlns="http://marklogic.com/xdmp/status/server"> <server-id>625740577222718969</server-id> <server-name>waas-audit-xdbc-server</server-name> <host-id>12995321406427516165</host-id> <server-kind>xdbc-server</server-kind> <enabled>true</enabled> <port>8013</port> <root>/</roo...
by vkdev
Wed Jan 11, 2017 5:58 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Many times I encounter this error- I/O error on GET request for "http://im4w193.svr.us.jpmchase.net:8011/v1/resources/tasklist": Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out This error is thrown by the tomcat app server that makes the http rest call. ...
by vkdev
Wed Jan 11, 2017 5:36 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Alex I am using oxygen editor 18.1 on Windows 7 64 bit and Java version is 1.8 Marklogic version is 8.1 when the debugger opens the tasklist automatically and its blank, the location is this- oxygen://im4w193.svr.us.jpmchase.net/MarkLogicXcc$bpmn/13352283577776606320//$/v1/resources/tasklist $/v1/re...
by vkdev
Tue Jan 10, 2017 5:55 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Yes Alex. The XDBC server(port 8013) and the HTTP server (port 8011) both have / as root and both use the same was_audit_modules as modules database.
by vkdev
Tue Jan 10, 2017 12:55 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Re: Debug Xquery rest-api in MarkLogic

Alex Many thanks for replying. Now when i debug the http request, it goes in debug mode and the first file being debugged is a xquery library file in MarkLogic called MarkLogic/rest-api/endpoints/resource-service-query.xqy. It completes the debugging but does not hit the breakpoint in my rest api ex...
by vkdev
Sat Jan 07, 2017 9:29 pm
Forum: XQuery
Topic: Debug Xquery rest-api in MarkLogic
Replies: 27
Views: 17980

Debug Xquery rest-api in MarkLogic

Hi I have a trial enterprise version of Oxygen on my windows computer. I have configured to connect to MarkLogic server( remote server). I have used the AppServer port in the port property while configuringin oxygen. The server has some xquery files that are modules When I look at the datasource exp...