Hello,

I have developed a Flex 3 Application and when deploying with RSL on
HTTP environment, everything seems to be fine and the application
loading time is drastically reduced. But, when I follow the same steps
to deploy the same application over HTTPS making necessary changes
required for switching from HTTP to HTTPS, application initialization
fails with the following error:

TypeError: Error #1090: XML parser failure: element is malformed.
        at mx.messaging.channels::HTTPChannel/decodePacket()
        at mx.messaging.channels::HTTPChannel/pingCompleteHandler()
        at ChannelRequestLoader/callEventCallback()
        at ChannelRequestLoader/completeHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()

I guess somewhere my HTTP settings are still intact and I have not
changed them that's why its still giving me HTTP channel error

In my application, I have made following changes to deploy the
application on HTTPS:

1. Change the flex server setting by going into Project Properties

2. Change the HTTP channel to HTTPS channels in services-config.xml as
shown below:

<channel-definition id="my-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">
  <endpoint url="https://{server.name}:{server.port}/{context.root}/
messagebroker/amfsecure"
       class="flex.messaging.endpoints.AMFEndpoint"/>
   <properties>
      <add-no-cache-headers>false</add-no-cache-headers>
   </properties>
</channel-definition>

<channel-definition id="my-secure-http"
class="mx.messaging.channels.SecureHTTPChannel">
  <endpoint url="https://{server.name}:{server.port}/{context.root}/
messagebroker/httpsecure"
       class="flex.messaging.endpoints.HTTPEndpoint"/>
  <properties>
     <add-no-cache-headers>false</add-no-cache-headers>
  </properties>
</channel-definition>

3.  Changed the remoting-config file to reflect channel changes made
above

   <default-channels>
        <channel ref="my-http"/>
        <channel ref="my-amf"/>
   </default-channels>

I think there is a problem in my deploying application with RSL,
because the application works pretty fine on HTTPS also when I deploy
it without RSL. Can you please let me know what I'm missing here ??

Thanks for your help.

Best Regards,
Agraj

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to