-
September 28th, 2007, 07:51 AM
#1
HTTPS & Flex Client
Hi.. I am using Flex Native AS client which works fine over HTTP. Now I am trying to set it up over HTTPS. I ve done the following.
1. Modified lightstreamer_conf.xml, removed <http_server> and included <https_server> block with default parameters.
2. On the client side, modified the ConnectionInfo parameters to change the port, controlPort and the corresponding protocols.
When I try to access the flex page over https, I see the page being loaded but streaming doesnt happen. On the server side, I see a new session being created after invoking the notifyUser method on the MetadataAdapter but getItems or getSchema methods are not invoked. Am I missing something here?
Regards,
Venkatesan R
-
October 1st, 2007, 09:27 AM
#2
Hi Venkihere,
to let a Flex application downloaded through http access a web server over SSL, you must specify a secure=false attribute to the allow-access-from element in your crossdomain.xml file.
So in example, if your flex movie is downloaded via http://www.mycompany.com/ and you want to connect to Lightstreamer through https://push.mycompany.com/ an allow-access-from policy like the one below is not enough:
you need something like this:
Hope that helps.
-
October 1st, 2007, 02:00 PM
#3
Hi.. Thank you for the reply.. But the page was downloaded over https..
-
October 1st, 2007, 02:07 PM
#4
Sorry...
Please could you describe
- Your environment (how do you access web server and Lightstreamer server)
- Your crossdomain.xml file
- You ConnectionInfo configuration
-
October 1st, 2007, 02:19 PM
#5
Originally Posted by
Mone
- Your environment (how do you access web server and Lightstreamer server)
I ve placed my flex page in the pages folder of lightstreamer. In lightstreamer_conf.xml, I ve enabled only the ssl server. I am accessing the page using a https url.
Originally Posted by
Mone
Your crossdomain.xml file
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Originally Posted by
Mone
You ConnectionInfo configuration
var cInfo:ConnectionInfo = new ConnectionInfo();
cInfo.setServer("push.mydomain.com");
cInfo.setAdapter("STOCKLISTDEMO");
cInfo.setControlPort(443);
cInfo.setPort(443);
cInfo.setControlProtocol("https");
cInfo.setProtocol("https");
cInfo.setUser("TEST_USER");
cInfo.setPassword("TEST_USER");
-
October 1st, 2007, 02:40 PM
#6
As a first view everything seems correct.
Are you able to run the standard StockListDemo (i.e. the html one) over SSL on your server?
Similar Threads
-
By pratik in forum Client SDKs
Replies: 4
Last Post: June 26th, 2015, 08:56 AM
-
By dalmy in forum Adapter SDKs
Replies: 1
Last Post: July 12th, 2010, 10:05 AM
-
By markgoldin in forum Client SDKs
Replies: 10
Last Post: May 26th, 2008, 08:52 AM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: September 3rd, 2007, 04:23 PM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: July 24th, 2007, 05:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 12:43 AM.
Bookmarks