1 Reply Latest reply on Nov 23, 2006 2:36 PM by yoyesman

    Soap faultcode and faultstring getting lost

    dmozzy
      Hi,

      I'm having a problem with Adobe Flex not returning the soap fault details that is being returned in the Soap Fault.

      I am using Flashplayer 9,0,16,0 , Adobe Flex Builder 2 Version 2.0.14359 and XFire 1.2 for Webservices.

      The Soap Request is :
      <SOAP-ENV:Envelope xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Body>
      <saveUser xmlns=" http://ws.raid.aem.com.au">
      <ns0:in0 xmlns:ns0=" http://ws.raid.aem.com.au">
      <ns0:administrator xmlns:ns0=" http://vo.ws.raid.aem.com.au">false</ns0:administrator>
      <ns0:email xmlns:ns0=" http://vo.ws.raid.aem.com.au">myemail@myemail.com</ns0:email>
      <ns0:firstName xmlns:ns0=" http://vo.ws.raid.aem.com.au">John</ns0:firstName>
      <ns0:id xmlns:ns0=" http://vo.ws.raid.aem.com.au">1</ns0:id>
      <ns0:lastName xmlns:ns0=" http://vo.ws.raid.aem.com.au">Smith</ns0:lastName>
      <ns0:password xmlns:ns0=" http://vo.ws.raid.aem.com.au">secret</ns0:password>
      <ns0:permissions xmlns:ns0=" http://vo.ws.raid.aem.com.au"/>
      <ns0:username xmlns:ns0=" http://vo.ws.raid.aem.com.au">jsmith</ns0:username>
      </ns0:in0>
      </saveUser>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      The Soap Respones is :

      <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
      <soap:Body>
      <soap:Fault>
      <faultcode>soap:Client</faultcode>
      <faultstring>This message gets lost!</faultstring>
      </soap:Fault>
      </soap:Body>
      </soap:Envelope>

      And the fault that comes through in Flex is :
      RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost/raid/services/UserManager" URL: http://raid.aemgroup.com.au/raid/services/UserManager"
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at ::DirectHTTPMessageResponder/errorHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

      The soap faultcode and faultstring are getting lost.

      Anybody have this problem or know what is going on?

      Thanks,

      Daniel