4 Replies Latest reply on Aug 11, 2007 1:44 PM by paulo.larini

    Sending XML to WebService

    paulo.larini
      Hi, I´m getting errors when sending a XML object or a string containing < > simbols to a WebService.
      How can I send a XML?

      code:
      <mx:operation name="myWebMethod" result="handleResult(event)" resultFormat="e4x">
      <mx:request>
      <param1>{_xml}</param1>
      </mx:request>
      </mx:operation>


      error:
      [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://bsapl05/grsdes/services/FlexServices.asmx" URL: http://bsapl05/grsdes/services/FlexServices.asmx"
      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()