Re: [MarkLogic Dev General] No option to pass query params in xdmp:http-get

2016-10-31 Thread Shiv Shankar
Thanks Williams and Justin.

I was pretty close to that.


On Mon, Oct 31, 2016 at 12:01 PM, Shiv Shankar 
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


Re: [MarkLogic Dev General] No option to pass query params in xdmp:http-get

2016-10-31 Thread Justin Makeig
You need to escape your ampersands if they appear in XQuery code.

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

Justin


> On Oct 31, 2016, at 9:01 AM, Shiv Shankar  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



smime.p7s
Description: S/MIME cryptographic signature
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] No option to pass query params in xdmp:http-get

2016-10-31 Thread William Sawyer
You need to use the html entity for the ampersand (&) in xquery.  If q1
is also suppose to be a param you need a question mark as well.

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

-Will



On Mon, Oct 31, 2016 at 10:01 AM, Shiv Shankar 
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
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general