小编Kar*_*ick的帖子

使用xdmp:http-post时发生XDMP-TOOBIG错误

我有一个xquery文件,返回超过2.2GB的文本数据.当我直接在浏览器(Chrome)中点击xquery文件时,它会加载所有文本数据.

但是当我尝试使用xdmp:http-post($url,$options)它调用该xquery文件时会抛出XDMP-TOOBIG错误.以下是痕迹.

XDMP-TOOBIG: xdmp:http-post("http://server:8278/services/getText...", <options xmlns="xdmp:http"><timeout>600000</timeout><authentication method="basic"><usernam...</options>) -- Document size exceeds text document size limit of 2048 megabytes
in /services/invoke.xqy, at 20:7 [1.0-ml]
$HTTP_CALL = <configurations xmlns:config="" xmlns=""><credentails><username>admin</username><password>admin</password...</configurations>
$userName = text{"admin"}
$password = text{"admin"}
$timeOut = text{"600000"}
$url = "http://server:8278/services/getText..."
$responseType = "text/plain"
$options = <options xmlns="xdmp:http"><timeout>600000</timeout><authentication method="basic"><usernam...</options>
$response = xdmp:http-post("http://server:8278/services/getText...", <options xmlns="xdmp:http"><timeout>600000</timeout><authentication method="basic"><usernam...</options>)
$set-reponse-type = ()
Run Code Online (Sandbox Code Playgroud)

我可以在我使用xdmp的文件中指定的任何限制:http-post或任何其他解决方案?

感谢帮助.

marklogic marklogic-7

5
推荐指数
1
解决办法
177
查看次数

使用java api更改mp3文件的title属性

我的文件夹"D:\ songs\Innisai Malai"中有超过1000个mp3文件.现在,我想将所有文件的title属性更新为其文件Name,将所有文件的专辑名称更新为Innisai Malai.

如何使用java做到这一点.是否有任何API可用于一次更新所有文件的标题文件名,而不会影响文件的音质.

java

4
推荐指数
2
解决办法
2697
查看次数

如何将属性添加到节点的所有特定子节点

我有以下节点,我想在其中添加属性到所有add节点.

<test>
  <add>x1</add>
  <c><add>x2</add></c>
  <b att1="x">x</b>
</test>
Run Code Online (Sandbox Code Playgroud)

我试过了

functx:add-attributes($test, xs:QName('att1'), 1)
Run Code Online (Sandbox Code Playgroud)

它可以将属性添加到test节点.但

当我尝试

functx:add-attributes($test/add, xs:QName('att1'), 1)
Run Code Online (Sandbox Code Playgroud)

它将属性添加到第一个添加节点,但仅返回添加了属性的添加节点.然后当我尝试$test//add它时抛出错误.

当我尝试

for $add in $test//add 
   return functx:add-attributes($add, xs:QName('att1'), 1)
Run Code Online (Sandbox Code Playgroud)

它分别返回两个添加节点.现在,如何重构原始节点以仅将属性添加到指定节点.

xml xquery marklogic

3
推荐指数
1
解决办法
383
查看次数

标签 统计

marklogic ×2

java ×1

marklogic-7 ×1

xml ×1

xquery ×1