The problem is in the response, you have to take care of two issues in
order to have event.getResults() working:
1.- You can not read the response if the server is not the same of
your application (cross domain).
2.- The content type must be text/html or text/plain.

If you had the control of the server side, I recommend using the
gwtupload library which makes it easier.

-Manolo

On Thu, May 27, 2010 at 10:05 AM, Fahim <fahimr...@gmail.com> wrote:
> Hi All,
>
> I am using FileUpload widget to upload a file. Either file is being
> uploaded successfully or failed I am not able to get the results using
> event.getResults() in onSubmitComplete event because it is always
> null. The response type of the service which I am calling to upload is
> "text/xml". Here is the response copied from fiddler:
>
> HTTP/1.1 200 OK
> Date: Wed, 26 May 2010 19:16:42 GMT
> Server: Apache
> X-UA-Compatible: IE=EmulateIE7
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
> check=0
> Connection: close
> Content-Type: text/xml
>
> <xmlResponse><status><code>500</code><message>An unknown system error
> occurred while processing the request.</message><subcode>500</
> subcode></status></xmlResponse>
>
>
> Any thoughts why am I not getting the above xml in in
> event.getResults()?
>
>
> Thanks,
> Fahim
>
> --
> 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 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.
>
>

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

Reply via email to