Sent from my iPad

On Oct 31, 2016, at 4:06 PM, pemassod 
<[email protected]<mailto:[email protected]>> wrote:





Sent from my MetroPCS 4G LTE Android device
-------- Original message --------
From: 
[email protected]<mailto:[email protected]>
Date: 10/31/2016 3:00 PM (GMT-05:00)
To: [email protected]<mailto:[email protected]>
Subject: General Digest, Vol 148, Issue 40

Send General mailing list submissions to
[email protected]<mailto:[email protected]>

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
[email protected]<mailto:[email protected]>

You can reach the person managing the list at
[email protected]<mailto:[email protected]>

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 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] No option to pass query params in
xdmp:http-get
To: [email protected]<mailto:[email protected]>
Message-ID:
<CAFyr2H60aoq9nWY3=pfywv8byxg0q8+lbu0i3czb4xqr3xb...@mail.gmail.com<mailto: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 <[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] No option to pass query params in
xdmp:http-get
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Message-ID:
<cakt+1dbgjn4dqadi7j6ca77ld6whtweqeos8nvgq3ajwmgk...@mail.gmail.com<mailto: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 
<[email protected]<mailto:[email protected]>>
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
> [email protected]<mailto:[email protected]>
> 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 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] No option to pass query params in
xdmp:http-get
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Message-ID: 
<[email protected]<mailto:[email protected]>>
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 
> <[email protected]<mailto:[email protected]>> 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
> [email protected]<mailto:[email protected]>
> 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 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] No option to pass query params in
xdmp:http-get
To: [email protected]<mailto:[email protected]>
Message-ID:
<CAFyr2H4zuduDdKdqRVajfqwb57nJB1LyGWWXke=fc1uebc3...@mail.gmail.com<mailto: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 
<[email protected]<mailto:[email protected]>>
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
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 148, Issue 40
****************************************
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to