Skip navigation
natekemp21
Currently Being Moderated

SSL WebService?

Nov 12, 2012 10:32 AM

Tags: #flash #android #webservice #builder #ssl #4.6

tl;dr: I cannot connect to my SSL web service using a captive runtime app on Android, but I can with an AIR runtime or captive on iOS. 

 

I'm using a common code base to develop an Android tablet and iPad app.  It connects to an SSL (https) web service to get data.  It works fine in debug mode, and when I compile, it works fine on the iPad, but not on the Android in a captive runtime build.  If I use the AIR runtime build, it works, but I want my app to be stand-alone.

 

Thanks,

Nate

 
Replies
  • Currently Being Moderated
    Dec 6, 2012 3:26 PM   in reply to natekemp21

    Just a guess, but are all your certs for the ssl valid?

    I think some mobile os block communication with bad certs sometimes.

    G

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 8, 2013 1:54 AM   in reply to natekemp21

    I'm having the exact same problem!

     

    When debugging everything works. All other devices (BlackBerry and IOS) work. When I build it with the shared runtime it works. But if I build it with captive runtime it fails to connect over HTTPS! As soon as I change it to HTTP (without the S) it works so it is definately a HTTP vs HTTPS issue in combination with captive runtime.

     

    Did you ever find a solution for this problem?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 8, 2013 2:45 AM   in reply to natekemp21

    It is also not a version issue.

     

    I tried installing the exact same version of Adobe AIR that would get bundled as captive runtime. It would work perfectly.

    Then I even bundled a newer version of the AIR runtime (3.5.0.88 instead of 3.1.0.488) and still it didn't work.

     

    In conclusion: The error only occurs when using HTTPS (SSL) in combination with captive runtime, regardless of the AIR runtime version.

     

    Really hoping someone can solve this problem, because we would like to include the runtime to prevent our customers from installing the runtime and ensuring the correct runtime is used.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2013 6:15 AM   in reply to Rode Indiaan

    Has anyone found a solution for this issue?

     

    I am running into this on an Air Desktop (Winodow7 and 8) application also. Then the application is compiled and packaged with a native installer or just run from the debugger my WebService calls operate normally. When I package as Captive runtime all webService request fail with a '[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="null"] messageId="AB6FDB00-1EFA-9506-E571-5D3B71FE2865" type="fault" bubbles=false cancelable=true eventPhase=2]'.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2013 1:12 AM   in reply to jgrasmeder

    We were able to compile an Air Desktop application with captive runtime and could still use Webserverices over SSL. Our solution might be a side effect of creating a version that requires no installation at all.

     

    1. Create signed AIR Desktop version
    2. Build a bundle from the AIR verion: "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\bin\adt" -package -target bundle myApp myApp.air
    3. Hide all files except the exe
    4. Create a self-extracting archive from the directory

     

    Now any user can run the application without any administrator rights normally required for installation.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2013 6:37 AM   in reply to Rode Indiaan

    Thanks for the reply. Unfortunalty I am using ANEs in my project so can not use the AIR package option. I also can't use the native installer because I need (may need) to install addtioanl code from Microsoft (vcredist_x86.exe, etc..)  I think I need to speak with someone from Adobe about getting the captive runtime working correctly. I am thinking that the Air runtime that is downloaded from there web site is different from the one that is used when the Captive option is chosen.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 10, 2013 5:25 AM   in reply to jgrasmeder

    I think I found a solution to this issue. Using latest IntelliJ 12.1 (EAP 128.101) lets you add the latest Air3.6SDK (Support for Adobe Gaming SDK) rather then the Flex SDK. Making builds  through IntelliJ with captive runtime checkbox ticked, gives me an apk that when installed on my device(s) can consume ssl (https) web services. I use a ssl-certificate signed by GlobalSign on my server side and it works lika a charm since their Root CA Certificate is included by default in most devices if not all.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points