0 Replies Latest reply on Sep 20, 2008 5:51 AM by Peter Farland

    [svn] 3282: Adding a new "statusCode" property to mx.rpc.events. ResultEvent and mx.rpc.events. FaultEvent to allow for the HTTP status code to be reported (when available ) which is useful in the proxyless case of HTTPService and WebService.

    Peter Farland Level 3
      Revision: 3282
      Author: pfarland@adobe.com
      Date: 2008-09-20 06:51:57 -0700 (Sat, 20 Sep 2008)

      Log Message:
      -----------
      Adding a new "statusCode" property to mx.rpc.events.ResultEvent and mx.rpc.events.FaultEvent to allow for the HTTP status code to be reported (when available) which is useful in the proxyless case of HTTPService and WebService. Also adding a "content" property to mx.rpc.Fault to allow access to the raw content that may have been returned with a fault, such as the HTTP response body for a non-200 status code (if available).

      The availability of this information is both player version and browser dependent. The status code should be available on most browsers for FP10 and later. The HTTP response body for a non-200 status code should be available in MSIE 8 and Firefox 3.1 (and potentially others, QE to build a matrix for doc).

      QE: Yes, we'll need to add tests for both proxy-less HTTPService and WebService receiving data back from a non-200 status request.
      Doc: Yes, we'll want to review the new properties on ResultEvent and FaultEvent and explain that this extra information is environment dependent.
      Checkintests: Pass
      Reviewers: Jeff V, Tom J

      Bugs:
      SDK-16775 - DirectHTTPChannel needs to be updated to pass along proper fault information from FP10

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/non-200
      http://bugs.adobe.com/jira/browse/non-200
      http://bugs.adobe.com/jira/browse/non-200
      http://bugs.adobe.com/jira/browse/SDK-16775

      Modified Paths:
      --------------
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChann el.as
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/messaging/messages/AbstractMessage .as
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/Fault.as
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
      flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as