1 Reply Latest reply on Jun 24, 2010 2:02 AM by BatMC

    Problem connecting to webservice in AIR app

    BatMC

      Ok, bare with me, I am a newbie to flex development. I am having a problem connecting to a SOAP web service through my AIR app.

      I have the service running on a Glassfish server and I have verified that it is working fine.

       

      I have the following cross domain file in my server root (though I'm  not sure if this is necessary with an AIR app):

      <?xml  version="1.0"?>
      <!DOCTYPE cross-domain-policy SYSTEM  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
      <allow-access-from domain="*"/>
      <site-control permitted-cross-domain-policies="all" />
      <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
      </cross-domain-policy>

       

      I want to create an AIR application that connects to this webservice but every time I connect I get this error message:

       

      "Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL....."

       

      But...... when I change my AIR application to a web application and run it in the browser it connects to the web service perfectly.