Sent from my MetroPCS 4G LTE Android device-------- Original message 
--------From: general-requ...@developer.marklogic.com Date: 10/31/2016  3:00 PM 
 (GMT-05:00) To: general@developer.marklogic.com Subject: General Digest, Vol 
148, Issue 40 
Send General mailing list submissions to
        general@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-requ...@developer.marklogic.com

You can reach the person managing the list at
        general-ow...@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. No option to pass query params in xdmp:http-get (Shiv Shankar)
   2. Re: No option to pass query params in     xdmp:http-get
      (William Sawyer)
   3. Re: No option to pass query params        in      xdmp:http-get
      (Justin Makeig)
   4. Re: No option to pass query params in     xdmp:http-get (Shiv Shankar)


----------------------------------------------------------------------

Message: 1
Date: Mon, 31 Oct 2016 12:01:35 -0400
From: Shiv Shankar <shiv.shivshan...@gmail.com>
Subject: [MarkLogic Dev General] No option to pass query params in
        xdmp:http-get
To: general@developer.marklogic.com
Message-ID:
        <CAFyr2H60aoq9nWY3=pfywv8byxg0q8+lbu0i3czb4xqr3xb...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,
I tried calling an external ws with xdmp:http-get() which is deployed in
local host http://localhost:8080/q1=1&q2=2&q3=3 , it is throwing as
XDMP-ENTITYREF: (err:XPST0003) Invalid entity reference "q2="

I am trying to call external ws from console. Any advise?

Regards
Shan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20161031/ba546736/attachment-0001.html
 

------------------------------

Message: 2
Date: Mon, 31 Oct 2016 10:15:23 -0600
From: William Sawyer <wilby.saw...@gmail.com>
Subject: Re: [MarkLogic Dev General] No option to pass query params in
        xdmp:http-get
To: MarkLogic Developer Discussion <general@developer.marklogic.com>
Message-ID:
        <cakt+1dbgjn4dqadi7j6ca77ld6whtweqeos8nvgq3ajwmgk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You need to use the html entity for the ampersand (&amp;) in xquery.  If q1
is also suppose to be a param you need a question mark as well.

http://localhost:8080/?q1=1&amp;q2=2&amp;q3=3

-Will



On Mon, Oct 31, 2016 at 10:01 AM, Shiv Shankar <shiv.shivshan...@gmail.com>
wrote:

> Hi,
> I tried calling an external ws with xdmp:http-get() which is deployed in
> local host http://localhost:8080/q1=1&q2=2&q3=3 , it is throwing as
> XDMP-ENTITYREF: (err:XPST0003) Invalid entity reference "q2="
>
> I am trying to call external ws from console. Any advise?
>
> Regards
> Shan.
>
> _______________________________________________
> General mailing list
> General@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/20161031/32f238c1/attachment-0001.html
 

------------------------------

Message: 3
Date: Mon, 31 Oct 2016 16:16:16 +0000
From: Justin Makeig <justin.mak...@marklogic.com>
Subject: Re: [MarkLogic Dev General] No option to pass query params     in
        xdmp:http-get
To: MarkLogic Developer Discussion <general@developer.marklogic.com>
Message-ID: <29a42b57-5213-406e-9ad8-084113192...@marklogic.com>
Content-Type: text/plain; charset="us-ascii"

You need to escape your ampersands if they appear in XQuery code.

  let $url as xs:string := "http://localhost:8080/q1=1&amp;q2=2&amp;q3=3";

Justin


> On Oct 31, 2016, at 9:01 AM, Shiv Shankar <shiv.shivshan...@gmail.com> wrote:
> 
> Hi,
> I tried calling an external ws with xdmp:http-get() which is deployed in 
> local host http://localhost:8080/q1=1&q2=2&q3=3 , it is throwing as
> XDMP-ENTITYREF: (err:XPST0003) Invalid entity reference "q2="
> 
> 
> I am trying to call external ws from console. Any advise?
> 
> Regards
> Shan.
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at: 
> http://developer.marklogic.com/mailman/listinfo/general

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3593 bytes
Desc: not available
Url : 
http://developer.marklogic.com/pipermail/general/attachments/20161031/84316f61/attachment-0001.bin
 

------------------------------

Message: 4
Date: Mon, 31 Oct 2016 12:22:29 -0400
From: Shiv Shankar <shiv.shivshan...@gmail.com>
Subject: Re: [MarkLogic Dev General] No option to pass query params in
        xdmp:http-get
To: general@developer.marklogic.com
Message-ID:
        <CAFyr2H4zuduDdKdqRVajfqwb57nJB1LyGWWXke=fc1uebc3...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Thanks Williams and Justin.

I was pretty close to that.


On Mon, Oct 31, 2016 at 12:01 PM, Shiv Shankar <shiv.shivshan...@gmail.com>
wrote:

> Hi,
> I tried calling an external ws with xdmp:http-get() which is deployed in
> local host http://localhost:8080/q1=1&q2=2&q3=3 , it is throwing as
> XDMP-ENTITYREF: (err:XPST0003) Invalid entity reference "q2="
>
> I am trying to call external ws from console. Any advise?
>
> Regards
> Shan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20161031/28c28e9d/attachment-0001.html
 

------------------------------

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 148, Issue 40
****************************************
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to