Have you tried hitting exist with the query in the browser?
------------------------ Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539 2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] Web: http://www.latentzero.com Sent from my blackberry device ----- Original Message ----- From: ilango_g <[hidden email]> To: [hidden email] <[hidden email]> Sent: Tue Jul 22 05:28:53 2008 Subject: [ops-users] passed Xquery, but results returned are wrong! Hi I am making a rest submission to a restful server as follows: <xforms:submission id="sub-get-data" action="http://localhost:9001/restfulserver/XmlIntercept/lists/Hairpath?q={instance('DataResponse')/fe:q}" method="get" replace="instance" instance="Response"/> in the instance I have <xforms:instance id="DataResponse"> <fe:xx> <fe:departmentID/> <fe:q>for%20$p%20in%20//item%20where%20contains($p,%20%ORANGE%22)%20return%20$p</fe:q> </fe:xx> </xforms:instance> The server returns XML on action="http://localhost:9001/SimpleXmlServer/XmlIntercept/lists/Hairpath" and I am trying to filter out the results by passing a parameter and I expect to get back a smaller subset of the XML, but instead I am getting back the full XML. So no filtering is happening. Any suggestions are appreciated. -- View this message in context: http://www.nabble.com/passed-Xquery%2C-but-results-returned-are-wrong%21-tp18582159p18582159.html Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Actually, this is not eXist that I am using. But the server returns XML to me. Do you think I would still be able to anticipate the same kind of results as I would with eXist?
|
Well if you are doing an xforms:submission, you should check that you can hit it in a normal browser (just to rule out you URL being incorrect)
----------------------------------------------- Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539 2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] Web: http://www.latentzero.com -----Original Message----- From: ilango_g [mailto:[hidden email]] Sent: 22 July 2008 15:53 To: [hidden email] Subject: [ops-users] Re: passed Xquery, but results returned are wrong! Actually, this is not eXist that I am using. But the server returns XML to me. Do you think I would still be able to anticipate the same kind of results as I would with eXist? Ryan Puddephatt-3 wrote: > > Have you tried hitting exist with the query in the browser? > ------------------------ > Ryan Puddephatt > FIX Developer > Fidessa LatentZero > 1 Alfred Place > London WC1E 7EB > Office: +44 (0) 20 7462 4200 > Direct: +44 (0) 20 7323 6112 > Blackberry: +44 (0) 79 8539 2458 > Fax: +44 (0) 20 7462 4242 > Email: [hidden email] > Web: http://www.latentzero.com > Sent from my blackberry device > > ----- Original Message ----- > From: ilango_g <[hidden email]> > To: [hidden email] <[hidden email]> > Sent: Tue Jul 22 05:28:53 2008 > Subject: [ops-users] passed Xquery, but results returned are wrong! > > > Hi > I am making a rest submission to a restful server as follows: > <xforms:submission > id="sub-get-data" > > action="http://localhost:9001/restfulserver/XmlIntercept/lists/Hairpath?q={instance('DataResponse')/fe:q}" > method="get" > replace="instance" > instance="Response"/> > > in the instance I have > <xforms:instance id="DataResponse"> > <fe:xx> > <fe:departmentID/> > > <fe:q>for%20$p%20in%20//item%20where%20contains($p,%20%ORANGE%22)%20return%20$p</fe:q> > </fe:xx> > </xforms:instance> > > The server returns XML on > action="http://localhost:9001/SimpleXmlServer/XmlIntercept/lists/Hairpath" > and I am trying to filter out the results by passing a parameter and I > expect to get back a smaller subset of the XML, but instead I am > getting back the full XML. So no filtering is happening. > > Any suggestions are appreciated. > -- > View this message in context: > <a href="http://www.nabble.com/passed-Xquery%2C-but-results-returned-are-wrong%">http://www.nabble.com/passed-Xquery%2C-but-results-returned-are-wrong% > 21-tp18582159p18582159.html Sent from the ObjectWeb OPS - Users > mailing list archive at Nabble.com. > > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ______________________________________________________________________ > _ The information transmitted is intended only for the person or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of, or taking of any action in reliance upon, this > information by persons or entities other than the intended recipient > is prohibited. If you received this in error, please contact the > sender and delete the material from any computer. > > _____________________________________________________________________ > This e-mail has been scanned for viruses by Verizon Business Internet > Managed Scanning Services - powered by MessageLabs. For further > information visit http://www.mci.com > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > View this message in context: http://www.nabble.com/Re%3A--passed-Xquery%2C-but-results-returned-are-wrong%21-tp18583742p18590244.html Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |