<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#222222'>I&#8217;ve tried the forum but so far am not successful.&nbsp;
Maybe someone on this list has an idea I could try.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#222222'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#222222'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#222222'>I'm trying to run an XQuery against a marklogic server.<br>
I've setup the connection, can browse the DB with DatabaseExplorer (WebDav),<br>
I stored a trivial xquery file and tried to execute it.<br>
No matter what I do I get errors from the marklogic server.<br>
I think I need to put something magic in the &quot;XQuery URL&quot; field but I
have no idea what. If I use <br>
<br>
${currentFileURL}<br>
<br>
I get the error from the server:<br>
<br>
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery<br>
Engine name: MarkLogic<br>
Severity: error<br>
Description: Query evaluation request rejected (404, Not Found). Is this an
XDBC server?<br>
<br>
So I think that MarkLogic doesnt want to use the WebDav connection for its URL
to the query.<br>
<br>
I've tried explictly usin the &quot;browse remote&quot; path or what I think is
the path <br>
<br>
http://DLEE:******@localhost:8004/xquery/dxtest1.xquery<br>
<br>
Same error<br>
I changed the path to be port 8002 which the XDBC driver runs on<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#222222'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='line-height:15.6pt'><span style='font-size:9.0pt;
font-family:"Arial","sans-serif";color:#222222'><br>
SystemID: http://DLEE@localhost:8004/xquery/dxtest1.xquery<br>
Engine name: MarkLogic<br>
Severity: error<br>
Description: 404 Not Found for: http://localhost:8002/xquery/dxtest1.xquery<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#222222'><br clear=all>
</span><o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>----------------------------------------</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>David
A. Lee</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Senior
Principal Software Engineer</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Epocrates,
Inc.</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a
href="mailto:dlee@epocrates.com"><span style='color:blue'>dlee@epocrates.com</span></a><o:p></o:p></span></p>

<p class=MsoNormal>812-482-5224<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>