Re: requestbuilder xml response - empty document

2010-03-02 Thread Thomas Broyer
On Mar 2, 3:21 am, mibtar bim.pangili...@gmail.com wrote: it does seem like a SOP problem. it's not including the data from the database in the response. just the static text that i display using echo. and i am already using the -noserver option. Have you tried plugging anything that could

requestbuilder xml response - empty document

2010-03-01 Thread mibtar
hi, i'm using requestbuilder to communicate with php. i used a XMLWriter to place the sql result in xml: $writer = new XMLWriter(); $writer-openMemory(); $writer-startDocument('1.0', 'UTF-8'); $writer-setIndent(4); $writer-startElement(result); for($row = 0; $rowdata =

Re: requestbuilder xml response - empty document

2010-03-01 Thread RPB
I don't see anything obviously wrong with your code, but here is a snippet of my code which does the same thing and works fine. Note I use RequestBuilder.GET and have a couple of extra error checks - might help point to a problem. == url = URL.encode(url);

Re: requestbuilder xml response - empty document

2010-03-01 Thread mibtar
i did try using GET too. but the same output. i checked your code and it seems i'm pretty much doing the same. this is really weird because i tried it using JSON: $arr = array(); for($row = 0; $rowdata = mysql_fetch_array($result); $row++){ $sub_arr = array(); for($col =

Re: requestbuilder xml response - empty document

2010-03-01 Thread mibtar
checked in firebug, response is: ?xml version=1.0 encoding=UTF-8? result/ status code is 200. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from

Re: requestbuilder xml response - empty document

2010-03-01 Thread mibtar
i tried another thing, i tried to echo without the database result: $test = '?xml version=1.0 encoding=UTF-8?'; $test = $test . 'result'; $test = $test . 'row'; $test = $test . 'col'; $test = $test . 'Data 1'; $test = $test . '/col'; $test = $test . '/row'; $test =

Re: requestbuilder xml response - empty document

2010-03-01 Thread RPB
It could be the SOP problem. Is the php running on a different server to GWT? If so, your messages aren't getting through because of SOP. You can fix this by going to debug configurations in eclipse- unchecking 'Run built in server' and matching the port number to your localhost. -Rob

Re: requestbuilder xml response - empty document

2010-03-01 Thread mibtar
it does seem like a SOP problem. it's not including the data from the database in the response. just the static text that i display using echo. and i am already using the -noserver option. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To