[MarkLogic Dev General] XCC and HTTP
dsokolsky at marklogic.com
Mon Jun 2 09:45:03 PDT 2008
You use an HTTP server to execute XQuery code that is stored in modules,
either in a database or on the filesystem (depending on configuration).
The HTTP server executes the code when the path to the module is
accessed via a browser over standard HTTP. This is analogous to
accessing a web page over a standard HTTP server or to accessing a jsp
page over a Java App Server.
The XDBC server is used to run XCC programs and execute those against
MarkLogic Server. It does use HTTP to transmit its messages to the
server, but does so using a different wire protocol than standard HTTP.
Both MarkLogic Server and the XCC client libraries (Java and .Net)
For example, consider the following XQuery program:
If you put this in a file named test.xqy under an HTTP app server root
with the following settings:
modules: file system
Therefore, you would put that file in:
Then if you hit http://localhost:8888/test.xqy with a browser, you would
see the results of your query (The string: Hello World).
In order to execute this same thing if the above setup were an XDBC
server, you would have to write a Java or .Net program that invoked the
As far as putting https in front of either an XDBC or HTTP server, you
can do that using some other proxy server (like apache) or by some other
means. For a tutorial about using Apache with MarkLogic server, see
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Travis
Sent: Sunday, June 01, 2008 7:51 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] XCC and HTTP
Good Evening All,
I noticed something in the MLS logs the other day that made we wonder
if XCC was transporting over HTTP. I checked with WireShark and found
that it is. Now, I'm confused. When should one use an HTTP app
server and when should one use XCC? What additional value is XCC
providing? Also, it seems that XCC is transmitted the base64 encoded
credentials in the clear which I was easily able to sniff and decode.
Can XCC be configured to use HTTPS, so that this isn't possible?
General mailing list
General at developer.marklogic.com
More information about the General