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=2=3 , it is throwing as >

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=1q2=2q3=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

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=1q2=2q3=3 -Will On Mon, Oct 31, 2016 at 10:01 AM, Shiv Shankar wrote: > Hi, > I tried calling an

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

2016-10-31 Thread Shiv Shankar
Hi, I tried calling an external ws with xdmp:http-get() which is deployed in local host http://localhost:8080/q1=1=2=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.