Marklogic 9 and above no longer supports xcc connection for.NET applications and instead rest api shall be used.
I have been working on a POC and got my db instances exposed through a REST API creating REST API instances for each db. I have also been able to do simple search queries using GET. I have also used PUT and DELETE.
My problem is converting existing 140+ cts queries to xml body. There is an example here but uses a simple cts query, I would like some help on converting more complex queries into xml body - so I can use those against the api I have created.
Fore example:
How could I write this cts query in xml?
<ArrayOfRecord>
{{
cts:search(collection('Records{0}')/Record,
cts:and-query((
cts:element-range-query(xs:QName('CreatedOn'), '>=', xs:dateTime('{1}')),
cts:element-range-query(xs:QName('CreatedOn'), '<=', xs:dateTime('{2}')),
cts:path-range-query('/Record/IsLatestVersion', '=',
'{3}')additionalQueries)))
}}
</ArrayOfRecord>
Thanks