[MarkLogic Dev General] Return value from xdmp:http-post
Charles Foster
charles at cfoster.net
Wed Mar 10 06:01:54 PST 2010
Hi Bob,
Have you double checked that the functions signatures for xdmp:http-post
and xdmp:quote are filled correctly?
A small mistake like using xdmp:unquote instead of xdmp:quote can cause a
XDMP-DOCROOTTEXT exception, e.g.
xdmp:unquote(<e>my data</e>)
If this doesn't resolve your issue, please could you send an isolated
example of code which doesn't work?
Regards,
Charles
> Hi All,
>
> I'm using xdmp:http-post to send a document to a web service that
> inserts it into another MarkLogic database and returns the URI of the
> document as a string. The service processes the document correctly, but
> I receive an XDMP-DOCROOTTEXT error with the following message:
>
> Invalid root text "/document/12345678.xml"
>
> /document/12345678.xml is the URI of the document in the remote
> database. The MarkLogic API docs state that the return value of
> xdmp:http-post is "the response from the server as well as the specified
> document". Is the error occurring because the value returned is a
> string not a document?
>
> Bob
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
More information about the General
mailing list