On 02/04/2010 06:46 PM, PC_Nerd wrote:
> Hi,
> 
> I've been playing with GWT and managed to get a basic XML request
> working to response.xml.  However after reading through
> http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s
> I'm slightly confused as to whether or not this will allow me to run
> my PHP from apache, and still be able to serve that content to the GWT
> app.
> 
> When requesting response.xml ( which is just plain xml, no server side
> code at all) from a jetty instance, default setup It all works...
> However the app loads when -noserver is added, but the request does
> not complete ( response.getStatusCode() is 0).
> 
> a)   does response.getStatusCode() ==0 mean that there was no response
> at all?
> b)   is there any way to get PHP content(JSON or XML) served from eg
> 127.0.0.1:80 where the app is intejected through the browser plugin
> from 9997?  

Sure. Many on this list test using this technique. I don't know how many
use XAMPP.

You should be using a URL like

http://127.0.0.1/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

You don't need "80", as that's the default. When you're talking to
Jetty, the URL will usually be

http://127.0.0.1:8888/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

I suspect that what I'm running into is a SOP issue, but
> the SOP I'm catching is not thrown/displayed

No, that's not the problem.

> Thanks for any ideas on how to get PHP backend running.

Check your Apache access/error logs to see if there's anything interesting.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to