Alex,
I can see your argument, but all my queries are simple, /product etc. This means I can get all the products in my application for listing (similar to the DMV Summary). This saves me having to create a query instance or use XPL because I can do it all in the src (well in theory) Thanks Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf >Of Alessandro Vernet >Sent: 11 November 2006 01:29 >To: [hidden email] >Subject: Re: [ops-users] Exist REST Problems > >Ryan, > >Here I am posting the query from XForms. That is posting a >query embedded in a <query> document as the one shown on the >page linked below. Would you get the text/xml content type >when doing a POST vs. a GET? Is it OK in your case to do a POST? > >http://exist.sourceforge.net/devguide.html#N10385 > >(Unless I am sending trivial queries, I don't like very much >the idea of sending them in a query string with a GET, because >I know that one day the query will become too long, exceed the >URL length limit and lead to a bug that is hard to find.) > >Alex > >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> Alex, >> Apart from the fact I'm using an internal exist the only >> difference I can see is that I'm using the _query parameter to query >> the DB rather than pulling a single document, I believe that this is >> the cause for the change in content type >> >> Thanks >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >-----Original Message----- >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >Alessandro Vernet >> >Sent: 10 November 2006 21:53 >> >To: [hidden email] >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> I now have another problem, the REST API always returns text/html. >> >> There is a parameter that can change it, by adding the >following to >> >> the EXistServlet >> > >> >Ryan, >> > >> >I don't have this problem. I am using a verbatim 1.1.1 >deployed as a >> >separate war, and if I access >http://localhost:8090/exist/rest/, the >> >response I get is: >> > >> >HTTP/1.1 200 OK >> >Server: Apache-Coyote/1.1 >> >Content-Type: text/xml;charset=UTF-8 >> >Content-Length: 321 >> >Date: Fri, 10 Nov 2006 21:50:24 GMT >> > >> ><exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist"> >> >... >> > >> >Do you see anything that could be different in your case? >> > >> >Alex >> >-- >> >Blog (XML, Web apps, Open Source): >> >http://www.orbeon.com/blog/ >> > >> > >> >> >> >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >> >> > > >-- >Blog (XML, Web apps, Open Source): >http://www.orbeon.com/blog/ > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ryan,
Point taken. Let us know if you find a solution through the eXist list or otherwise. Alex On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > Alex, > I can see your argument, but all my queries are simple, /product > etc. This means I can get all the products in my application for listing > (similar to the DMV Summary). This saves me having to create a query > instance or use XPL because I can do it all in the src (well in theory) > > Thanks > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: [hidden email] [mailto:[hidden email]] On Behalf > >Of Alessandro Vernet > >Sent: 11 November 2006 01:29 > >To: [hidden email] > >Subject: Re: [ops-users] Exist REST Problems > > > >Ryan, > > > >Here I am posting the query from XForms. That is posting a > >query embedded in a <query> document as the one shown on the > >page linked below. Would you get the text/xml content type > >when doing a POST vs. a GET? Is it OK in your case to do a POST? > > > >http://exist.sourceforge.net/devguide.html#N10385 > > > >(Unless I am sending trivial queries, I don't like very much > >the idea of sending them in a query string with a GET, because > >I know that one day the query will become too long, exceed the > >URL length limit and lead to a bug that is hard to find.) > > > >Alex > > > >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> Alex, > >> Apart from the fact I'm using an internal exist the only > >> difference I can see is that I'm using the _query parameter to query > >> the DB rather than pulling a single document, I believe that this is > >> the cause for the change in content type > >> > >> Thanks > >> > >> Ryan > >> > >> Ryan Puddephatt > >> Software Engineer > >> > >> Teleflex Group - IT UK > >> 1 Michaelson Square > >> Livingston > >> West Lothian > >> Scotland > >> EH54 7DP > >> > >> e> [hidden email] > >> t> +44(0)1506 407 110 > >> f> +44(0)1506 407 108 > >> > >> > >> > >> >-----Original Message----- > >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >Alessandro Vernet > >> >Sent: 10 November 2006 21:53 > >> >To: [hidden email] > >> >Subject: Re: [ops-users] Exist REST Problems > >> > > >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> I now have another problem, the REST API always returns text/html. > >> >> There is a parameter that can change it, by adding the > >following to > >> >> the EXistServlet > >> > > >> >Ryan, > >> > > >> >I don't have this problem. I am using a verbatim 1.1.1 > >deployed as a > >> >separate war, and if I access > >http://localhost:8090/exist/rest/, the > >> >response I get is: > >> > > >> >HTTP/1.1 200 OK > >> >Server: Apache-Coyote/1.1 > >> >Content-Type: text/xml;charset=UTF-8 > >> >Content-Length: 321 > >> >Date: Fri, 10 Nov 2006 21:50:24 GMT > >> > > >> ><exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist"> > >> >... > >> > > >> >Do you see anything that could be different in your case? > >> > > >> >Alex > >> >-- > >> >Blog (XML, Web apps, Open Source): > >> >http://www.orbeon.com/blog/ > >> > > >> > > >> > >> > >> > >> > >> > >> -- > >> 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 > >> ObjectWeb mailing lists service home page: > >> http://www.objectweb.org/wws > >> > >> > >> > > > > > >-- > >Blog (XML, Web apps, Open Source): > >http://www.orbeon.com/blog/ > > > > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
I believe Hank has posted a question on the Exist mailing list regarding this, I also found this archived email http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which states that it's the default response (Not sure why). I was wondering why an xforms submission can't accept this content type and force a change into xml, and only then throw an error if it isn't well formed? Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf >Of Alessandro Vernet >Sent: 11 November 2006 02:39 >To: [hidden email] >Subject: Re: [ops-users] Exist REST Problems > >Ryan, > >Point taken. Let us know if you find a solution through the >eXist list or otherwise. > >Alex > >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> Alex, >> I can see your argument, but all my queries are simple, >> /product etc. This means I can get all the products in my >application >> for listing (similar to the DMV Summary). This saves me having to >> create a query instance or use XPL because I can do it all >in the src >> (well in theory) >> >> Thanks >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >-----Original Message----- >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >Alessandro Vernet >> >Sent: 11 November 2006 01:29 >> >To: [hidden email] >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >Ryan, >> > >> >Here I am posting the query from XForms. That is posting a query >> >embedded in a <query> document as the one shown on the page linked >> >below. Would you get the text/xml content type when doing a >POST vs. >> >a GET? Is it OK in your case to do a POST? >> > >> >http://exist.sourceforge.net/devguide.html#N10385 >> > >> >(Unless I am sending trivial queries, I don't like very >much the idea >> >of sending them in a query string with a GET, because I >know that one >> >day the query will become too long, exceed the URL length limit and >> >lead to a bug that is hard to find.) >> > >> >Alex >> > >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> Alex, >> >> Apart from the fact I'm using an internal exist the only >> >> difference I can see is that I'm using the _query parameter to >> >> query the DB rather than pulling a single document, I >believe that >> >> this is the cause for the change in content type >> >> >> >> Thanks >> >> >> >> Ryan >> >> >> >> Ryan Puddephatt >> >> Software Engineer >> >> >> >> Teleflex Group - IT UK >> >> 1 Michaelson Square >> >> Livingston >> >> West Lothian >> >> Scotland >> >> EH54 7DP >> >> >> >> e> [hidden email] >> >> t> +44(0)1506 407 110 >> >> f> +44(0)1506 407 108 >> >> >> >> >> >> >> >> >-----Original Message----- >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >> >Alessandro Vernet >> >> >Sent: 10 November 2006 21:53 >> >> >To: [hidden email] >> >> >Subject: Re: [ops-users] Exist REST Problems >> >> > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> >> I now have another problem, the REST API always >returns text/html. >> >> >> There is a parameter that can change it, by adding the >> >following to >> >> >> the EXistServlet >> >> > >> >> >Ryan, >> >> > >> >> >I don't have this problem. I am using a verbatim 1.1.1 >> >deployed as a >> >> >separate war, and if I access >> >http://localhost:8090/exist/rest/, the >> >> >response I get is: >> >> > >> >> >HTTP/1.1 200 OK >> >> >Server: Apache-Coyote/1.1 >> >> >Content-Type: text/xml;charset=UTF-8 >> >> >Content-Length: 321 >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT >> >> > >> >> ><exist:result >xmlns:exist="http://exist.sourceforge.net/NS/exist"> >> >> >... >> >> > >> >> >Do you see anything that could be different in your case? >> >> > >> >> >Alex >> >> >-- >> >> >Blog (XML, Web apps, Open Source): >> >> >http://www.orbeon.com/blog/ >> >> > >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> 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 >> >> ObjectWeb mailing lists service home page: >> >> http://www.objectweb.org/wws >> >> >> >> >> >> >> > >> > >> >-- >> >Blog (XML, Web apps, Open Source): >> >http://www.orbeon.com/blog/ >> > >> > >> >> >> >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >> >> > > >-- >Blog (XML, Web apps, Open Source): >http://www.orbeon.com/blog/ > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex, Hank,
I've found a solution, although its more of a work around. I replace the existing isXMLContentType() function in org.orbeon.oxf.processor.ProcessorUtils With Public static boolean isXMLContentType(String contentType) { if(contentType == null) return false; return contentType.equals(XML_CONTENT_TYPE1) || contentType.equals(XML_CONTENT_TYPE2) || contentType.endsWith(XML_CONTENT_TYPE3_SUFFIX) || contentType.equals(HTML_CONTENT_TYPE); } This isn't really addressing the problem, but it does temporarily get the REST queries to work whilst we get a solution from Exist Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: 11 November 2006 08:59 >To: [hidden email] >Subject: RE: [ops-users] Exist REST Problems > >Alex, > I believe Hank has posted a question on the Exist >mailing list regarding this, I also found this archived email >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, > which states that it's the default response (Not sure why). I >was wondering why an xforms submission can't accept this >content type and force a change into xml, and only then throw >an error if it isn't well formed? > >Ryan > >Ryan Puddephatt >Software Engineer > >Teleflex Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotland >EH54 7DP > >e> [hidden email] >t> +44(0)1506 407 110 >f> +44(0)1506 407 108 > > > >>-----Original Message----- >>From: [hidden email] [mailto:[hidden email]] On Behalf Of >>Alessandro Vernet >>Sent: 11 November 2006 02:39 >>To: [hidden email] >>Subject: Re: [ops-users] Exist REST Problems >> >>Ryan, >> >>Point taken. Let us know if you find a solution through the >eXist list >>or otherwise. >> >>Alex >> >>On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >>> Alex, >>> I can see your argument, but all my queries are simple, >>> /product etc. This means I can get all the products in my >>application >>> for listing (similar to the DMV Summary). This saves me having to >>> create a query instance or use XPL because I can do it all >>in the src >>> (well in theory) >>> >>> Thanks >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >-----Original Message----- >>> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >>> >Alessandro Vernet >>> >Sent: 11 November 2006 01:29 >>> >To: [hidden email] >>> >Subject: Re: [ops-users] Exist REST Problems >>> > >>> >Ryan, >>> > >>> >Here I am posting the query from XForms. That is posting a query >>> >embedded in a <query> document as the one shown on the page linked >>> >below. Would you get the text/xml content type when doing a >>POST vs. >>> >a GET? Is it OK in your case to do a POST? >>> > >>> >http://exist.sourceforge.net/devguide.html#N10385 >>> > >>> >(Unless I am sending trivial queries, I don't like very >>much the idea >>> >of sending them in a query string with a GET, because I >>know that one >>> >day the query will become too long, exceed the URL length >limit and >>> >lead to a bug that is hard to find.) >>> > >>> >Alex >>> > >>> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >>> >> Alex, >>> >> Apart from the fact I'm using an internal exist the only >>> >> difference I can see is that I'm using the _query parameter to >>> >> query the DB rather than pulling a single document, I >>believe that >>> >> this is the cause for the change in content type >>> >> >>> >> Thanks >>> >> >>> >> Ryan >>> >> >>> >> Ryan Puddephatt >>> >> Software Engineer >>> >> >>> >> Teleflex Group - IT UK >>> >> 1 Michaelson Square >>> >> Livingston >>> >> West Lothian >>> >> Scotland >>> >> EH54 7DP >>> >> >>> >> e> [hidden email] >>> >> t> +44(0)1506 407 110 >>> >> f> +44(0)1506 407 108 >>> >> >>> >> >>> >> >>> >> >-----Original Message----- >>> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >>> >> >Alessandro Vernet >>> >> >Sent: 10 November 2006 21:53 >>> >> >To: [hidden email] >>> >> >Subject: Re: [ops-users] Exist REST Problems >>> >> > >>> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >>> >> >> I now have another problem, the REST API always >>returns text/html. >>> >> >> There is a parameter that can change it, by adding the >>> >following to >>> >> >> the EXistServlet >>> >> > >>> >> >Ryan, >>> >> > >>> >> >I don't have this problem. I am using a verbatim 1.1.1 >>> >deployed as a >>> >> >separate war, and if I access >>> >http://localhost:8090/exist/rest/, the >>> >> >response I get is: >>> >> > >>> >> >HTTP/1.1 200 OK >>> >> >Server: Apache-Coyote/1.1 >>> >> >Content-Type: text/xml;charset=UTF-8 >>> >> >Content-Length: 321 >>> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT >>> >> > >>> >> ><exist:result >>xmlns:exist="http://exist.sourceforge.net/NS/exist"> >>> >> >... >>> >> > >>> >> >Do you see anything that could be different in your case? >>> >> > >>> >> >Alex >>> >> >-- >>> >> >Blog (XML, Web apps, Open Source): >>> >> >http://www.orbeon.com/blog/ >>> >> > >>> >> > >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> 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 >>> >> ObjectWeb mailing lists service home page: >>> >> http://www.objectweb.org/wws >>> >> >>> >> >>> >> >>> > >>> > >>> >-- >>> >Blog (XML, Web apps, Open Source): >>> >http://www.orbeon.com/blog/ >>> > >>> > >>> >>> >>> >>> >>> >>> -- >>> 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 >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >>> >> >> >>-- >>Blog (XML, Web apps, Open Source): >>http://www.orbeon.com/blog/ >> >> > > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Ryan Puddephatt
Ryan,
What Phillip is talking about in this thread is little different: if I understand his message correctly, he is using XSLT on the eXist side to generate RSS, while I am just accessing eXist to retrieve a document or run an XQuery request through REST. When using XSLT on eXist, it seems that eXist makes the assumption you want to generate HTML. Are you also running XSLT on the eXist side? If the service you call from XForms does not return text/xml or application/xml, I don't think that we should go ahead and parse that as it was XML. One possible improvement is to accept text/html but pipe it through JTidy before it gets to your XForms instance. Alex On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: > Alex, > I believe Hank has posted a question on the Exist mailing list > regarding this, I also found this archived email > http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which states > that it's the default response (Not sure why). I was wondering why an xforms > submission can't accept this content type and force a change into xml, and > only then throw an error if it isn't well formed? > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: [hidden email] [mailto:[hidden email]] On Behalf > >Of Alessandro Vernet > >Sent: 11 November 2006 02:39 > >To: [hidden email] > >Subject: Re: [ops-users] Exist REST Problems > > > >Ryan, > > > >Point taken. Let us know if you find a solution through the > >eXist list or otherwise. > > > >Alex > > > >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> Alex, > >> I can see your argument, but all my queries are simple, > >> /product etc. This means I can get all the products in my > >application > >> for listing (similar to the DMV Summary). This saves me having to > >> create a query instance or use XPL because I can do it all > >in the src > >> (well in theory) > >> > >> Thanks > >> > >> Ryan > >> > >> Ryan Puddephatt > >> Software Engineer > >> > >> Teleflex Group - IT UK > >> 1 Michaelson Square > >> Livingston > >> West Lothian > >> Scotland > >> EH54 7DP > >> > >> e> [hidden email] > >> t> +44(0)1506 407 110 > >> f> +44(0)1506 407 108 > >> > >> > >> > >> >-----Original Message----- > >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >Alessandro Vernet > >> >Sent: 11 November 2006 01:29 > >> >To: [hidden email] > >> >Subject: Re: [ops-users] Exist REST Problems > >> > > >> >Ryan, > >> > > >> >Here I am posting the query from XForms. That is posting a query > >> >embedded in a <query> document as the one shown on the page linked > >> >below. Would you get the text/xml content type when doing a > >POST vs. > >> >a GET? Is it OK in your case to do a POST? > >> > > >> >http://exist.sourceforge.net/devguide.html#N10385 > >> > > >> >(Unless I am sending trivial queries, I don't like very > >much the idea > >> >of sending them in a query string with a GET, because I > >know that one > >> >day the query will become too long, exceed the URL length limit and > >> >lead to a bug that is hard to find.) > >> > > >> >Alex > >> > > >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> Alex, > >> >> Apart from the fact I'm using an internal exist the only > >> >> difference I can see is that I'm using the _query parameter to > >> >> query the DB rather than pulling a single document, I > >believe that > >> >> this is the cause for the change in content type > >> >> > >> >> Thanks > >> >> > >> >> Ryan > >> >> > >> >> Ryan Puddephatt > >> >> Software Engineer > >> >> > >> >> Teleflex Group - IT UK > >> >> 1 Michaelson Square > >> >> Livingston > >> >> West Lothian > >> >> Scotland > >> >> EH54 7DP > >> >> > >> >> e> [hidden email] > >> >> t> +44(0)1506 407 110 > >> >> f> +44(0)1506 407 108 > >> >> > >> >> > >> >> > >> >> >-----Original Message----- > >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >> >Alessandro Vernet > >> >> >Sent: 10 November 2006 21:53 > >> >> >To: [hidden email] > >> >> >Subject: Re: [ops-users] Exist REST Problems > >> >> > > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> >> I now have another problem, the REST API always > >returns text/html. > >> >> >> There is a parameter that can change it, by adding the > >> >following to > >> >> >> the EXistServlet > >> >> > > >> >> >Ryan, > >> >> > > >> >> >I don't have this problem. I am using a verbatim 1.1.1 > >> >deployed as a > >> >> >separate war, and if I access > >> >http://localhost:8090/exist/rest/, the > >> >> >response I get is: > >> >> > > >> >> >HTTP/1.1 200 OK > >> >> >Server: Apache-Coyote/1.1 > >> >> >Content-Type: text/xml;charset=UTF-8 > >> >> >Content-Length: 321 > >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT > >> >> > > >> >> ><exist:result > >xmlns:exist="http://exist.sourceforge.net/NS/exist"> > >> >> >... > >> >> > > >> >> >Do you see anything that could be different in your case? > >> >> > > >> >> >Alex > >> >> >-- > >> >> >Blog (XML, Web apps, Open Source): > >> >> >http://www.orbeon.com/blog/ > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> 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 > >> >> ObjectWeb mailing lists service home page: > >> >> http://www.objectweb.org/wws > >> >> > >> >> > >> >> > >> > > >> > > >> >-- > >> >Blog (XML, Web apps, Open Source): > >> >http://www.orbeon.com/blog/ > >> > > >> > > >> > >> > >> > >> > >> > >> -- > >> 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 > >> ObjectWeb mailing lists service home page: > >> http://www.objectweb.org/wws > >> > >> > >> > > > > > >-- > >Blog (XML, Web apps, Open Source): > >http://www.orbeon.com/blog/ > > > > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
I'm not running XSLT just an Xpath query. My hack works for me for the minute, but the Jtidy idea sounds good to make sure no problems occur Thanks Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf >Of Alessandro Vernet >Sent: 13 November 2006 23:17 >To: [hidden email] >Subject: Re: [ops-users] Exist REST Problems > >Ryan, > >What Phillip is talking about in this thread is little >different: if I understand his message correctly, he is using >XSLT on the eXist side to generate RSS, while I am just >accessing eXist to retrieve a document or run an XQuery >request through REST. When using XSLT on eXist, it seems that >eXist makes the assumption you want to generate HTML. Are you >also running XSLT on the eXist side? > >If the service you call from XForms does not return text/xml >or application/xml, I don't think that we should go ahead and >parse that as it was XML. One possible improvement is to >accept text/html but pipe it through JTidy before it gets to >your XForms instance. > >Alex > >On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: >> Alex, >> I believe Hank has posted a question on the Exist >mailing list >> regarding this, I also found this archived email >> >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which >> states that it's the default response (Not sure why). I was >wondering >> why an xforms submission can't accept this content type and force a >> change into xml, and only then throw an error if it isn't >well formed? >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >-----Original Message----- >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >Alessandro Vernet >> >Sent: 11 November 2006 02:39 >> >To: [hidden email] >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >Ryan, >> > >> >Point taken. Let us know if you find a solution through the eXist >> >list or otherwise. >> > >> >Alex >> > >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> Alex, >> >> I can see your argument, but all my queries are simple, >> >> /product etc. This means I can get all the products in my >> >application >> >> for listing (similar to the DMV Summary). This saves me having to >> >> create a query instance or use XPL because I can do it all >> >in the src >> >> (well in theory) >> >> >> >> Thanks >> >> >> >> Ryan >> >> >> >> Ryan Puddephatt >> >> Software Engineer >> >> >> >> Teleflex Group - IT UK >> >> 1 Michaelson Square >> >> Livingston >> >> West Lothian >> >> Scotland >> >> EH54 7DP >> >> >> >> e> [hidden email] >> >> t> +44(0)1506 407 110 >> >> f> +44(0)1506 407 108 >> >> >> >> >> >> >> >> >-----Original Message----- >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >> >Alessandro Vernet >> >> >Sent: 11 November 2006 01:29 >> >> >To: [hidden email] >> >> >Subject: Re: [ops-users] Exist REST Problems >> >> > >> >> >Ryan, >> >> > >> >> >Here I am posting the query from XForms. That is posting a query >> >> >embedded in a <query> document as the one shown on the >page linked >> >> >below. Would you get the text/xml content type when doing a >> >POST vs. >> >> >a GET? Is it OK in your case to do a POST? >> >> > >> >> >http://exist.sourceforge.net/devguide.html#N10385 >> >> > >> >> >(Unless I am sending trivial queries, I don't like very >> >much the idea >> >> >of sending them in a query string with a GET, because I >> >know that one >> >> >day the query will become too long, exceed the URL length limit >> >> >and lead to a bug that is hard to find.) >> >> > >> >> >Alex >> >> > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> >> Alex, >> >> >> Apart from the fact I'm using an internal >exist the only >> >> >> difference I can see is that I'm using the _query parameter to >> >> >> query the DB rather than pulling a single document, I >> >believe that >> >> >> this is the cause for the change in content type >> >> >> >> >> >> Thanks >> >> >> >> >> >> Ryan >> >> >> >> >> >> Ryan Puddephatt >> >> >> Software Engineer >> >> >> >> >> >> Teleflex Group - IT UK >> >> >> 1 Michaelson Square >> >> >> Livingston >> >> >> West Lothian >> >> >> Scotland >> >> >> EH54 7DP >> >> >> >> >> >> e> [hidden email] >> >> >> t> +44(0)1506 407 110 >> >> >> f> +44(0)1506 407 108 >> >> >> >> >> >> >> >> >> >> >> >> >-----Original Message----- >> >> >> >From: [hidden email] [mailto:[hidden email]] On >Behalf Of >> >> >> >Alessandro Vernet >> >> >> >Sent: 10 November 2006 21:53 >> >> >> >To: [hidden email] >> >> >> >Subject: Re: [ops-users] Exist REST Problems >> >> >> > >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> >> >> I now have another problem, the REST API always >> >returns text/html. >> >> >> >> There is a parameter that can change it, by adding the >> >> >following to >> >> >> >> the EXistServlet >> >> >> > >> >> >> >Ryan, >> >> >> > >> >> >> >I don't have this problem. I am using a verbatim 1.1.1 >> >> >deployed as a >> >> >> >separate war, and if I access >> >> >http://localhost:8090/exist/rest/, the >> >> >> >response I get is: >> >> >> > >> >> >> >HTTP/1.1 200 OK >> >> >> >Server: Apache-Coyote/1.1 >> >> >> >Content-Type: text/xml;charset=UTF-8 >> >> >> >Content-Length: 321 >> >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT >> >> >> > >> >> >> ><exist:result >> >xmlns:exist="http://exist.sourceforge.net/NS/exist"> >> >> >> >... >> >> >> > >> >> >> >Do you see anything that could be different in your case? >> >> >> > >> >> >> >Alex >> >> >> >-- >> >> >> >Blog (XML, Web apps, Open Source): >> >> >> >http://www.orbeon.com/blog/ >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> 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 >> >> >> ObjectWeb mailing lists service home page: >> >> >> http://www.objectweb.org/wws >> >> >> >> >> >> >> >> >> >> >> > >> >> > >> >> >-- >> >> >Blog (XML, Web apps, Open Source): >> >> >http://www.orbeon.com/blog/ >> >> > >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> 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 >> >> ObjectWeb mailing lists service home page: >> >> http://www.objectweb.org/wws >> >> >> >> >> >> >> > >> > >> >-- >> >Blog (XML, Web apps, Open Source): >> >http://www.orbeon.com/blog/ >> > >> > >> >> >> >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >> >> > > >-- >Blog (XML, Web apps, Open Source): >http://www.orbeon.com/blog/ > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ryan,
I see, when you are using _query=... instead of POSTing the response comes back with Content-Type: text/html instead of application/xml. But the result document is the same. While it seems reasonable to return text/html when using the _xsl parameter, I think that the content type of the result should be the same using _query or POSTing the query. Have you raised the issue already on exist-open? Alex On 11/14/06, Ryan Puddephatt <[hidden email]> wrote: > Alex, > I'm not running XSLT just an Xpath query. My hack works for me for > the minute, but the Jtidy idea sounds good to make sure no problems occur > > Thanks > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: [hidden email] [mailto:[hidden email]] On Behalf > >Of Alessandro Vernet > >Sent: 13 November 2006 23:17 > >To: [hidden email] > >Subject: Re: [ops-users] Exist REST Problems > > > >Ryan, > > > >What Phillip is talking about in this thread is little > >different: if I understand his message correctly, he is using > >XSLT on the eXist side to generate RSS, while I am just > >accessing eXist to retrieve a document or run an XQuery > >request through REST. When using XSLT on eXist, it seems that > >eXist makes the assumption you want to generate HTML. Are you > >also running XSLT on the eXist side? > > > >If the service you call from XForms does not return text/xml > >or application/xml, I don't think that we should go ahead and > >parse that as it was XML. One possible improvement is to > >accept text/html but pipe it through JTidy before it gets to > >your XForms instance. > > > >Alex > > > >On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: > >> Alex, > >> I believe Hank has posted a question on the Exist > >mailing list > >> regarding this, I also found this archived email > >> > >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which > >> states that it's the default response (Not sure why). I was > >wondering > >> why an xforms submission can't accept this content type and force a > >> change into xml, and only then throw an error if it isn't > >well formed? > >> > >> Ryan > >> > >> Ryan Puddephatt > >> Software Engineer > >> > >> Teleflex Group - IT UK > >> 1 Michaelson Square > >> Livingston > >> West Lothian > >> Scotland > >> EH54 7DP > >> > >> e> [hidden email] > >> t> +44(0)1506 407 110 > >> f> +44(0)1506 407 108 > >> > >> > >> > >> >-----Original Message----- > >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >Alessandro Vernet > >> >Sent: 11 November 2006 02:39 > >> >To: [hidden email] > >> >Subject: Re: [ops-users] Exist REST Problems > >> > > >> >Ryan, > >> > > >> >Point taken. Let us know if you find a solution through the eXist > >> >list or otherwise. > >> > > >> >Alex > >> > > >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> Alex, > >> >> I can see your argument, but all my queries are simple, > >> >> /product etc. This means I can get all the products in my > >> >application > >> >> for listing (similar to the DMV Summary). This saves me having to > >> >> create a query instance or use XPL because I can do it all > >> >in the src > >> >> (well in theory) > >> >> > >> >> Thanks > >> >> > >> >> Ryan > >> >> > >> >> Ryan Puddephatt > >> >> Software Engineer > >> >> > >> >> Teleflex Group - IT UK > >> >> 1 Michaelson Square > >> >> Livingston > >> >> West Lothian > >> >> Scotland > >> >> EH54 7DP > >> >> > >> >> e> [hidden email] > >> >> t> +44(0)1506 407 110 > >> >> f> +44(0)1506 407 108 > >> >> > >> >> > >> >> > >> >> >-----Original Message----- > >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >> >Alessandro Vernet > >> >> >Sent: 11 November 2006 01:29 > >> >> >To: [hidden email] > >> >> >Subject: Re: [ops-users] Exist REST Problems > >> >> > > >> >> >Ryan, > >> >> > > >> >> >Here I am posting the query from XForms. That is posting a query > >> >> >embedded in a <query> document as the one shown on the > >page linked > >> >> >below. Would you get the text/xml content type when doing a > >> >POST vs. > >> >> >a GET? Is it OK in your case to do a POST? > >> >> > > >> >> >http://exist.sourceforge.net/devguide.html#N10385 > >> >> > > >> >> >(Unless I am sending trivial queries, I don't like very > >> >much the idea > >> >> >of sending them in a query string with a GET, because I > >> >know that one > >> >> >day the query will become too long, exceed the URL length limit > >> >> >and lead to a bug that is hard to find.) > >> >> > > >> >> >Alex > >> >> > > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> >> Alex, > >> >> >> Apart from the fact I'm using an internal > >exist the only > >> >> >> difference I can see is that I'm using the _query parameter to > >> >> >> query the DB rather than pulling a single document, I > >> >believe that > >> >> >> this is the cause for the change in content type > >> >> >> > >> >> >> Thanks > >> >> >> > >> >> >> Ryan > >> >> >> > >> >> >> Ryan Puddephatt > >> >> >> Software Engineer > >> >> >> > >> >> >> Teleflex Group - IT UK > >> >> >> 1 Michaelson Square > >> >> >> Livingston > >> >> >> West Lothian > >> >> >> Scotland > >> >> >> EH54 7DP > >> >> >> > >> >> >> e> [hidden email] > >> >> >> t> +44(0)1506 407 110 > >> >> >> f> +44(0)1506 407 108 > >> >> >> > >> >> >> > >> >> >> > >> >> >> >-----Original Message----- > >> >> >> >From: [hidden email] [mailto:[hidden email]] On > >Behalf Of > >> >> >> >Alessandro Vernet > >> >> >> >Sent: 10 November 2006 21:53 > >> >> >> >To: [hidden email] > >> >> >> >Subject: Re: [ops-users] Exist REST Problems > >> >> >> > > >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> >> >> I now have another problem, the REST API always > >> >returns text/html. > >> >> >> >> There is a parameter that can change it, by adding the > >> >> >following to > >> >> >> >> the EXistServlet > >> >> >> > > >> >> >> >Ryan, > >> >> >> > > >> >> >> >I don't have this problem. I am using a verbatim 1.1.1 > >> >> >deployed as a > >> >> >> >separate war, and if I access > >> >> >http://localhost:8090/exist/rest/, the > >> >> >> >response I get is: > >> >> >> > > >> >> >> >HTTP/1.1 200 OK > >> >> >> >Server: Apache-Coyote/1.1 > >> >> >> >Content-Type: text/xml;charset=UTF-8 > >> >> >> >Content-Length: 321 > >> >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT > >> >> >> > > >> >> >> ><exist:result > >> >xmlns:exist="http://exist.sourceforge.net/NS/exist"> > >> >> >> >... > >> >> >> > > >> >> >> >Do you see anything that could be different in your case? > >> >> >> > > >> >> >> >Alex > >> >> >> >-- > >> >> >> >Blog (XML, Web apps, Open Source): > >> >> >> >http://www.orbeon.com/blog/ > >> >> >> > > >> >> >> > > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> -- > >> >> >> 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 > >> >> >> ObjectWeb mailing lists service home page: > >> >> >> http://www.objectweb.org/wws > >> >> >> > >> >> >> > >> >> >> > >> >> > > >> >> > > >> >> >-- > >> >> >Blog (XML, Web apps, Open Source): > >> >> >http://www.orbeon.com/blog/ > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> 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 > >> >> ObjectWeb mailing lists service home page: > >> >> http://www.objectweb.org/wws > >> >> > >> >> > >> >> > >> > > >> > > >> >-- > >> >Blog (XML, Web apps, Open Source): > >> >http://www.orbeon.com/blog/ > >> > > >> > > >> > >> > >> > >> > >> > >> -- > >> 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 > >> ObjectWeb mailing lists service home page: > >> http://www.objectweb.org/wws > >> > >> > >> > > > > > >-- > >Blog (XML, Web apps, Open Source): > >http://www.orbeon.com/blog/ > > > > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I did, but I did not clarify that GET and POST return different results. I also tried everything to sitemap.xmap with no results, so the issue is with eXist. Would you do us the favor of posting this issue, I think you could be clearer than I. Thank you, Hank Hank Ratzesberger Institute for Crustal Studies University of California, Santa Barbara ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]> To: <[hidden email]> Sent: Tuesday, November 14, 2006 3:45 PM Subject: Re: [ops-users] Exist REST Problems > Ryan, > > I see, when you are using _query=... instead of POSTing the response > comes back with Content-Type: text/html instead of application/xml. > But the result document is the same. > > While it seems reasonable to return text/html when using the _xsl > parameter, I think that the content type of the result should be the > same using _query or POSTing the query. Have you raised the issue > already on exist-open? > > Alex > > On 11/14/06, Ryan Puddephatt <[hidden email]> wrote: >> Alex, >> I'm not running XSLT just an Xpath query. My hack works for me for >> the minute, but the Jtidy idea sounds good to make sure no problems occur >> >> Thanks >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >-----Original Message----- >> >From: [hidden email] [mailto:[hidden email]] On Behalf >> >Of Alessandro Vernet >> >Sent: 13 November 2006 23:17 >> >To: [hidden email] >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >Ryan, >> > >> >What Phillip is talking about in this thread is little >> >different: if I understand his message correctly, he is using >> >XSLT on the eXist side to generate RSS, while I am just >> >accessing eXist to retrieve a document or run an XQuery >> >request through REST. When using XSLT on eXist, it seems that >> >eXist makes the assumption you want to generate HTML. Are you >> >also running XSLT on the eXist side? >> > >> >If the service you call from XForms does not return text/xml >> >or application/xml, I don't think that we should go ahead and >> >parse that as it was XML. One possible improvement is to >> >accept text/html but pipe it through JTidy before it gets to >> >your XForms instance. >> > >> >Alex >> > >> >On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: >> >> Alex, >> >> I believe Hank has posted a question on the Exist >> >mailing list >> >> regarding this, I also found this archived email >> >> >> >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which >> >> states that it's the default response (Not sure why). I was >> >wondering >> >> why an xforms submission can't accept this content type and force a >> >> change into xml, and only then throw an error if it isn't >> >well formed? >> >> >> >> Ryan >> >> >> >> Ryan Puddephatt >> >> Software Engineer >> >> >> >> Teleflex Group - IT UK >> >> 1 Michaelson Square >> >> Livingston >> >> West Lothian >> >> Scotland >> >> EH54 7DP >> >> >> >> e> [hidden email] >> >> t> +44(0)1506 407 110 >> >> f> +44(0)1506 407 108 >> >> >> >> >> >> >> >> >-----Original Message----- >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >> >Alessandro Vernet >> >> >Sent: 11 November 2006 02:39 >> >> >To: [hidden email] >> >> >Subject: Re: [ops-users] Exist REST Problems >> >> > >> >> >Ryan, >> >> > >> >> >Point taken. Let us know if you find a solution through the eXist >> >> >list or otherwise. >> >> > >> >> >Alex >> >> > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> >> Alex, >> >> >> I can see your argument, but all my queries are simple, >> >> >> /product etc. This means I can get all the products in my >> >> >application >> >> >> for listing (similar to the DMV Summary). This saves me having to >> >> >> create a query instance or use XPL because I can do it all >> >> >in the src >> >> >> (well in theory) >> >> >> >> >> >> Thanks >> >> >> >> >> >> Ryan >> >> >> >> >> >> Ryan Puddephatt >> >> >> Software Engineer >> >> >> >> >> >> Teleflex Group - IT UK >> >> >> 1 Michaelson Square >> >> >> Livingston >> >> >> West Lothian >> >> >> Scotland >> >> >> EH54 7DP >> >> >> >> >> >> e> [hidden email] >> >> >> t> +44(0)1506 407 110 >> >> >> f> +44(0)1506 407 108 >> >> >> >> >> >> >> >> >> >> >> >> >-----Original Message----- >> >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> >> >> >Alessandro Vernet >> >> >> >Sent: 11 November 2006 01:29 >> >> >> >To: [hidden email] >> >> >> >Subject: Re: [ops-users] Exist REST Problems >> >> >> > >> >> >> >Ryan, >> >> >> > >> >> >> >Here I am posting the query from XForms. That is posting a query >> >> >> >embedded in a <query> document as the one shown on the >> >page linked >> >> >> >below. Would you get the text/xml content type when doing a >> >> >POST vs. >> >> >> >a GET? Is it OK in your case to do a POST? >> >> >> > >> >> >> >http://exist.sourceforge.net/devguide.html#N10385 >> >> >> > >> >> >> >(Unless I am sending trivial queries, I don't like very >> >> >much the idea >> >> >> >of sending them in a query string with a GET, because I >> >> >know that one >> >> >> >day the query will become too long, exceed the URL length limit >> >> >> >and lead to a bug that is hard to find.) >> >> >> > >> >> >> >Alex >> >> >> > >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> >> >> Alex, >> >> >> >> Apart from the fact I'm using an internal >> >exist the only >> >> >> >> difference I can see is that I'm using the _query parameter to >> >> >> >> query the DB rather than pulling a single document, I >> >> >believe that >> >> >> >> this is the cause for the change in content type >> >> >> >> >> >> >> >> Thanks >> >> >> >> >> >> >> >> Ryan >> >> >> >> >> >> >> >> Ryan Puddephatt >> >> >> >> Software Engineer >> >> >> >> >> >> >> >> Teleflex Group - IT UK >> >> >> >> 1 Michaelson Square >> >> >> >> Livingston >> >> >> >> West Lothian >> >> >> >> Scotland >> >> >> >> EH54 7DP >> >> >> >> >> >> >> >> e> [hidden email] >> >> >> >> t> +44(0)1506 407 110 >> >> >> >> f> +44(0)1506 407 108 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >-----Original Message----- >> >> >> >> >From: [hidden email] [mailto:[hidden email]] On >> >Behalf Of >> >> >> >> >Alessandro Vernet >> >> >> >> >Sent: 10 November 2006 21:53 >> >> >> >> >To: [hidden email] >> >> >> >> >Subject: Re: [ops-users] Exist REST Problems >> >> >> >> > >> >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> >> >> >> >> I now have another problem, the REST API always >> >> >returns text/html. >> >> >> >> >> There is a parameter that can change it, by adding the >> >> >> >following to >> >> >> >> >> the EXistServlet >> >> >> >> > >> >> >> >> >Ryan, >> >> >> >> > >> >> >> >> >I don't have this problem. I am using a verbatim 1.1.1 >> >> >> >deployed as a >> >> >> >> >separate war, and if I access >> >> >> >http://localhost:8090/exist/rest/, the >> >> >> >> >response I get is: >> >> >> >> > >> >> >> >> >HTTP/1.1 200 OK >> >> >> >> >Server: Apache-Coyote/1.1 >> >> >> >> >Content-Type: text/xml;charset=UTF-8 >> >> >> >> >Content-Length: 321 >> >> >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT >> >> >> >> > >> >> >> >> ><exist:result >> >> >xmlns:exist="http://exist.sourceforge.net/NS/exist"> >> >> >> >> >... >> >> >> >> > >> >> >> >> >Do you see anything that could be different in your case? >> >> >> >> > >> >> >> >> >Alex >> >> >> >> >-- >> >> >> >> >Blog (XML, Web apps, Open Source): >> >> >> >> >http://www.orbeon.com/blog/ >> >> >> >> > >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> 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 >> >> >> >> ObjectWeb mailing lists service home page: >> >> >> >> http://www.objectweb.org/wws >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> >-- >> >> >> >Blog (XML, Web apps, Open Source): >> >> >> >http://www.orbeon.com/blog/ >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> 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 >> >> >> ObjectWeb mailing lists service home page: >> >> >> http://www.objectweb.org/wws >> >> >> >> >> >> >> >> >> >> >> > >> >> > >> >> >-- >> >> >Blog (XML, Web apps, Open Source): >> >> >http://www.orbeon.com/blog/ >> >> > >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> 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 >> >> ObjectWeb mailing lists service home page: >> >> http://www.objectweb.org/wws >> >> >> >> >> >> >> > >> > >> >-- >> >Blog (XML, Web apps, Open Source): >> >http://www.orbeon.com/blog/ >> > >> > >> >> >> >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> >> >> > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > -------------------------------------------------------------------------------- > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hank,
OK, I sent the question in exist-open. Let's see what comes out of it :). Here is the message for reference: http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html Alex On 11/14/06, Hank Ratzesberger <[hidden email]> wrote: > > I did, but I did not clarify that GET and POST return > different results. > > I also tried everything to sitemap.xmap with > no results, so the issue is with eXist. > > Would you do us the favor of posting this issue, > I think you could be clearer than I. > > Thank you, > Hank > > Hank Ratzesberger > Institute for Crustal Studies > University of California, Santa Barbara > > > ----- Original Message ----- > From: "Alessandro Vernet" <[hidden email]> > To: <[hidden email]> > Sent: Tuesday, November 14, 2006 3:45 PM > Subject: Re: [ops-users] Exist REST Problems > > > > Ryan, > > > > I see, when you are using _query=... instead of POSTing the response > > comes back with Content-Type: text/html instead of application/xml. > > But the result document is the same. > > > > While it seems reasonable to return text/html when using the _xsl > > parameter, I think that the content type of the result should be the > > same using _query or POSTing the query. Have you raised the issue > > already on exist-open? > > > > Alex > > > > On 11/14/06, Ryan Puddephatt <[hidden email]> wrote: > >> Alex, > >> I'm not running XSLT just an Xpath query. My hack works for me for > >> the minute, but the Jtidy idea sounds good to make sure no problems occur > >> > >> Thanks > >> > >> Ryan > >> > >> Ryan Puddephatt > >> Software Engineer > >> > >> Teleflex Group - IT UK > >> 1 Michaelson Square > >> Livingston > >> West Lothian > >> Scotland > >> EH54 7DP > >> > >> e> [hidden email] > >> t> +44(0)1506 407 110 > >> f> +44(0)1506 407 108 > >> > >> > >> > >> >-----Original Message----- > >> >From: [hidden email] [mailto:[hidden email]] On Behalf > >> >Of Alessandro Vernet > >> >Sent: 13 November 2006 23:17 > >> >To: [hidden email] > >> >Subject: Re: [ops-users] Exist REST Problems > >> > > >> >Ryan, > >> > > >> >What Phillip is talking about in this thread is little > >> >different: if I understand his message correctly, he is using > >> >XSLT on the eXist side to generate RSS, while I am just > >> >accessing eXist to retrieve a document or run an XQuery > >> >request through REST. When using XSLT on eXist, it seems that > >> >eXist makes the assumption you want to generate HTML. Are you > >> >also running XSLT on the eXist side? > >> > > >> >If the service you call from XForms does not return text/xml > >> >or application/xml, I don't think that we should go ahead and > >> >parse that as it was XML. One possible improvement is to > >> >accept text/html but pipe it through JTidy before it gets to > >> >your XForms instance. > >> > > >> >Alex > >> > > >> >On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> Alex, > >> >> I believe Hank has posted a question on the Exist > >> >mailing list > >> >> regarding this, I also found this archived email > >> >> > >> >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which > >> >> states that it's the default response (Not sure why). I was > >> >wondering > >> >> why an xforms submission can't accept this content type and force a > >> >> change into xml, and only then throw an error if it isn't > >> >well formed? > >> >> > >> >> Ryan > >> >> > >> >> Ryan Puddephatt > >> >> Software Engineer > >> >> > >> >> Teleflex Group - IT UK > >> >> 1 Michaelson Square > >> >> Livingston > >> >> West Lothian > >> >> Scotland > >> >> EH54 7DP > >> >> > >> >> e> [hidden email] > >> >> t> +44(0)1506 407 110 > >> >> f> +44(0)1506 407 108 > >> >> > >> >> > >> >> > >> >> >-----Original Message----- > >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >> >Alessandro Vernet > >> >> >Sent: 11 November 2006 02:39 > >> >> >To: [hidden email] > >> >> >Subject: Re: [ops-users] Exist REST Problems > >> >> > > >> >> >Ryan, > >> >> > > >> >> >Point taken. Let us know if you find a solution through the eXist > >> >> >list or otherwise. > >> >> > > >> >> >Alex > >> >> > > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> >> Alex, > >> >> >> I can see your argument, but all my queries are simple, > >> >> >> /product etc. This means I can get all the products in my > >> >> >application > >> >> >> for listing (similar to the DMV Summary). This saves me having to > >> >> >> create a query instance or use XPL because I can do it all > >> >> >in the src > >> >> >> (well in theory) > >> >> >> > >> >> >> Thanks > >> >> >> > >> >> >> Ryan > >> >> >> > >> >> >> Ryan Puddephatt > >> >> >> Software Engineer > >> >> >> > >> >> >> Teleflex Group - IT UK > >> >> >> 1 Michaelson Square > >> >> >> Livingston > >> >> >> West Lothian > >> >> >> Scotland > >> >> >> EH54 7DP > >> >> >> > >> >> >> e> [hidden email] > >> >> >> t> +44(0)1506 407 110 > >> >> >> f> +44(0)1506 407 108 > >> >> >> > >> >> >> > >> >> >> > >> >> >> >-----Original Message----- > >> >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > >> >> >> >Alessandro Vernet > >> >> >> >Sent: 11 November 2006 01:29 > >> >> >> >To: [hidden email] > >> >> >> >Subject: Re: [ops-users] Exist REST Problems > >> >> >> > > >> >> >> >Ryan, > >> >> >> > > >> >> >> >Here I am posting the query from XForms. That is posting a query > >> >> >> >embedded in a <query> document as the one shown on the > >> >page linked > >> >> >> >below. Would you get the text/xml content type when doing a > >> >> >POST vs. > >> >> >> >a GET? Is it OK in your case to do a POST? > >> >> >> > > >> >> >> >http://exist.sourceforge.net/devguide.html#N10385 > >> >> >> > > >> >> >> >(Unless I am sending trivial queries, I don't like very > >> >> >much the idea > >> >> >> >of sending them in a query string with a GET, because I > >> >> >know that one > >> >> >> >day the query will become too long, exceed the URL length limit > >> >> >> >and lead to a bug that is hard to find.) > >> >> >> > > >> >> >> >Alex > >> >> >> > > >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> >> >> Alex, > >> >> >> >> Apart from the fact I'm using an internal > >> >exist the only > >> >> >> >> difference I can see is that I'm using the _query parameter to > >> >> >> >> query the DB rather than pulling a single document, I > >> >> >believe that > >> >> >> >> this is the cause for the change in content type > >> >> >> >> > >> >> >> >> Thanks > >> >> >> >> > >> >> >> >> Ryan > >> >> >> >> > >> >> >> >> Ryan Puddephatt > >> >> >> >> Software Engineer > >> >> >> >> > >> >> >> >> Teleflex Group - IT UK > >> >> >> >> 1 Michaelson Square > >> >> >> >> Livingston > >> >> >> >> West Lothian > >> >> >> >> Scotland > >> >> >> >> EH54 7DP > >> >> >> >> > >> >> >> >> e> [hidden email] > >> >> >> >> t> +44(0)1506 407 110 > >> >> >> >> f> +44(0)1506 407 108 > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> >-----Original Message----- > >> >> >> >> >From: [hidden email] [mailto:[hidden email]] On > >> >Behalf Of > >> >> >> >> >Alessandro Vernet > >> >> >> >> >Sent: 10 November 2006 21:53 > >> >> >> >> >To: [hidden email] > >> >> >> >> >Subject: Re: [ops-users] Exist REST Problems > >> >> >> >> > > >> >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > >> >> >> >> >> I now have another problem, the REST API always > >> >> >returns text/html. > >> >> >> >> >> There is a parameter that can change it, by adding the > >> >> >> >following to > >> >> >> >> >> the EXistServlet > >> >> >> >> > > >> >> >> >> >Ryan, > >> >> >> >> > > >> >> >> >> >I don't have this problem. I am using a verbatim 1.1.1 > >> >> >> >deployed as a > >> >> >> >> >separate war, and if I access > >> >> >> >http://localhost:8090/exist/rest/, the > >> >> >> >> >response I get is: > >> >> >> >> > > >> >> >> >> >HTTP/1.1 200 OK > >> >> >> >> >Server: Apache-Coyote/1.1 > >> >> >> >> >Content-Type: text/xml;charset=UTF-8 > >> >> >> >> >Content-Length: 321 > >> >> >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT > >> >> >> >> > > >> >> >> >> ><exist:result > >> >> >xmlns:exist="http://exist.sourceforge.net/NS/exist"> > >> >> >> >> >... > >> >> >> >> > > >> >> >> >> >Do you see anything that could be different in your case? > >> >> >> >> > > >> >> >> >> >Alex > >> >> >> >> >-- > >> >> >> >> >Blog (XML, Web apps, Open Source): > >> >> >> >> >http://www.orbeon.com/blog/ > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> -- > >> >> >> >> 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 > >> >> >> >> ObjectWeb mailing lists service home page: > >> >> >> >> http://www.objectweb.org/wws > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> > > >> >> >> > > >> >> >> >-- > >> >> >> >Blog (XML, Web apps, Open Source): > >> >> >> >http://www.orbeon.com/blog/ > >> >> >> > > >> >> >> > > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> -- > >> >> >> 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 > >> >> >> ObjectWeb mailing lists service home page: > >> >> >> http://www.objectweb.org/wws > >> >> >> > >> >> >> > >> >> >> > >> >> > > >> >> > > >> >> >-- > >> >> >Blog (XML, Web apps, Open Source): > >> >> >http://www.orbeon.com/blog/ > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> 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 > >> >> ObjectWeb mailing lists service home page: > >> >> http://www.objectweb.org/wws > >> >> > >> >> > >> >> > >> > > >> > > >> >-- > >> >Blog (XML, Web apps, Open Source): > >> >http://www.orbeon.com/blog/ > >> > > >> > > >> > >> > >> > >> > >> > >> -- > >> 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 > >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > >> > >> > >> > > > > > > -- > > Blog (XML, Web apps, Open Source): > > http://www.orbeon.com/blog/ > > > > > > > -------------------------------------------------------------------------------- > > > > > > -- > > 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 > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hank, Ryan,
Adam on the exit-open list said he will fix this issue "in a few days". His message: http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html#a7367007 Alex On 11/14/06, Alessandro Vernet <[hidden email]> wrote: > Hank, > > OK, I sent the question in exist-open. Let's see what comes out of it > :). Here is the message for reference: > > http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html > > Alex > > On 11/14/06, Hank Ratzesberger <[hidden email]> wrote: > > > > I did, but I did not clarify that GET and POST return > > different results. > > > > I also tried everything to sitemap.xmap with > > no results, so the issue is with eXist. > > > > Would you do us the favor of posting this issue, > > I think you could be clearer than I. > > > > Thank you, > > Hank > > > > Hank Ratzesberger > > Institute for Crustal Studies > > University of California, Santa Barbara > > > > > > ----- Original Message ----- > > From: "Alessandro Vernet" <[hidden email]> > > To: <[hidden email]> > > Sent: Tuesday, November 14, 2006 3:45 PM > > Subject: Re: [ops-users] Exist REST Problems > > > > > > > Ryan, > > > > > > I see, when you are using _query=... instead of POSTing the response > > > comes back with Content-Type: text/html instead of application/xml. > > > But the result document is the same. > > > > > > While it seems reasonable to return text/html when using the _xsl > > > parameter, I think that the content type of the result should be the > > > same using _query or POSTing the query. Have you raised the issue > > > already on exist-open? > > > > > > Alex > > > > > > On 11/14/06, Ryan Puddephatt <[hidden email]> wrote: > > >> Alex, > > >> I'm not running XSLT just an Xpath query. My hack works for me for > > >> the minute, but the Jtidy idea sounds good to make sure no problems occur > > >> > > >> Thanks > > >> > > >> Ryan > > >> > > >> Ryan Puddephatt > > >> Software Engineer > > >> > > >> Teleflex Group - IT UK > > >> 1 Michaelson Square > > >> Livingston > > >> West Lothian > > >> Scotland > > >> EH54 7DP > > >> > > >> e> [hidden email] > > >> t> +44(0)1506 407 110 > > >> f> +44(0)1506 407 108 > > >> > > >> > > >> > > >> >-----Original Message----- > > >> >From: [hidden email] [mailto:[hidden email]] On Behalf > > >> >Of Alessandro Vernet > > >> >Sent: 13 November 2006 23:17 > > >> >To: [hidden email] > > >> >Subject: Re: [ops-users] Exist REST Problems > > >> > > > >> >Ryan, > > >> > > > >> >What Phillip is talking about in this thread is little > > >> >different: if I understand his message correctly, he is using > > >> >XSLT on the eXist side to generate RSS, while I am just > > >> >accessing eXist to retrieve a document or run an XQuery > > >> >request through REST. When using XSLT on eXist, it seems that > > >> >eXist makes the assumption you want to generate HTML. Are you > > >> >also running XSLT on the eXist side? > > >> > > > >> >If the service you call from XForms does not return text/xml > > >> >or application/xml, I don't think that we should go ahead and > > >> >parse that as it was XML. One possible improvement is to > > >> >accept text/html but pipe it through JTidy before it gets to > > >> >your XForms instance. > > >> > > > >> >Alex > > >> > > > >> >On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: > > >> >> Alex, > > >> >> I believe Hank has posted a question on the Exist > > >> >mailing list > > >> >> regarding this, I also found this archived email > > >> >> > > >> >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which > > >> >> states that it's the default response (Not sure why). I was > > >> >wondering > > >> >> why an xforms submission can't accept this content type and force a > > >> >> change into xml, and only then throw an error if it isn't > > >> >well formed? > > >> >> > > >> >> Ryan > > >> >> > > >> >> Ryan Puddephatt > > >> >> Software Engineer > > >> >> > > >> >> Teleflex Group - IT UK > > >> >> 1 Michaelson Square > > >> >> Livingston > > >> >> West Lothian > > >> >> Scotland > > >> >> EH54 7DP > > >> >> > > >> >> e> [hidden email] > > >> >> t> +44(0)1506 407 110 > > >> >> f> +44(0)1506 407 108 > > >> >> > > >> >> > > >> >> > > >> >> >-----Original Message----- > > >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > > >> >> >Alessandro Vernet > > >> >> >Sent: 11 November 2006 02:39 > > >> >> >To: [hidden email] > > >> >> >Subject: Re: [ops-users] Exist REST Problems > > >> >> > > > >> >> >Ryan, > > >> >> > > > >> >> >Point taken. Let us know if you find a solution through the eXist > > >> >> >list or otherwise. > > >> >> > > > >> >> >Alex > > >> >> > > > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > > >> >> >> Alex, > > >> >> >> I can see your argument, but all my queries are simple, > > >> >> >> /product etc. This means I can get all the products in my > > >> >> >application > > >> >> >> for listing (similar to the DMV Summary). This saves me having to > > >> >> >> create a query instance or use XPL because I can do it all > > >> >> >in the src > > >> >> >> (well in theory) > > >> >> >> > > >> >> >> Thanks > > >> >> >> > > >> >> >> Ryan > > >> >> >> > > >> >> >> Ryan Puddephatt > > >> >> >> Software Engineer > > >> >> >> > > >> >> >> Teleflex Group - IT UK > > >> >> >> 1 Michaelson Square > > >> >> >> Livingston > > >> >> >> West Lothian > > >> >> >> Scotland > > >> >> >> EH54 7DP > > >> >> >> > > >> >> >> e> [hidden email] > > >> >> >> t> +44(0)1506 407 110 > > >> >> >> f> +44(0)1506 407 108 > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> >-----Original Message----- > > >> >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of > > >> >> >> >Alessandro Vernet > > >> >> >> >Sent: 11 November 2006 01:29 > > >> >> >> >To: [hidden email] > > >> >> >> >Subject: Re: [ops-users] Exist REST Problems > > >> >> >> > > > >> >> >> >Ryan, > > >> >> >> > > > >> >> >> >Here I am posting the query from XForms. That is posting a query > > >> >> >> >embedded in a <query> document as the one shown on the > > >> >page linked > > >> >> >> >below. Would you get the text/xml content type when doing a > > >> >> >POST vs. > > >> >> >> >a GET? Is it OK in your case to do a POST? > > >> >> >> > > > >> >> >> >http://exist.sourceforge.net/devguide.html#N10385 > > >> >> >> > > > >> >> >> >(Unless I am sending trivial queries, I don't like very > > >> >> >much the idea > > >> >> >> >of sending them in a query string with a GET, because I > > >> >> >know that one > > >> >> >> >day the query will become too long, exceed the URL length limit > > >> >> >> >and lead to a bug that is hard to find.) > > >> >> >> > > > >> >> >> >Alex > > >> >> >> > > > >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > > >> >> >> >> Alex, > > >> >> >> >> Apart from the fact I'm using an internal > > >> >exist the only > > >> >> >> >> difference I can see is that I'm using the _query parameter to > > >> >> >> >> query the DB rather than pulling a single document, I > > >> >> >believe that > > >> >> >> >> this is the cause for the change in content type > > >> >> >> >> > > >> >> >> >> Thanks > > >> >> >> >> > > >> >> >> >> Ryan > > >> >> >> >> > > >> >> >> >> Ryan Puddephatt > > >> >> >> >> Software Engineer > > >> >> >> >> > > >> >> >> >> Teleflex Group - IT UK > > >> >> >> >> 1 Michaelson Square > > >> >> >> >> Livingston > > >> >> >> >> West Lothian > > >> >> >> >> Scotland > > >> >> >> >> EH54 7DP > > >> >> >> >> > > >> >> >> >> e> [hidden email] > > >> >> >> >> t> +44(0)1506 407 110 > > >> >> >> >> f> +44(0)1506 407 108 > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> >-----Original Message----- > > >> >> >> >> >From: [hidden email] [mailto:[hidden email]] On > > >> >Behalf Of > > >> >> >> >> >Alessandro Vernet > > >> >> >> >> >Sent: 10 November 2006 21:53 > > >> >> >> >> >To: [hidden email] > > >> >> >> >> >Subject: Re: [ops-users] Exist REST Problems > > >> >> >> >> > > > >> >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: > > >> >> >> >> >> I now have another problem, the REST API always > > >> >> >returns text/html. > > >> >> >> >> >> There is a parameter that can change it, by adding the > > >> >> >> >following to > > >> >> >> >> >> the EXistServlet > > >> >> >> >> > > > >> >> >> >> >Ryan, > > >> >> >> >> > > > >> >> >> >> >I don't have this problem. I am using a verbatim 1.1.1 > > >> >> >> >deployed as a > > >> >> >> >> >separate war, and if I access > > >> >> >> >http://localhost:8090/exist/rest/, the > > >> >> >> >> >response I get is: > > >> >> >> >> > > > >> >> >> >> >HTTP/1.1 200 OK > > >> >> >> >> >Server: Apache-Coyote/1.1 > > >> >> >> >> >Content-Type: text/xml;charset=UTF-8 > > >> >> >> >> >Content-Length: 321 > > >> >> >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT > > >> >> >> >> > > > >> >> >> >> ><exist:result > > >> >> >xmlns:exist="http://exist.sourceforge.net/NS/exist"> > > >> >> >> >> >... > > >> >> >> >> > > > >> >> >> >> >Do you see anything that could be different in your case? > > >> >> >> >> > > > >> >> >> >> >Alex > > >> >> >> >> >-- > > >> >> >> >> >Blog (XML, Web apps, Open Source): > > >> >> >> >> >http://www.orbeon.com/blog/ > > >> >> >> >> > > > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> -- > > >> >> >> >> 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 > > >> >> >> >> ObjectWeb mailing lists service home page: > > >> >> >> >> http://www.objectweb.org/wws > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> > > > >> >> >> > > > >> >> >> >-- > > >> >> >> >Blog (XML, Web apps, Open Source): > > >> >> >> >http://www.orbeon.com/blog/ > > >> >> >> > > > >> >> >> > > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> -- > > >> >> >> 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 > > >> >> >> ObjectWeb mailing lists service home page: > > >> >> >> http://www.objectweb.org/wws > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> > > > >> >> > > > >> >> >-- > > >> >> >Blog (XML, Web apps, Open Source): > > >> >> >http://www.orbeon.com/blog/ > > >> >> > > > >> >> > > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> -- > > >> >> 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 > > >> >> ObjectWeb mailing lists service home page: > > >> >> http://www.objectweb.org/wws > > >> >> > > >> >> > > >> >> > > >> > > > >> > > > >> >-- > > >> >Blog (XML, Web apps, Open Source): > > >> >http://www.orbeon.com/blog/ > > >> > > > >> > > > >> > > >> > > >> > > >> > > >> > > >> -- > > >> 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 > > >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > >> > > >> > > >> > > > > > > > > > -- > > > Blog (XML, Web apps, Open Source): > > > http://www.orbeon.com/blog/ > > > > > > > > > > > > -------------------------------------------------------------------------------- > > > > > > > > > > -- > > > 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 > > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > > > > > > > -- > > 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 > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex. I notice that you were asked in turn to
post the bug report, again, appreciate it. --Hank ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]> To: <[hidden email]> Sent: Wednesday, November 15, 2006 5:08 PM Subject: Re: [ops-users] Exist REST Problems > Hank, Ryan, > > Adam on the exit-open list said he will fix this issue "in a few > days". His message: > > http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html#a7367007 > > Alex > > On 11/14/06, Alessandro Vernet <[hidden email]> wrote: >> Hank, >> >> OK, I sent the question in exist-open. Let's see what comes out of it >> :). Here is the message for reference: >> >> http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html >> >> Alex >> >> On 11/14/06, Hank Ratzesberger <[hidden email]> wrote: >> > >> > I did, but I did not clarify that GET and POST return >> > different results. >> > >> > I also tried everything to sitemap.xmap with >> > no results, so the issue is with eXist. >> > >> > Would you do us the favor of posting this issue, >> > I think you could be clearer than I. >> > >> > Thank you, >> > Hank >> > >> > Hank Ratzesberger >> > Institute for Crustal Studies >> > University of California, Santa Barbara >> > >> > >> > ----- Original Message ----- >> > From: "Alessandro Vernet" <[hidden email]> >> > To: <[hidden email]> >> > Sent: Tuesday, November 14, 2006 3:45 PM >> > Subject: Re: [ops-users] Exist REST Problems >> > >> > >> > > Ryan, >> > > >> > > I see, when you are using _query=... instead of POSTing the response >> > > comes back with Content-Type: text/html instead of application/xml. >> > > But the result document is the same. >> > > >> > > While it seems reasonable to return text/html when using the _xsl >> > > parameter, I think that the content type of the result should be the >> > > same using _query or POSTing the query. Have you raised the issue >> > > already on exist-open? >> > > >> > > Alex >> > > >> > > On 11/14/06, Ryan Puddephatt <[hidden email]> wrote: >> > >> Alex, >> > >> I'm not running XSLT just an Xpath query. My hack works for me for >> > >> the minute, but the Jtidy idea sounds good to make sure no problems occur >> > >> >> > >> Thanks >> > >> >> > >> Ryan >> > >> >> > >> Ryan Puddephatt >> > >> Software Engineer >> > >> >> > >> Teleflex Group - IT UK >> > >> 1 Michaelson Square >> > >> Livingston >> > >> West Lothian >> > >> Scotland >> > >> EH54 7DP >> > >> >> > >> e> [hidden email] >> > >> t> +44(0)1506 407 110 >> > >> f> +44(0)1506 407 108 >> > >> >> > >> >> > >> >> > >> >-----Original Message----- >> > >> >From: [hidden email] [mailto:[hidden email]] On Behalf >> > >> >Of Alessandro Vernet >> > >> >Sent: 13 November 2006 23:17 >> > >> >To: [hidden email] >> > >> >Subject: Re: [ops-users] Exist REST Problems >> > >> > >> > >> >Ryan, >> > >> > >> > >> >What Phillip is talking about in this thread is little >> > >> >different: if I understand his message correctly, he is using >> > >> >XSLT on the eXist side to generate RSS, while I am just >> > >> >accessing eXist to retrieve a document or run an XQuery >> > >> >request through REST. When using XSLT on eXist, it seems that >> > >> >eXist makes the assumption you want to generate HTML. Are you >> > >> >also running XSLT on the eXist side? >> > >> > >> > >> >If the service you call from XForms does not return text/xml >> > >> >or application/xml, I don't think that we should go ahead and >> > >> >parse that as it was XML. One possible improvement is to >> > >> >accept text/html but pipe it through JTidy before it gets to >> > >> >your XForms instance. >> > >> > >> > >> >Alex >> > >> > >> > >> >On 11/11/06, Ryan Puddephatt <[hidden email]> wrote: >> > >> >> Alex, >> > >> >> I believe Hank has posted a question on the Exist >> > >> >mailing list >> > >> >> regarding this, I also found this archived email >> > >> >> >> > >> >http://sourceforge.net/mailarchive/message.php?msg_id=36645468, which >> > >> >> states that it's the default response (Not sure why). I was >> > >> >wondering >> > >> >> why an xforms submission can't accept this content type and force a >> > >> >> change into xml, and only then throw an error if it isn't >> > >> >well formed? >> > >> >> >> > >> >> Ryan >> > >> >> >> > >> >> Ryan Puddephatt >> > >> >> Software Engineer >> > >> >> >> > >> >> Teleflex Group - IT UK >> > >> >> 1 Michaelson Square >> > >> >> Livingston >> > >> >> West Lothian >> > >> >> Scotland >> > >> >> EH54 7DP >> > >> >> >> > >> >> e> [hidden email] >> > >> >> t> +44(0)1506 407 110 >> > >> >> f> +44(0)1506 407 108 >> > >> >> >> > >> >> >> > >> >> >> > >> >> >-----Original Message----- >> > >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> > >> >> >Alessandro Vernet >> > >> >> >Sent: 11 November 2006 02:39 >> > >> >> >To: [hidden email] >> > >> >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >> > >> > >> >> >Ryan, >> > >> >> > >> > >> >> >Point taken. Let us know if you find a solution through the eXist >> > >> >> >list or otherwise. >> > >> >> > >> > >> >> >Alex >> > >> >> > >> > >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> > >> >> >> Alex, >> > >> >> >> I can see your argument, but all my queries are simple, >> > >> >> >> /product etc. This means I can get all the products in my >> > >> >> >application >> > >> >> >> for listing (similar to the DMV Summary). This saves me having to >> > >> >> >> create a query instance or use XPL because I can do it all >> > >> >> >in the src >> > >> >> >> (well in theory) >> > >> >> >> >> > >> >> >> Thanks >> > >> >> >> >> > >> >> >> Ryan >> > >> >> >> >> > >> >> >> Ryan Puddephatt >> > >> >> >> Software Engineer >> > >> >> >> >> > >> >> >> Teleflex Group - IT UK >> > >> >> >> 1 Michaelson Square >> > >> >> >> Livingston >> > >> >> >> West Lothian >> > >> >> >> Scotland >> > >> >> >> EH54 7DP >> > >> >> >> >> > >> >> >> e> [hidden email] >> > >> >> >> t> +44(0)1506 407 110 >> > >> >> >> f> +44(0)1506 407 108 >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >-----Original Message----- >> > >> >> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of >> > >> >> >> >Alessandro Vernet >> > >> >> >> >Sent: 11 November 2006 01:29 >> > >> >> >> >To: [hidden email] >> > >> >> >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >> >> > >> > >> >> >> >Ryan, >> > >> >> >> > >> > >> >> >> >Here I am posting the query from XForms. That is posting a query >> > >> >> >> >embedded in a <query> document as the one shown on the >> > >> >page linked >> > >> >> >> >below. Would you get the text/xml content type when doing a >> > >> >> >POST vs. >> > >> >> >> >a GET? Is it OK in your case to do a POST? >> > >> >> >> > >> > >> >> >> >http://exist.sourceforge.net/devguide.html#N10385 >> > >> >> >> > >> > >> >> >> >(Unless I am sending trivial queries, I don't like very >> > >> >> >much the idea >> > >> >> >> >of sending them in a query string with a GET, because I >> > >> >> >know that one >> > >> >> >> >day the query will become too long, exceed the URL length limit >> > >> >> >> >and lead to a bug that is hard to find.) >> > >> >> >> > >> > >> >> >> >Alex >> > >> >> >> > >> > >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> > >> >> >> >> Alex, >> > >> >> >> >> Apart from the fact I'm using an internal >> > >> >exist the only >> > >> >> >> >> difference I can see is that I'm using the _query parameter to >> > >> >> >> >> query the DB rather than pulling a single document, I >> > >> >> >believe that >> > >> >> >> >> this is the cause for the change in content type >> > >> >> >> >> >> > >> >> >> >> Thanks >> > >> >> >> >> >> > >> >> >> >> Ryan >> > >> >> >> >> >> > >> >> >> >> Ryan Puddephatt >> > >> >> >> >> Software Engineer >> > >> >> >> >> >> > >> >> >> >> Teleflex Group - IT UK >> > >> >> >> >> 1 Michaelson Square >> > >> >> >> >> Livingston >> > >> >> >> >> West Lothian >> > >> >> >> >> Scotland >> > >> >> >> >> EH54 7DP >> > >> >> >> >> >> > >> >> >> >> e> [hidden email] >> > >> >> >> >> t> +44(0)1506 407 110 >> > >> >> >> >> f> +44(0)1506 407 108 >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >-----Original Message----- >> > >> >> >> >> >From: [hidden email] [mailto:[hidden email]] On >> > >> >Behalf Of >> > >> >> >> >> >Alessandro Vernet >> > >> >> >> >> >Sent: 10 November 2006 21:53 >> > >> >> >> >> >To: [hidden email] >> > >> >> >> >> >Subject: Re: [ops-users] Exist REST Problems >> > >> >> >> >> > >> > >> >> >> >> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote: >> > >> >> >> >> >> I now have another problem, the REST API always >> > >> >> >returns text/html. >> > >> >> >> >> >> There is a parameter that can change it, by adding the >> > >> >> >> >following to >> > >> >> >> >> >> the EXistServlet >> > >> >> >> >> > >> > >> >> >> >> >Ryan, >> > >> >> >> >> > >> > >> >> >> >> >I don't have this problem. I am using a verbatim 1.1.1 >> > >> >> >> >deployed as a >> > >> >> >> >> >separate war, and if I access >> > >> >> >> >http://localhost:8090/exist/rest/, the >> > >> >> >> >> >response I get is: >> > >> >> >> >> > >> > >> >> >> >> >HTTP/1.1 200 OK >> > >> >> >> >> >Server: Apache-Coyote/1.1 >> > >> >> >> >> >Content-Type: text/xml;charset=UTF-8 >> > >> >> >> >> >Content-Length: 321 >> > >> >> >> >> >Date: Fri, 10 Nov 2006 21:50:24 GMT >> > >> >> >> >> > >> > >> >> >> >> ><exist:result >> > >> >> >xmlns:exist="http://exist.sourceforge.net/NS/exist"> >> > >> >> >> >> >... >> > >> >> >> >> > >> > >> >> >> >> >Do you see anything that could be different in your case? >> > >> >> >> >> > >> > >> >> >> >> >Alex >> > >> >> >> >> >-- >> > >> >> >> >> >Blog (XML, Web apps, Open Source): >> > >> >> >> >> >http://www.orbeon.com/blog/ >> > >> >> >> >> > >> > >> >> >> >> > >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> -- >> > >> >> >> >> 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 >> > >> >> >> >> ObjectWeb mailing lists service home page: >> > >> >> >> >> http://www.objectweb.org/wws >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> > >> > >> >> >> > >> > >> >> >> >-- >> > >> >> >> >Blog (XML, Web apps, Open Source): >> > >> >> >> >http://www.orbeon.com/blog/ >> > >> >> >> > >> > >> >> >> > >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> -- >> > >> >> >> 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 >> > >> >> >> ObjectWeb mailing lists service home page: >> > >> >> >> http://www.objectweb.org/wws >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> > >> > >> >> > >> > >> >> >-- >> > >> >> >Blog (XML, Web apps, Open Source): >> > >> >> >http://www.orbeon.com/blog/ >> > >> >> > >> > >> >> > >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> -- >> > >> >> 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 >> > >> >> ObjectWeb mailing lists service home page: >> > >> >> http://www.objectweb.org/wws >> > >> >> >> > >> >> >> > >> >> >> > >> > >> > >> > >> > >> >-- >> > >> >Blog (XML, Web apps, Open Source): >> > >> >http://www.orbeon.com/blog/ >> > >> > >> > >> > >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> -- >> > >> 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 >> > >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > >> >> > >> >> > >> >> > > >> > > >> > > -- >> > > Blog (XML, Web apps, Open Source): >> > > http://www.orbeon.com/blog/ >> > > >> > > >> > >> > >> > -------------------------------------------------------------------------------- >> > >> > >> > > >> > > -- >> > > 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 >> > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > > >> > >> > >> > >> > >> > -- >> > 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 >> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > >> > >> > >> >> >> -- >> Blog (XML, Web apps, Open Source): >> http://www.orbeon.com/blog/ >> > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > -------------------------------------------------------------------------------- > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Alessandro Vernet
As a follow-up on this issue, a work-around is to create a service (XPL declared in page-flow.xpl) which makes the query to eXist using the URL generator. With the URL generator you can use <force-content-type>true</force-content-type>, thus forcing the result to be considered as application/xml even if eXist incorrectly says it is text/html. Here is the pipeline I used: exist-query.xpl And in page-flow.xml, I have: <page path-info="/common/exist/*" matcher="oxf:glob-matcher" view="/common/exist-query.xpl"/> Alex -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ |
Thanks Alex. Hope everything is going well.
BTW, the San Diego people are all on vacation, let you know when decide things. Best, --Hank ----- Original Message ----- From: "avernet" <[hidden email]> To: <[hidden email]> Sent: Thursday, March 22, 2007 3:27 PM Subject: Re: [ops-users] Exist REST Problems > > > avernet wrote: >> >> Hank, Ryan, >> >> Adam on the exit-open list said he will fix this issue "in a few >> days". His message: >> >> http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html#a7367007 >> > > As a follow-up on this issue, a work-around is to create a service (XPL > declared in page-flow.xpl) which makes the query to eXist using the URL > generator. With the URL generator you can use > <force-content-type>true</force-content-type>, thus forcing the result to be > considered as application/xml even if eXist incorrectly says it is > text/html. Here is the pipeline I used: > > http://www.nabble.com/file/7359/exist-query.xpl exist-query.xpl > > And in page-flow.xml, I have: > > <page path-info="/common/exist/*" matcher="oxf:glob-matcher" > view="/common/exist-query.xpl"/> > > Alex > -- > Orbeon Forms - Web 2.0 Forms for the Enterprise > http://www.orbeon.com/ > > -- > View this message in context: http://www.nabble.com/Exist-REST-Problems-tf2581499.html#a9625499 > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |