3 Replies Latest reply on Nov 29, 2009 1:01 PM by curtis33321

    Soap WebService with AIR communication issue

    curtis33321 Level 1

      Hello.  I was showing my boss just how easy it was in Flex to change a Flex swf Project into an AIR project.  Everything loaded really well, but I could not communicate with the webservice successfully.

       

      In AIR, it generates a 500 error on the server.  So, I made a new sample project and imported a different webservice to prove it out.  I ran into the same issue.  500 error on the server.  The webmethods I am communicating with take a string as input.

       

      I am using the wizard to do the WSDL introspection and create all the files for me.  I have an application online as a swf communicating with webservices that a lot of users use so I am pretty familiar with and very much like working with SOAP webservices with Flex, but this is driving me crazy.

       

      When I send in an empty string through AIR the webservice returns succesfully and the app can process the response, but for some reason if I send any text at all I am getting 500 errors.  Since Flash does not process 500 errors effectively due to plugin vs browser issues all I see on the Flex side is the default stream error:

      Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost/webservices/test.asmx" errorID=2032]. URL: http://localhost/webservices/test.asmx

       

      I've taken the same string that I'm trying to send through AIR and invoked it directly through the webservice test page and it responds successfully.

       

      Does anyone know if there is a difference in the way AIR handles webservices than the way they are handled within flash in the browser?  I have exhausted everything I can think of.