Re: File Upload to a ASP and Getting Response as JSON
Thanks Thomas. It was the same issue. Now we are front ending the calls by apache and have a reverse proxy setup to forward the calls to IIS. On Fri, Feb 27, 2009 at 5:07 PM, Thomas Broyer wrote: > > > On 27 fév, 11:20, Sriram Iyengar wrote: > > We are trying to upload a file from GWT app using FormPanel to an ASP > > (.asp) application. The ASP app receives the file and is able to store > > it locally. It returns back a JSON response. But, the response is > > being received as null by FormSubmitCompleteEvent.getResults(). > > > > The JSON response is right and shows up when the .asp file is > > submitted directly from a html. The content-type of the .asp response > > is text/html. > > > > Can we expect a correct JSON response from a .asp file running in IIS, > > in the GWT application ? > > getResults() returning null is a symptom of facing the Same-Origin > Policy: are you sure you're submitting your form to the same server > (same scheme –http vs. https–, host name and port) your GWT app is > served from? > > > --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Upload to a ASP and Getting Response as JSON
On 27 fév, 11:20, Sriram Iyengar wrote: > We are trying to upload a file from GWT app using FormPanel to an ASP > (.asp) application. The ASP app receives the file and is able to store > it locally. It returns back a JSON response. But, the response is > being received as null by FormSubmitCompleteEvent.getResults(). > > The JSON response is right and shows up when the .asp file is > submitted directly from a html. The content-type of the .asp response > is text/html. > > Can we expect a correct JSON response from a .asp file running in IIS, > in the GWT application ? getResults() returning null is a symptom of facing the Same-Origin Policy: are you sure you're submitting your form to the same server (same scheme –http vs. https–, host name and port) your GWT app is served from? --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
File Upload to a ASP and Getting Response as JSON
We are trying to upload a file from GWT app using FormPanel to an ASP (.asp) application. The ASP app receives the file and is able to store it locally. It returns back a JSON response. But, the response is being received as null by FormSubmitCompleteEvent.getResults(). The JSON response is right and shows up when the .asp file is submitted directly from a html. The content-type of the .asp response is text/html. Can we expect a correct JSON response from a .asp file running in IIS, in the GWT application ? Thanks, Sriram --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---