0 Replies Latest reply on Oct 18, 2007 3:45 PM by grabur

    Flex 2 client processing web service response with a custom SOAP header

      When using Flex 2.0.1 as the client to make a web request operation called "Test" on my server, the response message to Flex causes the web service faultHandler to execute because it contains a SOAP header with a custom Security child tag that has its mustUnderstand set. I get the following error:

      event.fault.faultCode = "Client.MustUnderstand"
      event.fault.faultString = "No event listener for header o:Security"

      Is there any way to intercept the web service operation response to unset the mustUnderstand attribute for the o:Security tag in the SOAP header and, therefore, to not cause a faultEvent to fire?

      Or, is there any way to add an event handler to deal with the processing of the o:Security tag in the SOAP header upon recepit and, therefore, to not cause a faultEvent to fire.

      My web service response body is listed below.

      <s:Envelope xmlns:s=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:u=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <o:Security s:mustUnderstand="1" xmlns:o=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <u:Timestamp u:Id="_0">
      <TestResponse xmlns=" http://www.domain.com/app/1.0/">

      Many thanks