I have an OpenLaszlo application (currently running 3.2) running in proxied mode which is using datasets to retrieve and display information. The datasets are accessing some web services URL's which are running on a web server. When the request to the web service fails (perhaps the information in the request was invalid, the user wasn't authorized to perform the action, etc.) the web service returns an appropriate HTTP status code (400, 403, etc.) along with some XML content which explains the failure. It's very similar to the way Amazon's S3 REST API works and is consistent with the HTTP spec which says:
"The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents SHOULD display any included entity to the user." It seems, however, that when I make the request through my dataset, I never see the information which was returned by the web service. When an error occurs I use the getErrorString method on dataset to retrieve the error message. The message I get back is 'data source error for http://... HTTP Status Code: xxx'. The actual result set seems to contain an 'error' element which has a 'status' attribute and a 'msg' attribute, but no information from the actual request. Is there a way to get at the actual information returned from the request? I need this information in order to produce proper error diagnostics to my user. Thanks! -- James Howe _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
