Hi Travis,

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)
understand XDBC.

For example, consider the following XQuery program:

"Hello World"

If you put this in a file named test.xqy under an HTTP app server root
with the following settings:

root:  c:\myroot
port:  8888
modules: file system

Therefore, you would put that file in:

c:\myroot\test.xqy

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
test.xqy module.

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
http://xqzone.marklogic.com/howto/tutorials/2004-09-cisapache.xqy.

-Danny 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Travis
Spencer
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?

-- 

Regards,

Travis Spencer
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to