XQuery using Oxygen to MarkLogic server

I've tried the forum but so far am not successful. Maybe someone on this list has an idea I could try. I'm trying to run an XQuery against a marklogic server. I've setup the connection, can browse the DB with DatabaseExplorer (WebDav), I stored a trivial xquery file and tried to execute it. No matter what I do I get errors from the marklogic server. I think I need to put something magic in the "XQuery URL" field but I have no idea what. If I use ${currentFileURL} I get the error from the server: SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is this an XDBC server? So I think that MarkLogic doesnt want to use the WebDav connection for its URL to the query. I've tried explictly usin the "browse remote" path or what I think is the path http://DLEE:******@localhost:8004/xquery/dxtest1.xquery Same error I changed the path to be port 8002 which the XDBC driver runs on SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. dlee@epocrates.com <mailto:dlee@epocrates.com> 812-482-5224

Hello, Open the XQuery file in Oxygen and type in the XQuery URL field of the scenario dialog the URL that you see in the status bar of the Oxygen window. There is a faster way: right click on the XQuery file in the Database Explorer view, select the action Copy Location, right click in the XQuery URL field of the scenario, select Paste. Regards, Sorin Lee, David wrote:
I’ve tried the forum but so far am not successful. Maybe someone on this list has an idea I could try.
I'm trying to run an XQuery against a marklogic server. I've setup the connection, can browse the DB with DatabaseExplorer (WebDav), I stored a trivial xquery file and tried to execute it. No matter what I do I get errors from the marklogic server. I think I need to put something magic in the "XQuery URL" field but I have no idea what. If I use
${currentFileURL}
I get the error from the server:
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is this an XDBC server?
So I think that MarkLogic doesnt want to use the WebDav connection for its URL to the query.
I've tried explictly usin the "browse remote" path or what I think is the path
http://DLEE:******@localhost:8004/xquery/dxtest1.xquery
Same error I changed the path to be port 8002 which the XDBC driver runs on
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
dlee@epocrates.com <mailto:dlee@epocrates.com>
812-482-5224
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I've tried the forum but so far am not successful. Maybe someone on this list has an idea I could try.
I'm trying to run an XQuery against a marklogic server. I've setup the connection, can browse the DB with DatabaseExplorer (WebDav), I stored a trivial xquery file and tried to execute it. No matter what I do I get errors from the marklogic server. I think I need to put something magic in the "XQuery URL" field but I have no idea what. If I use
${currentFileURL}
I get the error from the server:
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is
Thank you ! Unfortunately I get back my original error: SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is this an XDBC server? --------- My guess is that the mark logic server has a different view on the URL then the external world does. That the location of this query inside MarkLogic is a different URL then what is exposed in WebDav. Unfortunately I have no idea how to figure out what that location would be ! -----Original Message----- From: Sorin Ristache [mailto:sorin@oxygenxml.com] Sent: Friday, March 06, 2009 8:16 AM To: Lee, David Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] XQuery using Oxygen to MarkLogic server Hello, Open the XQuery file in Oxygen and type in the XQuery URL field of the scenario dialog the URL that you see in the status bar of the Oxygen window. There is a faster way: right click on the XQuery file in the Database Explorer view, select the action Copy Location, right click in the XQuery URL field of the scenario, select Paste. Regards, Sorin Lee, David wrote: this
an XDBC server?
So I think that MarkLogic doesnt want to use the WebDav connection for
its URL to the query.
I've tried explictly usin the "browse remote" path or what I think is the path
http://DLEE:******@localhost:8004/xquery/dxtest1.xquery
Same error I changed the path to be port 8002 which the XDBC driver runs on
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
dlee@epocrates.com <mailto:dlee@epocrates.com>
812-482-5224
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

You have to configure a MarkLogic connection between Oxygen and the XDBC server of MarkLogic that also serves the file that you accessed through the WebDAV server. Use the URL of the XDBC resource, not the WebDAV one. That is locate the file in the Database Explorer view by browsing through the XDBC connection, not the WebDAV connection and copy and paste the URL of the XDBC resource. The XDBC server and the WebDAV server are managed as different app servers in the MarkLogic admninistration console. The Oxygen User Manual describes the steps for creating a MarkLogic connection in Oxygen: http://www.oxygenxml.com/doc/ug-oxygen/configure-marklogic-connection.html Regards, Sorin Lee, David wrote:
I’ve tried the forum but so far am not successful. Maybe someone on this list has an idea I could try.
I'm trying to run an XQuery against a marklogic server. I've setup the connection, can browse the DB with DatabaseExplorer (WebDav), I stored a trivial xquery file and tried to execute it. No matter what I do I get errors from the marklogic server. I think I need to put something magic in the "XQuery URL" field but I have no idea what. If I use
${currentFileURL}
I get the error from the server:
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is this an XDBC server?
So I think that MarkLogic doesnt want to use the WebDav connection for its URL to the query.
I've tried explictly usin the "browse remote" path or what I think is the path
http://DLEE:******@localhost:8004/xquery/dxtest1.xquery
Same error I changed the path to be port 8002 which the XDBC driver runs on
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
dlee@epocrates.com <mailto:dlee@epocrates.com>
812-482-5224
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I've tried the forum but so far am not successful. Maybe someone on this list has an idea I could try.
I'm trying to run an XQuery against a marklogic server. I've setup the connection, can browse the DB with DatabaseExplorer (WebDav), I stored a trivial xquery file and tried to execute it. No matter what I do I get errors from the marklogic server. I think I need to put something magic in the "XQuery URL" field but I have no idea what. If I use
${currentFileURL}
I get the error from the server:
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is
Ah ! You got me in the right direction. I didn't realize I had to have a different App Server in MarkLogic. I just now noticed a "Create XDBC" server tab. I was using the port of the HTTP server for the XDBC property. I created an XDBC server and now the database perspective in oxygen is crashing instantly (it comes up for a second then disappears and the menu for Database perspective stays grayed). I'll pound on it more later today. Thanks for your help! I'm sure I'll need more later :) -David -----Original Message----- From: Sorin Ristache [mailto:sorin@oxygenxml.com] Sent: Friday, March 06, 2009 8:31 AM To: Lee, David Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] XQuery using Oxygen to MarkLogic server You have to configure a MarkLogic connection between Oxygen and the XDBC server of MarkLogic that also serves the file that you accessed through the WebDAV server. Use the URL of the XDBC resource, not the WebDAV one. That is locate the file in the Database Explorer view by browsing through the XDBC connection, not the WebDAV connection and copy and paste the URL of the XDBC resource. The XDBC server and the WebDAV server are managed as different app servers in the MarkLogic admninistration console. The Oxygen User Manual describes the steps for creating a MarkLogic connection in Oxygen: http://www.oxygenxml.com/doc/ug-oxygen/configure-marklogic-connection.ht ml Regards, Sorin Lee, David wrote: this
an XDBC server?
So I think that MarkLogic doesnt want to use the WebDav connection for
its URL to the query.
I've tried explictly usin the "browse remote" path or what I think is the path
http://DLEE:******@localhost:8004/xquery/dxtest1.xquery
Same error I changed the path to be port 8002 which the XDBC driver runs on
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
dlee@epocrates.com <mailto:dlee@epocrates.com>
812-482-5224
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I've tried the forum but so far am not successful. Maybe someone on this list has an idea I could try.
I'm trying to run an XQuery against a marklogic server. I've setup the connection, can browse the DB with DatabaseExplorer (WebDav), I stored a trivial xquery file and tried to execute it. No matter what I do I get errors from the marklogic server. I think I need to put something magic in the "XQuery URL" field but I have no idea what. If I use
${currentFileURL}
I get the error from the server:
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: Query evaluation request rejected (404, Not Found). Is
That was it ! I had to restart a few things and discover the Perspective -> Reset Layout option to restor my database window from neverneverland ... but now its working ! I can execute both a trivial xquery as well as a doc("url") expression. Thank you so much !!!! -David -----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of Lee, David Sent: Friday, March 06, 2009 8:46 AM To: Sorin Ristache Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] XQuery using Oxygen to MarkLogic server Ah ! You got me in the right direction. I didn't realize I had to have a different App Server in MarkLogic. I just now noticed a "Create XDBC" server tab. I was using the port of the HTTP server for the XDBC property. I created an XDBC server and now the database perspective in oxygen is crashing instantly (it comes up for a second then disappears and the menu for Database perspective stays grayed). I'll pound on it more later today. Thanks for your help! I'm sure I'll need more later :) -David -----Original Message----- From: Sorin Ristache [mailto:sorin@oxygenxml.com] Sent: Friday, March 06, 2009 8:31 AM To: Lee, David Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] XQuery using Oxygen to MarkLogic server You have to configure a MarkLogic connection between Oxygen and the XDBC server of MarkLogic that also serves the file that you accessed through the WebDAV server. Use the URL of the XDBC resource, not the WebDAV one. That is locate the file in the Database Explorer view by browsing through the XDBC connection, not the WebDAV connection and copy and paste the URL of the XDBC resource. The XDBC server and the WebDAV server are managed as different app servers in the MarkLogic admninistration console. The Oxygen User Manual describes the steps for creating a MarkLogic connection in Oxygen: http://www.oxygenxml.com/doc/ug-oxygen/configure-marklogic-connection.ht ml Regards, Sorin Lee, David wrote: this
an XDBC server?
So I think that MarkLogic doesnt want to use the WebDav connection for
its URL to the query.
I've tried explictly usin the "browse remote" path or what I think is the path
http://DLEE:******@localhost:8004/xquery/dxtest1.xquery
Same error I changed the path to be port 8002 which the XDBC driver runs on
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery Engine name: MarkLogic Severity: error Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
dlee@epocrates.com <mailto:dlee@epocrates.com>
812-482-5224
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I think the Database Explorer view was in the auto-hide state, that is the view slides into the Oxygen window only when you move the mouse pointer near the edge of the window where the view is hidden (the edge where the title of the view is displayed). You don't need a Reset Layout. Just toggle between the auto-hide and docked state of any dockable view with the Toggle auto-hide button available on the title bar of the view. Regards, Sorin Lee, David wrote:
I had to restart a few things and discover the Perspective -> Reset Layout option to restor my database window from neverneverland ... but now its working !
participants (2)
-
Lee, David
-
Sorin Ristache