[MarkLogic Dev General] HTTP vs XCC

Walter Underwood Walter.Underwood at marklogic.com
Fri Sep 10 08:29:05 PDT 2010


XCC can also use SSL. --wunder

On Sep 10, 2010, at 6:54 AM, Lee, David wrote:

> I"ll unofficially answer with my personal non-sponsered opinion.
> 
> XCC:
> Pro:
> 
> Returns structured XML already converted into .NET native classes
> Native support for data 'uploads' (inserting data from local
> storage/memory)
> Can specifically exeucte arbitrary XQuery ("Ad Hoc query") or
> execute/invoke any xquery module explicitly
> 
> Con:
> Requires using the XCC Library
> Requires a separate app instance configuration (can also be a pro)
> Explicit coupling to MarkLogic API's.
> 
> 
> HTTP:
> Pro:
> Doesn't require a vendor library
> Requests are intercepted by the server and arbitrary business logic
> performed
> Can be viewed as a 'restful' serice which issolates the calling code
> from knowing how the request is processed.
> Gets through firewalls which limit requests to HTTP
> Can use HTTPS
> Can do intelligent URL mapping on server side to different services
> No need to know about the back end implementation, code or database
> structure. 
> 
> Con:
> Must parse your XML yourself as it is returned (if you are returning
> XML).
> Cannot call xquery code/expressions directly.
> No direct support for upload (but can be done in a PUT or POST with
> cooperative serever side code).
> 
> 
> 
> ----------------------------------------
> David A. Lee
> Senior Principal Software Engineer
> Epocrates, Inc.
> dlee at epocrates.com
> 812-482-5224
> 
> 
> 
> 
> 
> -----Original Message-----
> From: general-bounces at developer.marklogic.com
> [mailto:general-bounces at developer.marklogic.com] On Behalf Of Jakob Fix
> Sent: Friday, September 10, 2010 9:43 AM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] HTTP vs XCC
> 
> Hi,
> 
> I seem to remember that there was a discussion about the virtues and
> advantages of both HTTP and XCC some time ago. Unfortunately, I cannot
> find it in my archives or on markmail.org (I found this one though:
> http://markmail.org/thread/432isl5yd2dyjash but I faintly remember a
> more in-depth discussion).
> 
> I'm wondering what the advantages of XCC are in an .Net environment.
> Why can I not simply send requests via HTTP(s) instead?
> 
> Thanks,
> Jakob.
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general







More information about the General mailing list