Gary Russo | 24 Aug 16:47 2015
Picon

[MarkLogic Dev General] How to do an http get using an http proxy?

The on-line docs have an example on how to use an http proxy with the http-get. => http://docs.marklogic.com/xdmp:http-get

 

Unfortunately, this example does not work for me.

 

I see that others are having similar issues based on the discussion posted here. => http://markmail.org/message/sbfj44jtmpsyopyh

 

This is my XQuery Code Snippet.  Am I missing something?

 

 

let $proxy := "http://webproxy.h.corp.services:80"

let $uri   := "http://dbpedia.org/sparql"

 

let $host      := fn:tokenize($uri,'/')[3]

let $proxyuri  := fn:resolve-uri(substring-after($uri, $host), $proxy)

 

return

(

  "$uri:       "||$uri,

  "$host:      "||$host,

  "$proxyuri:  "||$proxyuri,

  xdmp:http-get(

    $proxyuri,

    <options xmlns="xdmp:http">

     <headers>

       <host>{$host}</host>

     </headers>

    </options>

  )

)

 

 

This is the response:

 

$uri:       http://dbpedia.org/sparql
$host:      dbpedia.org
$proxyuri:  http://webproxy.h.corp.services:80/sparql

 


<response xmlns="xdmp:http">
  <code>400</code>
  <message>Bad Request</message>
  <headers>
    <server>squid/3.1.10</server>
    <mime-version>1.0</mime-version>
    <date>Wed, 19 Aug 2015 20:42:28 GMT</date>
    <content-type>text/html</content-type>
    <content-length>1642</content-length>
    <x-squid-error>ERR_INVALID_URL 0</x-squid-error>
    <x-cache>MISS from cawston.int.westgroup.com</x-cache>
    <via>1.0 cawston.int.westgroup.com (squid/3.1.10)</via>
    <connection>close</connection>
  </headers>
</response>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 
<head>
   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     
<title>ERROR: The requested URL could not be retrieved</title>
     
<style type="text/css">
       
<!--     body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; float: right; }  -->
     
</style>
 
</head>
 
<body>
   
<div id="titles">
     
<h1>ERROR</h1>
     
<h2>The requested URL could not be retrieved</h2>
   
</div>
   
<hr>
      
<div id="content">
       
<p>The following error was encountered while trying to retrieve the URL: <a href="/sparql">/sparql</a></p>
       
<blockquote id="error"> <p><b>Invalid URL</b></p> </blockquote>
       
<p>Some aspect of the requested URL is incorrect.</p>
       
<p>Some possible problems are:</p> <ul>
         
<li><p>Missing or incorrect access protocol (should be <q>http://</q> or similar)</p></li>
         
<li><p>Missing hostname</p></li>
         
<li><p>Illegal double-escape in the URL-Path</p></li>
         
<li><p>Illegal character in hostname; underscores are not allowed.</p></li>
       
</ul>
     
<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_INVALID_URL&amp;body=CacheHost%3A%20cawston.int.westgroup.com%0D%0AErrPage%3A%20ERR_INVALID_URL%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Wed,%2019%20Aug%202015%2020%3A42%3A28%20GMT%0D%0A%0D%0AClientIP%3A%2010.206.77.107%0D%0A%0D%0AHTTP%20Request%3A%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
     
<br>
   
</div>
   
<hr>
   
<div id="footer">
     
<p>Generated Wed, 19 Aug 2015 20:42:28 GMT by cawston.int.westgroup.com (squid/3.1.10)</p>
     
<!-- ERR_INVALID_URL -->
   
</div>
 
</body>
</html>


 

 

Gary Russo

Enterprise NoSQL Architect

http://garyrusso.wordpress.com

http://twitter.com/garyprusso

 

 

 

<div><div class="WordSection1">
<p class="MsoNormal">The on-line docs have an example on how to use an http proxy with the http-get. =&gt; <a href="http://docs.marklogic.com/xdmp:http-get">http://docs.marklogic.com/xdmp:http-get</a><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Unfortunately, this example does not work for me.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I see that others are having similar issues based on the discussion posted here. =&gt; <a href="http://markmail.org/message/sbfj44jtmpsyopyh">http://markmail.org/message/sbfj44jtmpsyopyh</a><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">This is my XQuery Code Snippet.&nbsp; Am I missing something?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>let $proxy := "<a href="http://webproxy.h.corp.services:80">http://webproxy.h.corp.services:80</a>"<p></p></span></p>
<p class="MsoNormal"><span>let $uri&nbsp;&nbsp; := "<a href="http://dbpedia.org/sparql">http://dbpedia.org/sparql</a>"<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>let $host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; := fn:tokenize($uri,'/')[3]<p></p></span></p>
<p class="MsoNormal"><span>let $proxyuri&nbsp; := fn:resolve-uri(substring-after($uri, $host), $proxy)<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>return<p></p></span></p>
<p class="MsoNormal"><span>(<p></p></span></p>
<p class="MsoNormal"><span>&nbsp; "$uri:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "||$uri,<p></p></span></p>
<p class="MsoNormal"><span>&nbsp; "$host:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "||$host,<p></p></span></p>
<p class="MsoNormal"><span>&nbsp; "$proxyuri:&nbsp; "||$proxyuri,<p></p></span></p>
<p class="MsoNormal"><span>&nbsp; xdmp:http-get(<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; $proxyuri,<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; &lt;options xmlns="xdmp:http"&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp; &lt;headers&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;host&gt;{$host}&lt;/host&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/headers&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; &lt;/options&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp; )<p></p></span></p>
<p class="MsoNormal"><span>)</span><span><p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>This is the response:<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN">$uri:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://dbpedia.org/sparql">http://dbpedia.org/sparql</a><br>$host:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbpedia.org<br>$proxyuri:&nbsp; <a href="http://webproxy.h.corp.services:80/sparql">http://webproxy.h.corp.services:80/sparql</a><p></p></span></p>
<p class="MsoNormal"><span lang="EN"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN"><br>&lt;response xmlns="xdmp:http"&gt;<br>&nbsp; &lt;code&gt;400&lt;/code&gt;<br>&nbsp; &lt;message&gt;Bad Request&lt;/message&gt;<br>&nbsp; &lt;headers&gt;<br>&nbsp;&nbsp;&nbsp; &lt;server&gt;squid/3.1.10&lt;/server&gt;<br>&nbsp;&nbsp;&nbsp; &lt;mime-version&gt;1.0&lt;/mime-version&gt;<br>&nbsp;&nbsp;&nbsp; &lt;date&gt;Wed, 19 Aug 2015 20:42:28 GMT&lt;/date&gt;<br>&nbsp;&nbsp;&nbsp; &lt;content-type&gt;text/html&lt;/content-type&gt;<br>&nbsp;&nbsp;&nbsp; &lt;content-length&gt;1642&lt;/content-length&gt;<br>&nbsp;&nbsp;&nbsp; &lt;x-squid-error&gt;ERR_INVALID_URL 0&lt;/x-squid-error&gt;<br>&nbsp;&nbsp;&nbsp; &lt;x-cache&gt;MISS from cawston.int.westgroup.com&lt;/x-cache&gt;<br>&nbsp;&nbsp;&nbsp; &lt;via&gt;1.0 cawston.int.westgroup.com (squid/3.1.10)&lt;/via&gt;<br>&nbsp;&nbsp;&nbsp; &lt;connection&gt;close&lt;/connection&gt;<br>&nbsp; &lt;/headers&gt;<br>&lt;/response&gt;<p></p></span></p>
<p class="MsoNormal"><span lang="EN"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "<a href="http://www.w3.org/TR/html4/strict.dtd">http://www.w3.org/TR/html4/strict.dtd</a>"&gt;</span><span><br></span><span>&lt;html&gt;</span><span><br>&nbsp; </span><span>&lt;head&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;meta</span><span> http-equiv</span><span>=</span><span>"Content-Type"</span><span> content</span><span>=</span><span>"text/html; charset=utf-8"</span><span>&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;title&gt;</span><span>ERROR: The requested URL could not be retrieved</span><span>&lt;/title&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;style</span><span> type</span><span>=</span><span>"text/css"</span><span>&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;!--&nbsp;&nbsp;&nbsp;&nbsp; body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; float: right; }&nbsp; --&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;/style&gt;</span><span><br>&nbsp; </span><span>&lt;/head&gt;</span><span><br>&nbsp; </span><span>&lt;body&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;div</span><span> id</span><span>=</span><span>"titles"</span><span>&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;h1&gt;</span><span>ERROR</span><span>&lt;/h1&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;h2&gt;</span><span>The requested URL could not be retrieved</span><span>&lt;/h2&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;/div&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;hr&gt;</span><span> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&lt;div</span><span> id</span><span>=</span><span>"content"</span><span>&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;p&gt;</span><span>The following error was encountered while trying to retrieve the URL: </span><span>&lt;a</span><span> href</span><span>=</span><span>"/sparql"</span><span>&gt;</span><span>/sparql</span><span>&lt;/a&gt;&lt;/p&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;blockquote</span><span> id</span><span>=</span><span>"error"</span><span>&gt;</span><span> </span><span>&lt;p&gt;&lt;b&gt;</span><span>Invalid URL</span><span>&lt;/b&gt;&lt;/p&gt;</span><span> </span><span>&lt;/blockquote&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;p&gt;</span><span>Some aspect of the requested URL is incorrect.</span><span>&lt;/p&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;p&gt;</span><span>Some possible problems are:</span><span>&lt;/p&gt;</span><span> </span><span>&lt;ul&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;li&gt;&lt;p&gt;</span><span>Missing or incorrect access protocol (should be </span><span>&lt;q&gt;</span><span><a href="http://%3c/q">http://&lt;/q</a></span><span>&gt;</span><span> or similar)</span><span>&lt;/p&gt;&lt;/li&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;li&gt;&lt;p&gt;</span><span>Missing hostname</span><span>&lt;/p&gt;&lt;/li&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;li&gt;&lt;p&gt;</span><span>Illegal double-escape in the URL-Path</span><span>&lt;/p&gt;&lt;/li&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;li&gt;&lt;p&gt;</span><span>Illegal character in hostname; underscores are not allowed.</span><span>&lt;/p&gt;&lt;/li&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;/ul&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;p&gt;</span><span>Your cache administrator is </span><span>&lt;a</span><span> href</span><span>=</span><span>"<a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_INVALID_URL&amp;amp;body=CacheHost%3A%20cawston.int.westgroup.com%0D%0AErrPage%3A%20ERR_INVALID_URL%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Wed,%2019%20Aug%202015%2020%3A42%3A28%20GMT%0D%0A%0D%0AClientIP%3A%2010.206.77.107%0D%0A%0D%0AHTTP%20Request%3A%0D%0A%0D%0A%0D%0A">mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_INVALID_URL&amp;amp;body=CacheHost%3A%20cawston.int.westgroup.com%0D%0AErrPage%3A%20ERR_INVALID_URL%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Wed,%2019%20Aug%202015%2020%3A42%3A28%20GMT%0D%0A%0D%0AClientIP%3A%2010.206.77.107%0D%0A%0D%0AHTTP%20Request%3A%0D%0A%0D%0A%0D%0A</a>"</span><span>&gt;</span><span>webmaster</span><span>&lt;/a&gt;</span><span>.</span><span>&lt;/p&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;br&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;/div&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;hr&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;div</span><span> id</span><span>=</span><span>"footer"</span><span>&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;p&gt;</span><span>Generated Wed, 19 Aug 2015 20:42:28 GMT by cawston.int.westgroup.com (squid/3.1.10)</span><span>&lt;/p&gt;</span><span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&lt;!-- ERR_INVALID_URL --&gt;</span><span><br>&nbsp;&nbsp;&nbsp; </span><span>&lt;/div&gt;</span><span><br>&nbsp; </span><span>&lt;/body&gt;</span><span><br></span><span>&lt;/html&gt;</span><span> <br><br><br></span><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Gary Russo<p></p></p>
<p class="MsoNormal">Enterprise NoSQL Architect<p></p></p>
<p class="MsoNormal"><a href="http://garyrusso.wordpress.com/">http://garyrusso.wordpress.com</a><p></p></p>
<p class="MsoNormal"><a href="http://twitter.com/garyprusso">http://twitter.com/garyprusso</a><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
Demian Hess | 21 Aug 19:39 2015

[MarkLogic Dev General] Sprint 4 retrospective

Here are notes from the today's retrospective. It was more abbreviated than usual due to the fact that so many people were out of the office (Felix, Spencer, and Mike).

What went well
1) We accomplished all of our goals for functionality: image resolution, shopping cart, browsing different object types, creating objects, splitting, embedding, etc.

2) The demonstration impressed all observers because the application looked very polished and features so much functionality

3) We are being very responsive to user questions and concerns, particularly evidenced by Mike's in-person visit to collect more feedback

What did not go as well
1) Content modeling and functional validation: User Q&A markup exemplifies the fact that we have not been entirely successful in identifying the content components that are important to the users. The markup we created during the conversion process and the tools we developed to support the mark up don't align with how users expect to utilize the content. 

2) User communication/managing expectations: Users were not fully in the loop as to when testing would start; users are also still not aware of the exact scope of the current project; Roger is worried that the system may actually be adding to his work load. Users, for example, expect features like search and more robust authoring (versioning, etc.), although these features are out of scope for now. 

3) Clarity on how the system will be used: People can see that content can be created, structured, and used to create new types of documents. However, no one understands how the content will actually be used on the website and whether work still needs to be done in the wCMS, etc.

Next Steps/Actions
1) Demian and Niels will be on site next week and will meet with users to improve communications and address scope and functionality questions. We will schedule meetings to discuss:
  • web integration
  • application workflow and usability
  • user acceptance testing, user involvement and release
2) We will plan sprint five next week in order to fully debrief Mike and incorporate his findings from user meetings

3) We will move the last demo to the Monday (9/24) following the end of Sprint 5 in order to maximize the amount of work we complete; this will likely be the "kick off" for the UAT period


--
Demian Hess
Director, Digital Asset Management and Publishing Systems | Avalon Consulting, LLC
P: 703 635 3302 | M: 301 943 8307 | Fax: 845 367 5496
-------------------------------------------------------------------------------------------------------------
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
<div><div dir="ltr">Here are notes from the today's retrospective. It was more abbreviated than usual due to the fact that so many people were out of the office (Felix, Spencer, and Mike).<div><br></div>
<div>What went well</div>
<div>1) We accomplished all of our goals for functionality: image resolution, shopping cart, browsing different object types, creating objects, splitting, embedding, etc.</div>
<div><br></div>
<div>2) The demonstration impressed all observers because the application looked very polished and features so much functionality</div>
<div><br></div>
<div>3) We are being very responsive to user questions and concerns, particularly evidenced by Mike's in-person visit to collect more feedback</div>
<div><br></div>
<div>What did not go as well</div>
<div>1) Content modeling and functional validation: User Q&amp;A markup exemplifies the fact that we have not been entirely successful in identifying the content components that are important to the users. The markup we created during the conversion process and the tools we developed to support the mark up don't align with how users expect to utilize the content.&nbsp;</div>
<div><br></div>
<div>2) User communication/managing expectations: Users were not fully in the loop as to when testing would start; users are also still not aware of the exact scope of the current project; Roger is worried that the system may actually be adding to his work load. Users, for example, expect features like search and more robust authoring (versioning, etc.), although these features are out of scope for now.&nbsp;</div>
<div><br></div>
<div>3) Clarity on how the system will be used: People can see that content can be created, structured, and used to create new types of documents. However, no one understands how the content will actually be used on the website and whether work still needs to be done in the wCMS, etc.</div>
<div><br></div>
<div>Next Steps/Actions</div>
<div>1) Demian and Niels will be on site next week and will meet with users to improve communications and address scope and functionality questions. We will schedule meetings to discuss:</div>
<div>
<ul>
<li>web integration</li>
<li>application workflow and usability</li>
<li>user acceptance testing, user involvement and release</li>
</ul>2) We will plan sprint five next week in order to fully debrief Mike and incorporate his findings from user meetings</div>
<div><br></div>
<div>3) We will move the last demo to the Monday (9/24) following the end of Sprint 5 in order to maximize the amount of work we complete; this will likely be the "kick off" for the UAT period</div>
<div><br></div>
<div>
<div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>
<div dir="ltr">
<div>
<div>Demian Hess</div>
<div>Director, Digital Asset Management and Publishing Systems | <a href="http://www.avalonconsult.com" target="_blank">Avalon Consulting, LLC</a>
</div>
<div>P:&nbsp;<span>703 635 3302 |&nbsp;</span><span>M: 301 943 8307 | Fax: 845 367 5496</span>
</div>
</div>
<div>
<a href="http://www.linkedin.com/company/avalon-consulting-llc" target="_blank">LinkedIn</a>&nbsp;|&nbsp;<span><a href="http://www.google.com/+AvalonConsultingLLC" target="_blank">Google+</a>&nbsp;|&nbsp;</span><span><a href="https://twitter.com/avalonconsult" target="_blank">Twitter</a></span>
</div>
</div>
<div dir="ltr">
<span>-------------------------------------------------------------------------------------------------------------</span><br><span>This message (including any attachments) contains confidential information&nbsp;</span><span>intended for a specific individual and purpose, and is protected by law. If&nbsp;</span><span>you are not the intended recipient, you should delete this message. Any&nbsp;</span><span>disclosure, copying, or distribution of this message, or the taking of any&nbsp;</span><span>action based on it, is strictly prohibited.</span><br>
</div>
</div></div></div></div></div></div></div></div></div>
</div>
</div></div>
Paul M | 18 Aug 19:27 2015
Picon

[MarkLogic Dev General] path range index

Suppose I want all the values for a specific path range index.
Normally, I would use cts:element-values and cts:frequencey on a range index. How would I do this on a path range index, if possible.


Thank You.
<div><div>
<div>Suppose I want all the values for a specific path range index.</div>
<div>Normally, I would use cts:element-values and cts:frequencey on a range index. How would I do this on a path range index, if possible.</div>
<div><br></div>
<div><br></div>
<div>Thank You.<br>
</div>
</div></div>
Anoop Khetan | 17 Aug 14:07 2015

[MarkLogic Dev General] cts:element-value-query Vs where condition

Hi,

 

In my system few Xqueries are using cts:element-value-query and few Xquries are using where condition to get particular document.

 

Can someone tell me which will give me faster results.

 

Regards,

Anoop

 

**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">In my system few Xqueries are using cts:element-value-query and few Xquries are using where condition to get particular document.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Can someone tell me which will give me faster results.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Regards,<p></p></p>
<p class="MsoNormal">Anoop <p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
</div>
<table><tr><td bgcolor="#ffffff">**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***</td></tr></table>
</div>
Sanjaya Keshari Dash | 14 Aug 08:46 2015

[MarkLogic Dev General] MarkLogic Windows 10 Installation

Hi,

 

I am getting the following error while trying to install MarkLogic 8.0-3 on a Windows 10 Machine

 

 

I am using the latest .MSI available for windows.

 

Please help with solutions if you have any.

 

thanks

_ sanjaya

 

Sent from Mail for Windows 10

 

**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
<div>
<div class="WordSection1">
<p>Hi,<span lang="EN-GB"><p></p></span></p>
<p><span lang="EN-GB"><p>&nbsp;</p></span></p>
<p>I am getting the following error while trying to install MarkLogic 8.0-3 on a Windows 10 Machine<p></p></p>
<p><p>&nbsp;</p></p>
<p><span lang="EN-GB"><p></p></span></p>
<p><span lang="EN-GB"><p>&nbsp;</p></span></p>
<p>I am using the latest .MSI available for windows.<p></p></p>
<p><p>&nbsp;</p></p>
<p>Please help with solutions if you have any.<p></p></p>
<p><p>&nbsp;</p></p>
<p>thanks<p></p></p>
<p>_ sanjaya<span lang="EN-GB"><p></p></span></p>
<p><span lang="EN-GB"><p>&nbsp;</p></span></p>
<p><span lang="EN-GB">Sent from <a href="http://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows 10<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
<table><tr><td bgcolor="#ffffff">**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***</td></tr></table>
</div>
Tyagi, Devesh | 12 Aug 09:15 2015

[MarkLogic Dev General] Confusing behavior of '?' cardinality in arguments

Hi, 


While using following function

sem:rdf-builder( [$prefixes as map:map?], [$graph as sem:iri?] ) as function(item(),item(),item()) as sem:triple we can invoke it as follows sem:rdf-builder(). But when I am creating my own function as follows local:get-rdf-builder($prefix-map as map:map*, $graph as sem:iri*) as function(item(), item(), item()) as sem:triple
and invoked it as local:get-rdf-builder() It raises the following exception get-rdf-builder() -- Too few args, expected 2 but got 0 Works fine for local:get-rdf-builder((),()). I am executing this in Marklogic QConsole.
Any help would be appreciated. Regards, Devesh
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
<div>
<div>
<p><span>Hi,&nbsp;</span></p>
<p><br></p>
<p><span>While using following function</span></p>
<span><span>sem:rdf-builder(
   [</span></span><a href="http://docs.marklogic.com/7.0/sem:rdf-builder#prefixes" class="paramLink" title="http://docs.marklogic.com/7.0/sem:rdf-builder#prefixes
Ctrl+Click or tap to follow the link"><span><span>$prefixes</span></span></a><span><span> as map:map?],
   [</span></span><a href="http://docs.marklogic.com/7.0/sem:rdf-builder#graph" class="paramLink"><span><span>$graph</span></span></a><span><span> as sem:iri?]
) as function(item(),item(),item()) as sem:triple</span></span>
<span>we can invoke it as follows</span>
<span><span>sem:rdf-builder().</span></span>
<span>But when I am creating my own function as follows</span>
<span><span><span>local:get-rdf-builder($prefix-map as map:map*, $graph as sem:iri*) as function(item(), item(), item()) as sem:triple</span></span><span></span><br></span>
<span><span>and invoked it as</span></span>
<span><span><span>local:get-rdf-builder()</span></span><span></span></span>
<span><span>It raises the following exception</span></span>
<span></span><span><span>get-rdf-builder() -- Too few args, expected 2 but got 0</span></span>
<span><span>Works fine for <span>local:get-rdf-builder((),()).</span></span></span>
<span>I am executing this in Marklogic QConsole.</span><br>
<span>Any help would be appreciated.</span>
<span>Regards,</span>
<span>Devesh </span>
<br>
</div>
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
</div>
SNEHASISH DUTTA | 11 Aug 16:56 2015
Picon

[MarkLogic Dev General] 32 bit server installation

Hi All,

I need an help, earlier I saw 32 bit MarkLogic server was available with version 6.
I couldn't find it out <at> the website.

I have an urgen requirement please let me know from where I can download MarkLogic 32bit version.

Regards,
Sneh
<div><div dir="ltr">Hi All,<div><br></div>
<div>I need an help, earlier I saw 32 bit MarkLogic server was available with version 6.</div>
<div>I couldn't find it out  <at>  the website.</div>
<div><br></div>
<div>I have an urgen requirement please let me know from where I can download MarkLogic 32bit version.</div>
<div><br></div>
<div>Regards,</div>
<div>Sneh</div>
</div></div>
Sanjaya Keshari Dash | 11 Aug 15:50 2015

[MarkLogic Dev General] Error while trying to load a XML to a ML Server from network

Hi All,

 

we have ML Server Enterprise Edition 8.0-3 installed one of the systems in our network. However, It worked fine while trying to load it from the same system where the server is running.

 

While trying to load a file from another system(Remote) on the same network, the command is not able to trace the path, which is local to the remote host.

 

XQuery:

xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";

 

xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",

    <options xmlns="xdmp:document-load">

      <uri>/assignment/breakfast/breakfast.xml</uri>

      <repair>none</repair>

      <permissions>{xdmp:default-permissions()}</permissions>

    </options>)

 

Error Message:

 

[1.0-ml] SVC-FILOPN: xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfa...", <options xmlns="xdmp:document-load"><uri>/assignment/breakfast/breakfast.xml</uri><repair>none</repa...</options>) -- File open error: open 'd:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml': No such file or directory

Stack Trace

At line 4 column 0:

In xdmp:eval("xquery version &quot;1.0-ml&quot;;&#10;declare namespace html = ...", (), <options xmlns="xdmp:eval"><database>16075890108731410617</database><modules>10812663131527...</options>)

2. declare namespace html = "http://www.w3.org/1999/xhtml";
3.
4. xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",
5. <options xmlns="xdmp:document-load">
6. <uri>/assignment/breakfast/breakfast.xml</uri>

Please advise on the resolution if possible.

 

thanks

_ sanjaya

**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
<div>
<div class="WordSection1">
<div>
<p class="MsoNormal"><span>Hi All,<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>we have ML Server Enterprise Edition 8.0-3 installed one of the systems in our network. However, It worked fine while trying to load it from the same system where
 the server is running.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>While trying to load a file from another system(Remote) on the same network, the command is not able to trace the path, which is local to the remote host.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>XQuery:<p></p></span></p>
<p class="MsoNormal"><span>xquery version "1.0-ml";<p></p></span></p>
<p class="MsoNormal"><span>declare namespace html = "http://www.w3.org/1999/xhtml";<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; &lt;options xmlns="xdmp:document-load"&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;uri&gt;/assignment/breakfast/breakfast.xml&lt;/uri&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;repair&gt;none&lt;/repair&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;permissions&gt;{xdmp:default-permissions()}&lt;/permissions&gt;<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; &lt;/options&gt;)
<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Error Message:<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN">[1.0-ml] SVC-FILOPN: xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfa...", &lt;options xmlns="xdmp:document-load"&gt;&lt;uri&gt;/assignment/breakfast/breakfast.xml&lt;/uri&gt;&lt;repair&gt;none&lt;/repa...&lt;/options&gt;)
 -- File open error: open 'd:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml': No such file or directory<p></p></span></p>
<p class="MsoNormal"><span lang="EN">Stack Trace<p></p></span></p>
<p class="MsoNormal"><span lang="EN">At line 4 column 0:<p></p></span></p>
<p class="MsoNormal"><span lang="EN">In xdmp:eval("xquery version &amp;quot;1.0-ml&amp;quot;;&amp;#10;declare namespace html = ...", (), &lt;options xmlns="xdmp:eval"&gt;&lt;database&gt;16075890108731410617&lt;/database&gt;&lt;modules&gt;10812663131527...&lt;/options&gt;)<p></p></span></p>
<p class="MsoNormal"><span lang="EN">2. declare namespace html = "http://www.w3.org/1999/xhtml";<br>
3. <br>
4. xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",<br>
5. &lt;options xmlns="xdmp:document-load"&gt;<br>
6. &lt;uri&gt;/assignment/breakfast/breakfast.xml&lt;/uri&gt;<p></p></span></p>
<p class="MsoNormal"><span>Please advise on the resolution if possible.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>thanks<p></p></span></p>
<p class="MsoNormal"><span>_ sanjaya<p></p></span></p>
</div>
</div>
<table><tr><td bgcolor="#ffffff">**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***</td></tr></table>
</div>
Gilles Lenfant | 6 Aug 20:25 2015
Picon

[MarkLogic Dev General] [ANN] mllib, a Python REST client for MarkLogic 8

https://github.com/glenfant/mllib

When the excellent MarkLogic_Python by Paul Hoene at
https://github.com/paul-hoehne/MarkLogic_Python focuses on ML clusters
provisioning services (fine tuning of databases, forests, ...), mllib
provides to Python developers document management (CRUD operations on
documents, running server-side XQuery / JS, ...).

As said in the README, mllib is at an early stage of development and
should not be used in a production environment for now.

mllib should run on any platform that runs Python 2.7, Python 3.x
support will come soon.

The future (I hope so):

- Provide a comprehensive set of services comparable to the NodeJS
client library
- Optional asynchronous operations
- CLI - shell like - access easier than curl

Any help, from bug/feature request filing in the Github tracker to
pull requests is welcome.

Have fun
--

-- 
Gilles Lenfant
Muth, John, Springer UK | 6 Aug 17:28 2015

[MarkLogic Dev General] db replication and the Security db


We are in the process of upgrading to MarkLogic 8, from 7.

Our setup is: one master cluster, to which we do all writes, and two slave clusters.

We create all of our users, roles and privileges only once, when initially configuring a new server, we
never update them.

But we figured we should replicate the Security db so that the ids of those users, roles and privileges would
be identical between the master and slave clusters, so the permissions on documents written to master
would work in the slave clusters. Is that unnecessary?

We have been assuming we should, and in ML7 doing so has not been a problem, but in ML8 we are seeing some
problems around enabling/disabling db replication. The problems go away if we don't enable replication
of the Security db.

I can describe the problems if necessary, but if you can tell me "don't bother replicating the Security db",
I'd be happy.

Thanks for any advice,
John

Chien-min Yang | 6 Aug 15:29 2015
Picon

[MarkLogic Dev General] Help: Unsubscribe


Please keep me off the subscription. Thanks!
 


> From: general-request <at> developer.marklogic.com
> Subject: General Digest, Vol 134, Issue 6
> To: general <at> developer.marklogic.com
> Date: Thu, 6 Aug 2015 06:22:44 -0700
>
> Send General mailing list submissions to
> general <at> developer.marklogic.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://developer.marklogic.com/mailman/listinfo/general
> or, via email, send a message with subject or body 'help' to
> general-request <at> developer.marklogic.com
>
> You can reach the person managing the list at
> general-owner <at> developer.marklogic.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of General digest..."
>
>
> Today's Topics:
>
> 1. REST v1/documents/ DELETE Documentation issue (?) (Gilles Lenfant)
> 2. Fwd: Fwd: xdmp:hash32 and xdmp:hash64 algorithm (sweet frd)
> 3. Re: REST v1/documents/ DELETE Documentation issue (?)
> (Dave Cassel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 6 Aug 2015 14:14:08 +0200
> From: Gilles Lenfant <gilles.lenfant <at> alterway.fr>
> Subject: [MarkLogic Dev General] REST v1/documents/ DELETE
> Documentation issue (?)
> To: general <at> developer.marklogic.com
> Message-ID:
> <CAJ8oE9KLut8txzsqRqanNxpjFqwVQOKjkupPtudaFiPDk+p=Pw <at> mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> The REST developer documentation at
> http://docs.marklogic.com/REST/DELETE/v1/documents says that I can
> delete any number of documents ("uri+"), but when I try to delete 2 or
> more documents in one request, I get the following error :
>
> ----
> DELETE /v1/documents?uri=python_demo%2Fsample1%2Fdoc1.xml&uri=python_demo%2Fsample1%2Fdoc2.json
> HTTP/1.1" 400 221
>
> HTTP code 400 (REST-REPEATEDPARAM): REST-REPEATEDPARAM:
> (rest:REPEATEDPARAM) Endpoint does not support repeated parameter: uri
> can only appear once
> ----
>
> I did not find (or search correctly) where I did something wrong.
>
> BTW, deletinig one document per request works as expected.
>
> Best regards
> --
> Gilles Lenfant
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 6 Aug 2015 08:38:05 -0400
> From: sweet frd <sumathisumi.ms <at> gmail.com>
> Subject: [MarkLogic Dev General] Fwd: Fwd: xdmp:hash32 and xdmp:hash64
> algorithm
> To: MarkLogic Developer Discussion <general <at> developer.marklogic.com>
> Message-ID:
> <CACntjf2jQORd1FCt6Uau2KKdQXKk5sZNubiCOr+muHgSeODhUw <at> mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> Referred the websites below
>
> http://stackoverflow.com/questions/25457943/xdmphash64-equivalent-in-java
> http://iswwwup.com/t/d920b2cb9d40/xdmp-hash64-equivalent-in-java.html
>
> As suggested gone for the SHA / MD5 algorithms in java which has its
> equivalent below APIs in xquery.
>
> - xdmp:hmac-md5 <https://docs.marklogic.com/xdmp:hmac-md5>
> - xdmp:hmac-sha1 <https://docs.marklogic.com/xdmp:hmac-sha1>
> - xdmp:hmac-sha256 <https://docs.marklogic.com/xdmp:hmac-sha256>
> - xdmp:hmac-sha512 <https://docs.marklogic.com/xdmp:hmac-sha512>
>
>
> Thanks,
>
> Sumathi.
>
>
> On Wed, Aug 5, 2015 at 11:40 AM, Paul Hoehne <Paul.Hoehne <at> marklogic.com>
> wrote:
>
> > MD5 and SHA1 are standardized and available in Java. Generally you will
> > need to convert the binary hash value (returned in Java as bytes) to a
> > hexidecimal number. Make suer you generate the same number on bot the
> > XQuery and Java side of the equation. Make sure you add leading zeros and
> > make sure you use the same case, so you don?t accidentally generate
> > ?03b7d405? on one server and ?3B7D45? on the other.
> >
> > *Paul Hoehne*
> > Senior Consultant
> > MarkLogic Corporation
> > paul.hoehne <at> marklogic.com
> > mobile:* +1 571-992-8869 <%2B1%20571-992-8869>*
> > www.marklogic.com
> >
> > Click http://po.st/hMGDFm to get your free NoSQL For Dummies e-book!
> >
> > From: Raghu <raghupathy.visweswaran <at> gmail.com>
> > Reply-To: MarkLogic Developer Discussion <general <at> developer.marklogic.com>
> > Date: Wednesday, August 5, 2015 at 11:15 AM
> > To: MarkLogic Developer Discussion <general <at> developer.marklogic.com>
> > Subject: Re: [MarkLogic Dev General] Fwd: xdmp:hash32 and xdmp:hash64
> > algorithm
> >
> > Hi all,
> >
> > To add to that question, I have a requirement, I have to hash certain
> > value at xquery end and the same value has to be hashed/unhashed at Java
> > end. Is there a hashing function in Marklogic which exactly matches with
> > Java hash implementation?
> >
> > Thanks in advance!
> > Raghu
> >
> > On Wed, Aug 5, 2015 at 10:49 AM, sweet frd <sumathisumi.ms <at> gmail.com>
> > wrote:
> >
> >>
> >> Hi,
> >>
> >> The xdmp hash APIs are using which algorithm?. how it is converting
> >> the string to unsignedInt? on which basis?
> >>
> >> Thanks in Advance
> >> Sumathi.
> >>
> >>
> >> _______________________________________________
> >> General mailing list
> >> General <at> developer.marklogic.com
> >> Manage your subscription at:
> >> http://developer.marklogic.com/mailman/listinfo/general
> >>
> >>
> >
> > _______________________________________________
> > General mailing list
> > General <at> developer.marklogic.com
> > Manage your subscription at:
> > http://developer.marklogic.com/mailman/listinfo/general
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://developer.marklogic.com/pipermail/general/attachments/20150806/190a0110/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Thu, 6 Aug 2015 13:22:44 +0000
> From: Dave Cassel <Dave.Cassel <at> marklogic.com>
> Subject: Re: [MarkLogic Dev General] REST v1/documents/ DELETE
> Documentation issue (?)
> To: MarkLogic Developer Discussion <general <at> developer.marklogic.com>
> Message-ID: <D1E8D7A6.D7B1E%dave.cassel <at> marklogic.com>
> Content-Type: text/plain; charset="us-ascii"
>
> What version of MarkLogic are you using? ML8 supports multiple uris, but ML7 does not.
>
> --
> Dave Cassel<http://davidcassel.net>, <at> dmcassel<https://twitter.com/dmcassel>
> Technical Community Manager
> MarkLogic Corporation<http://www.marklogic.com/>
> http://developer.marklogic.com/
>
>
> From: <general-bounces <at> developer.marklogic.com<mailto:general-bounces <at> developer.marklogic.com>> on behalf of Gilles Lenfant <gilles.lenfant <at> alterway.fr<mailto:gilles.lenfant <at> alterway.fr>>
> Reply-To: MarkLogic Developer Discussion <general <at> developer.marklogic.com<mailto:general <at> developer.marklogic.com>>
> Date: Thursday, August 6, 2015 at 8:14 AM
> To: "general <at> developer.marklogic.com<mailto:general <at> developer.marklogic.com>" <general <at> developer.marklogic.com<mailto:general <at> developer.marklogic.com>>
> Subject: [MarkLogic Dev General] REST v1/documents/ DELETE Documentation issue (?)
>
> Hi,
>
> The REST developer documentation at
> http://docs.marklogic.com/REST/DELETE/v1/documents says that I can
> delete any number of documents ("uri+"), but when I try to delete 2 or
> more documents in one request, I get the following error :
>
> ----
> DELETE /v1/documents?uri=python_demo%2Fsample1%2Fdoc1.xml&uri=python_demo%2Fsample1%2Fdoc2.json
> HTTP/1.1" 400 221
>
> HTTP code 400 (REST-REPEATEDPARAM): REST-REPEATEDPARAM:
> (rest:REPEATEDPARAM) Endpoint does not support repeated parameter: uri
> can only appear once
> ----
>
> I did not find (or search correctly) where I did something wrong.
>
> BTW, deletinig one document per request works as expected.
>
> Best regards
> --
> Gilles Lenfant
> _______________________________________________
> General mailing list
> General <at> developer.marklogic.com<mailto:General <at> developer.marklogic.com>
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://developer.marklogic.com/pipermail/general/attachments/20150806/6affaf47/attachment.html
>
> ------------------------------
>
> _______________________________________________
> General mailing list
> General <at> developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
> End of General Digest, Vol 134, Issue 6
> ***************************************
<div><div dir="ltr">
<br>Please keep me off the subscription. Thanks!<br><div>&nbsp;</div>
<br><br><div>&gt; From: general-request <at> developer.marklogic.com<br>&gt; Subject: General Digest, Vol 134, Issue 6<br>&gt; To: general <at> developer.marklogic.com<br>&gt; Date: Thu, 6 Aug 2015 06:22:44 -0700<br>&gt; <br>&gt; Send General mailing list submissions to<br>&gt; 	general <at> developer.marklogic.com<br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt; 	http://developer.marklogic.com/mailman/listinfo/general<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt; 	general-request <at> developer.marklogic.com<br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt; 	general-owner <at> developer.marklogic.com<br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of General digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;    1. REST v1/documents/ DELETE Documentation	issue (?) (Gilles Lenfant)<br>&gt;    2. Fwd: Fwd: xdmp:hash32 and xdmp:hash64	algorithm (sweet frd)<br>&gt;    3. Re: REST v1/documents/ DELETE Documentation issue (?)<br>&gt;       (Dave Cassel)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Thu, 6 Aug 2015 14:14:08 +0200<br>&gt; From: Gilles Lenfant &lt;gilles.lenfant <at> alterway.fr&gt;<br>&gt; Subject: [MarkLogic Dev General] REST v1/documents/ DELETE<br>&gt; 	Documentation	issue (?)<br>&gt; To: general <at> developer.marklogic.com<br>&gt; Message-ID:<br>&gt; 	&lt;CAJ8oE9KLut8txzsqRqanNxpjFqwVQOKjkupPtudaFiPDk+p=Pw <at> mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset=UTF-8<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; The REST developer documentation at<br>&gt; http://docs.marklogic.com/REST/DELETE/v1/documents says that I can<br>&gt; delete any number of documents ("uri+"), but when I try to delete 2 or<br>&gt; more documents in one request, I get the following error :<br>&gt; <br>&gt; ----<br>&gt; DELETE /v1/documents?uri=python_demo%2Fsample1%2Fdoc1.xml&amp;uri=python_demo%2Fsample1%2Fdoc2.json<br>&gt; HTTP/1.1" 400 221<br>&gt; <br>&gt; HTTP code 400 (REST-REPEATEDPARAM): REST-REPEATEDPARAM:<br>&gt; (rest:REPEATEDPARAM) Endpoint does not support repeated parameter: uri<br>&gt; can only appear once<br>&gt; ----<br>&gt; <br>&gt; I did not find (or search correctly) where I did something wrong.<br>&gt; <br>&gt; BTW, deletinig one document per request works as expected.<br>&gt; <br>&gt; Best regards<br>&gt; -- <br>&gt; Gilles Lenfant<br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Thu, 6 Aug 2015 08:38:05 -0400<br>&gt; From: sweet frd &lt;sumathisumi.ms <at> gmail.com&gt;<br>&gt; Subject: [MarkLogic Dev General] Fwd: Fwd: xdmp:hash32 and xdmp:hash64<br>&gt; 	algorithm<br>&gt; To: MarkLogic Developer Discussion &lt;general <at> developer.marklogic.com&gt;<br>&gt; Message-ID:<br>&gt; 	&lt;CACntjf2jQORd1FCt6Uau2KKdQXKk5sZNubiCOr+muHgSeODhUw <at> mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset="utf-8"<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt;     Referred the websites below<br>&gt; <br>&gt; http://stackoverflow.com/questions/25457943/xdmphash64-equivalent-in-java<br>&gt; http://iswwwup.com/t/d920b2cb9d40/xdmp-hash64-equivalent-in-java.html<br>&gt; <br>&gt; As suggested gone for the SHA / MD5 algorithms in java which has its<br>&gt; equivalent below APIs in xquery.<br>&gt; <br>&gt;    - xdmp:hmac-md5 &lt;https://docs.marklogic.com/xdmp:hmac-md5&gt;<br>&gt;    - xdmp:hmac-sha1 &lt;https://docs.marklogic.com/xdmp:hmac-sha1&gt;<br>&gt;    - xdmp:hmac-sha256 &lt;https://docs.marklogic.com/xdmp:hmac-sha256&gt;<br>&gt;    - xdmp:hmac-sha512 &lt;https://docs.marklogic.com/xdmp:hmac-sha512&gt;<br>&gt; <br>&gt; <br>&gt; Thanks,<br>&gt; <br>&gt; Sumathi.<br>&gt; <br>&gt; <br>&gt; On Wed, Aug 5, 2015 at 11:40 AM, Paul Hoehne &lt;Paul.Hoehne <at> marklogic.com&gt;<br>&gt; wrote:<br>&gt; <br>&gt; &gt; MD5 and SHA1 are standardized and available in Java.  Generally you will<br>&gt; &gt; need to convert the binary hash value (returned in Java as bytes) to a<br>&gt; &gt; hexidecimal number.  Make suer you generate the same number on bot the<br>&gt; &gt; XQuery and Java side of the equation.  Make sure you add leading zeros and<br>&gt; &gt; make sure you use the same case, so you don?t accidentally generate<br>&gt; &gt; ?03b7d405? on one server and ?3B7D45? on the other.<br>&gt; &gt;<br>&gt; &gt; *Paul Hoehne*<br>&gt; &gt; Senior Consultant<br>&gt; &gt; MarkLogic Corporation<br>&gt; &gt; paul.hoehne <at> marklogic.com<br>&gt; &gt; mobile:* +1 571-992-8869 &lt;%2B1%20571-992-8869&gt;*<br>&gt; &gt; www.marklogic.com<br>&gt; &gt;<br>&gt; &gt; Click http://po.st/hMGDFm to get your free NoSQL For Dummies e-book!<br>&gt; &gt;<br>&gt; &gt; From: Raghu &lt;raghupathy.visweswaran <at> gmail.com&gt;<br>&gt; &gt; Reply-To: MarkLogic Developer Discussion &lt;general <at> developer.marklogic.com&gt;<br>&gt; &gt; Date: Wednesday, August 5, 2015 at 11:15 AM<br>&gt; &gt; To: MarkLogic Developer Discussion &lt;general <at> developer.marklogic.com&gt;<br>&gt; &gt; Subject: Re: [MarkLogic Dev General] Fwd: xdmp:hash32 and xdmp:hash64<br>&gt; &gt; algorithm<br>&gt; &gt;<br>&gt; &gt; Hi all,<br>&gt; &gt;<br>&gt; &gt; To add to that question, I have a requirement, I have to hash certain<br>&gt; &gt; value at xquery end and the same value has to be hashed/unhashed at Java<br>&gt; &gt; end. Is there a hashing function in Marklogic which exactly matches with<br>&gt; &gt; Java hash implementation?<br>&gt; &gt;<br>&gt; &gt; Thanks in advance!<br>&gt; &gt; Raghu<br>&gt; &gt;<br>&gt; &gt; On Wed, Aug 5, 2015 at 10:49 AM, sweet frd &lt;sumathisumi.ms <at> gmail.com&gt;<br>&gt; &gt; wrote:<br>&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;      The xdmp hash APIs are using which algorithm?. how it is converting<br>&gt; &gt;&gt; the string to unsignedInt? on which basis?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Thanks in Advance<br>&gt; &gt;&gt; Sumathi.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; General mailing list<br>&gt; &gt;&gt; General <at> developer.marklogic.com<br>&gt; &gt;&gt; Manage your subscription at:<br>&gt; &gt;&gt; http://developer.marklogic.com/mailman/listinfo/general<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; General mailing list<br>&gt; &gt; General <at> developer.marklogic.com<br>&gt; &gt; Manage your subscription at:<br>&gt; &gt; http://developer.marklogic.com/mailman/listinfo/general<br>&gt; &gt;<br>&gt; &gt;<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://developer.marklogic.com/pipermail/general/attachments/20150806/190a0110/attachment-0001.html <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 3<br>&gt; Date: Thu, 6 Aug 2015 13:22:44 +0000<br>&gt; From: Dave Cassel &lt;Dave.Cassel <at> marklogic.com&gt;<br>&gt; Subject: Re: [MarkLogic Dev General] REST v1/documents/ DELETE<br>&gt; 	Documentation issue (?)<br>&gt; To: MarkLogic Developer Discussion &lt;general <at> developer.marklogic.com&gt;<br>&gt; Message-ID: &lt;D1E8D7A6.D7B1E%dave.cassel <at> marklogic.com&gt;<br>&gt; Content-Type: text/plain; charset="us-ascii"<br>&gt; <br>&gt; What version of MarkLogic are you using? ML8 supports multiple uris, but ML7 does not.<br>&gt; <br>&gt; --<br>&gt; Dave Cassel&lt;http://davidcassel.net&gt;,  <at> dmcassel&lt;https://twitter.com/dmcassel&gt;<br>&gt; Technical Community Manager<br>&gt; MarkLogic Corporation&lt;http://www.marklogic.com/&gt;<br>&gt; http://developer.marklogic.com/<br>&gt; <br>&gt; <br>&gt; From: &lt;general-bounces <at> developer.marklogic.com&lt;mailto:general-bounces <at> developer.marklogic.com&gt;&gt; on behalf of Gilles Lenfant &lt;gilles.lenfant <at> alterway.fr&lt;mailto:gilles.lenfant <at> alterway.fr&gt;&gt;<br>&gt; Reply-To: MarkLogic Developer Discussion &lt;general <at> developer.marklogic.com&lt;mailto:general <at> developer.marklogic.com&gt;&gt;<br>&gt; Date: Thursday, August 6, 2015 at 8:14 AM<br>&gt; To: "general <at> developer.marklogic.com&lt;mailto:general <at> developer.marklogic.com&gt;" &lt;general <at> developer.marklogic.com&lt;mailto:general <at> developer.marklogic.com&gt;&gt;<br>&gt; Subject: [MarkLogic Dev General] REST v1/documents/ DELETE Documentation issue (?)<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; The REST developer documentation at<br>&gt; http://docs.marklogic.com/REST/DELETE/v1/documents says that I can<br>&gt; delete any number of documents ("uri+"), but when I try to delete 2 or<br>&gt; more documents in one request, I get the following error :<br>&gt; <br>&gt; ----<br>&gt; DELETE /v1/documents?uri=python_demo%2Fsample1%2Fdoc1.xml&amp;uri=python_demo%2Fsample1%2Fdoc2.json<br>&gt; HTTP/1.1" 400 221<br>&gt; <br>&gt; HTTP code 400 (REST-REPEATEDPARAM): REST-REPEATEDPARAM:<br>&gt; (rest:REPEATEDPARAM) Endpoint does not support repeated parameter: uri<br>&gt; can only appear once<br>&gt; ----<br>&gt; <br>&gt; I did not find (or search correctly) where I did something wrong.<br>&gt; <br>&gt; BTW, deletinig one document per request works as expected.<br>&gt; <br>&gt; Best regards<br>&gt; --<br>&gt; Gilles Lenfant<br>&gt; _______________________________________________<br>&gt; General mailing list<br>&gt; General <at> developer.marklogic.com&lt;mailto:General <at> developer.marklogic.com&gt;<br>&gt; Manage your subscription at:<br>&gt; http://developer.marklogic.com/mailman/listinfo/general<br>&gt; <br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://developer.marklogic.com/pipermail/general/attachments/20150806/6affaf47/attachment.html <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; General mailing list<br>&gt; General <at> developer.marklogic.com<br>&gt; Manage your subscription at: <br>&gt; http://developer.marklogic.com/mailman/listinfo/general<br>&gt; <br>&gt; <br>&gt; End of General Digest, Vol 134, Issue 6<br>&gt; ***************************************<br>
</div> 		 	   		  </div></div>

Gmane