0 Replies Latest reply on Dec 22, 2010 10:48 AM by Generic1234

    Flex  ResultEvent -> result

    Generic1234

      Hello,

       

      I have a WebService (Axis 1.4) at the backend and if I invoke a method of the WebService: I get the following result with (data as ResultEvent).message:

       

      (mx.messaging.messages::AcknowledgeMessage)#0
        body = "<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body>
      <loginResponse xmlns="http://controller.gui.scm.skidata.com">
      <loginReturn>
      <decision>grant</decision>
      <message>Welcome root</message></loginReturn>
      </loginResponse></soapenv:Body>
      </soapenv:Envelope>"
        clientId = "DirectHTTPChannel0"
        correlationId = "5DBD5302-68F3-573D-B409-F4D79CEC2910"
        destination = ""
        headers = (Object)#1
          DSStatusCode = 200
        messageId = "1AE15396-40E2-2DCE-6AC0-F4D79D3CE748"
        timestamp = 0
        timeToLive = 0

       

      here is my Flex method:

       

      public function result(data:Object):void {                         
           var test:Object = (data as ResultEvent).message;  
           Alert.show("Das ist das Result beim Login: " + test);

       

      If I thy to invoke (data as ResultEvent).result, I get "null"
      My question now would be why I get null if I invoke " (data as ResultEvent).result" and what I can do in order to solve this problem.

       

      Thanks a lot for your help,

      All the best,

      Generic