« Return to Thread: Lookup of http repsonse

Re: Lookup of http repsonse

by MichaelCh :: Rate this Message:

Reply to Author | View in Thread


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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Lookup of http repsonse

 
 
 
Google
rifers.org web