Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the value of xcc.txn.compatible property when working with .NET XCC library?

Tags:

c#

.net

marklogic

I am using Marklogic XCC connector of version 8.0 and my database is Marklogic server 6.0. I get this exception RequestServerException while submitting a query and if transactionMode is also changed.

I searched this out and found that there is a issue with compatibility of XCC 8.0 with previous versions of marklogic server.

Solution I got is to set xcc.txn.compatible property to true. Now I can't find this property or namespace in any marklogic dll(e.g. Marklogic.Xcc).

Any suggestion how and where I can set this property?? Thanks in Advance.

like image 660
SAURAV VIJAY Avatar asked Oct 06 '15 06:10

SAURAV VIJAY


People also ask

How do I use Xcc in Java?

To use XCC, there are several basic things you need to do in your Java code: Import the needed libraries. Set up the ContentSource object to authenticate against MarkLogic Server. Create a new Session object. Add a Request to the session object. Submit the request and get back a ResultSequence object from MarkLogic Server.

What are the BASIC programming concepts used in Xcc?

This chapter describes some of the basic programming concepts used in XCC. It includes the following sections: Use the Admin Interface to set up an XDBC server, specifying a name, port, a database to access, and other configuration parameters. For detailed instructions how to configure an XDBC Server, see the Administrator's Guide.

What is effective point-in-time query in Xcc?

Point-in-time queries allow you to query older versions of content in a database. In an XCC application, you set up the options for any requests submitted to MarkLogic Server with the RequestOptions class. One of the options you can set is the effective point-in-time option.

How to submit connection details to the Xcc API?

You can submit the connection details when you invoke the XCC program with a URL that has the following form: Also, there are discrete arguments to the constructors in the API to set up any or all portions of the connection details. Point-in-time queries allow you to query older versions of content in a database.


1 Answers

I've asked around and it seems that you can't specify that property with the .NET XCC library. You have a couple options:

  • Use the XCC version 6 library with MarkLogic 6
  • Upgrade to MarkLogic 8 and use the XCC version 8 library
  • Instead of using XCC, use the REST API. You can make HTTP calls with .NET and get a lot of functionality out of the box this way. There isn't an official .NET wrapper for the REST API, but there is a community project that you could use as a starting point (and it was started using MarkLogic 6).
like image 83
Dave Cassel Avatar answered Oct 13 '22 20:10

Dave Cassel