Thanks Erik

On Wed, Nov 11, 2015 at 5:06 PM, Erik Hennum <erik.hen...@marklogic.com>
wrote:

> Hi, Mahitha:
>
> The hostid prefix and separator was dropped, so the id is just the txid:
>
>     http://docs.marklogic.com/guide/relnotes/chap4#id_43461
>
> Given that the request had to go to the host with the transaction, the
> host id was redundant.
>
> You could consider using the Java API, which encapsulates such details for
> you.
>
>
> Erik Hennum
>
> ------------------------------
> *From:* general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of Mahitha T U [
> mahita...@gmail.com]
> *Sent:* Wednesday, November 11, 2015 3:01 PM
> *To:* General Mark Logic Developer Discussion
> *Subject:* [MarkLogic Dev General] XDMP-RWINVAL
>
> Hi,
>
> In my project, from java code, i am invoking Marklogic Rest API to insert
> a document and read it, both within a transaction
>
> PUT /v1/documents?uri=abc.xml&txid=<hostid>_<txnid>
> GET/v1/documents?uri=abc.xml&txid=<hostid>_<txnid>
>
> This was working fine in Marklogic 7. But after upgrading to Marklogic 8 ,
> during the insertion I am getting the following error and document is not
> getting inserted.
>
> Status 500: XDMP-RWINVAL: $0 <hostid>_<txnid> set-transaction
>
> The credentials used has rest-reader, rest-writer privileges
>
> Please help.
>
> Thanks
> Mahitha
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to