|
»
Lookup of http repsonse
|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Lookup of http repsonseHi Geert! Could you explain me where I can lookup generated body of the http response after calling print(template) in the Element? Kind regards, Michael Chudas. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Lookup of http repsonseYou can't, it's streamed out, unless you're using some kind of intercepting proxy or so. However, if you want the template content, you can just get its content and do with it what you want. Best regards, Geert On 24 Mar 2009, at 14:34, michaelCH wrote: > Could you explain me where I can lookup generated body of the http > response after calling print(template) in the Element? -- Geert Bevin Terracotta - http://www.terracotta.org Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Flytecase Band - http://flytecase.be Music and words - http://gbevin.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Lookup of http repsonseYou can do template.getContent() before you print it. Maybe it's enough to serve your need. Kind regards, Daniel K. Nyoto > Date: Tue, 24 Mar 2009 06:34:30 -0700 > Subject: [rife-users] Lookup of http repsonse > From: michaelchudas@... > To: rife-users@... > > > Hi Geert! > > Could you explain me where I can lookup generated body of the http > response after calling print(template) in the Element? > > Kind regards, > Michael Chudas. > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Lookup of http repsonseHello Geert, Daniel! Thank you for your support. It could help me to find the issue I am fighting with. I am sending xml response using xml template. In the first line there is a declaration: <?xml version="1.0" encoding="UTF-8"?> 1. When I do not include in main template other template there is no space " " in front of <?xml version="1.0" encoding="UTF-8"?> 2. When I include in main template other template there IS a space " " in front of <?xml version="1.0" encoding="UTF-8"?> So in a second case client can not parse the response. Could it be some bug in rife? Or the problem can be somewhere else ? Kind regards, Michael Chudas. On Mar 24, 3:49 pm, "Daniel K. Nyoto" <dny...@...> wrote: > Hi Michael, > > You can do template.getContent() before you print it. Maybe it's enough to serve your need. > > Kind regards, > Daniel K. Nyoto > > > Date: Tue, 24 Mar 2009 06:34:30 -0700 > > Subject: [rife-users] Lookup of http repsonse > > From: michaelchu...@... > > To: rife-users@... > > > Hi Geert! > > > Could you explain me where I can lookup generated body of the http > > response after calling print(template) in the Element? > > > Kind regards, > > Michael Chudas. You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Lookup of http repsonseHi Michael, I suggest you carefully check for spaces in your templates. I've sent XML responses from RIFE many times without this issue, so I doubt it's a bug in RIFE. Best regards, Geert On 25 Mar 2009, at 00:00, michaelCH wrote: > > Hello Geert, Daniel! > > Thank you for your support. > It could help me to find the issue I am fighting with. > > I am sending xml response using xml template. In the first line there > is a declaration: > <?xml version="1.0" encoding="UTF-8"?> > > 1. When I do not include in main template other template there is no > space " " in front of <?xml version="1.0" encoding="UTF-8"?> > 2. When I include in main template other template there IS a space " " > in front of <?xml version="1.0" encoding="UTF-8"?> > > So in a second case client can not parse the response. > > Could it be some bug in rife? Or the problem can be somewhere else ? > > Kind regards, > Michael Chudas. > > > > On Mar 24, 3:49 pm, "Daniel K. Nyoto" <dny...@...> wrote: >> Hi Michael, >> >> You can do template.getContent() before you print it. Maybe it's >> enough to serve your need. >> >> Kind regards, >> Daniel K. Nyoto >> >>> Date: Tue, 24 Mar 2009 06:34:30 -0700 >>> Subject: [rife-users] Lookup of http repsonse >>> From: michaelchu...@... >>> To: rife-users@... >> >>> Hi Geert! >> >>> Could you explain me where I can lookup generated body of the http >>> response after calling print(template) in the Element? >> >>> Kind regards, >>> Michael Chudas. > > -- Geert Bevin Terracotta - http://www.terracotta.org Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Flytecase Band - http://flytecase.be Music and words - http://gbevin.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Lookup of http repsonseHi Geert! I checked spaces in my template which is included in the main one. I found interesting issue which was the real cause of the problem. In the point where sub-template is included in the value holder there (html source) appears strange, single character - kind of unrecognized character( by example you can observer such a characters when you display japanese sites without japanese fonts). What's more when empty template (template without any character inside) is included the same phenomenon can be observed. The xml parsing error appears when the insertion is done outside root element - because this "unrecognized" character is non-white space. In fact this behavior cancel the idea of <r:i> tag in this case unless you have <r:i> always in root element and you don't have other root elements in the <r:b> blocks. If you could suggest some workaround idea it would be very helpful. Best regards, Michael Chudas. On Mar 25, 1:04 am, Geert Bevin <gbe...@...> wrote: > Hi Michael, > > I suggest you carefully check for spaces in your templates. I've sent > XML responses from RIFE many times without this issue, so I doubt it's > a bug in RIFE. > > Best regards, > > Geert > > On 25 Mar 2009, at 00:00, michaelCH wrote: > > > > > > > Hello Geert, Daniel! > > > Thank you for your support. > > It could help me to find the issue I am fighting with. > > > I am sending xml response using xml template. In the first line there > > is a declaration: > > <?xml version="1.0" encoding="UTF-8"?> > > > 1. When I do not include in main template other template there is no > > space " " in front of <?xml version="1.0" encoding="UTF-8"?> > > 2. When I include in main template other template there IS a space " " > > in front of <?xml version="1.0" encoding="UTF-8"?> > > > So in a second case client can not parse the response. > > > Could it be some bug in rife? Or the problem can be somewhere else ? > > > Kind regards, > > Michael Chudas. > > > On Mar 24, 3:49 pm, "Daniel K. Nyoto" <dny...@...> wrote: > >> Hi Michael, > > >> You can do template.getContent() before you print it. Maybe it's > >> enough to serve your need. > > >> Kind regards, > >> Daniel K. Nyoto > > >>> Date: Tue, 24 Mar 2009 06:34:30 -0700 > >>> Subject: [rife-users] Lookup of http repsonse > >>> From: michaelchu...@... > >>> To: rife-users@... > > >>> Hi Geert! > > >>> Could you explain me where I can lookup generated body of the http > >>> response after calling print(template) in the Element? > > >>> Kind regards, > >>> Michael Chudas. > > -- > Geert Bevin > Terracotta -http://www.terracotta.org > Uwyn "Use what you need" -http://uwyn.com > RIFE Java application framework -http://rifers.org > Flytecase Band -http://flytecase.be > Music and words -http://gbevin.com You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Lookup of http repsonseHi Michael, This might be related to file encoding. I have seen this happen on MacOSX when creating a new file with TextWrangler for instance. Make sure that all your files are using the same encoding and inspect the beginning of each included file with for instance a hex editor. There are several ways to get this back to the right state, you can use a 'convert to encoding' function in your text editor, or you can copy/ paste into a very basic one (like vim) to remove any weirdness. Hope this helps, Geert On 30 Mar 2009, at 22:27, michaelCH wrote: > > Hi Geert! > > I checked spaces in my template which is included in the main one. > I found interesting issue which was the real cause of the problem. > In the point where sub-template is included in the value holder there > (html source) appears strange, single character - kind of unrecognized > character( by example you can > observer such a characters when you display japanese sites without > japanese fonts). > What's more when empty template (template without any character > inside) is included the same phenomenon can be observed. > The xml parsing error appears when the insertion is done outside root > element - because this "unrecognized" character is non-white space. > In fact this behavior cancel the idea of <r:i> tag in this case unless > you have <r:i> always in root element and you don't have other root > elements in the <r:b> blocks. > > If you could suggest some workaround idea it would be very helpful. > > Best regards, > Michael Chudas. > > > > On Mar 25, 1:04 am, Geert Bevin <gbe...@...> wrote: >> Hi Michael, >> >> I suggest you carefully check for spaces in your templates. I've sent >> XML responses from RIFE many times without this issue, so I doubt >> it's >> a bug in RIFE. >> >> Best regards, >> >> Geert >> >> On 25 Mar 2009, at 00:00, michaelCH wrote: >> >> >> >> >> >>> Hello Geert, Daniel! >> >>> Thank you for your support. >>> It could help me to find the issue I am fighting with. >> >>> I am sending xml response using xml template. In the first line >>> there >>> is a declaration: >>> <?xml version="1.0" encoding="UTF-8"?> >> >>> 1. When I do not include in main template other template there is no >>> space " " in front of <?xml version="1.0" encoding="UTF-8"?> >>> 2. When I include in main template other template there IS a space >>> " " >>> in front of <?xml version="1.0" encoding="UTF-8"?> >> >>> So in a second case client can not parse the response. >> >>> Could it be some bug in rife? Or the problem can be somewhere else ? >> >>> Kind regards, >>> Michael Chudas. >> >>> On Mar 24, 3:49 pm, "Daniel K. Nyoto" <dny...@...> wrote: >>>> Hi Michael, >> >>>> You can do template.getContent() before you print it. Maybe it's >>>> enough to serve your need. >> >>>> Kind regards, >>>> Daniel K. Nyoto >> >>>>> Date: Tue, 24 Mar 2009 06:34:30 -0700 >>>>> Subject: [rife-users] Lookup of http repsonse >>>>> From: michaelchu...@... >>>>> To: rife-users@... >> >>>>> Hi Geert! >> >>>>> Could you explain me where I can lookup generated body of the http >>>>> response after calling print(template) in the Element? >> >>>>> Kind regards, >>>>> Michael Chudas. >> >> -- >> Geert Bevin >> Terracotta -http://www.terracotta.org >> Uwyn "Use what you need" -http://uwyn.com >> RIFE Java application framework -http://rifers.org >> Flytecase Band -http://flytecase.be >> Music and words -http://gbevin.com > > -- Geert Bevin Terracotta - http://www.terracotta.org Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Flytecase Band - http://flytecase.be Music and words - http://gbevin.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |
