Problem communicating from http to https using HttpService

120 views
Skip to first unread message

prem

unread,
May 9, 2009, 4:21:01 AM5/9/09
to Flex India Community
Hi,
I am trying to communicate to server from my Flex application running
on http://localhost:8080/FlexApp to another server which is running on
https://localhost://8400/testApp using HttpService. I have added the
crossdomain xml file in my tomcat running on port 8400 in all possible
places i.e. bin directory , testApp directory. Problem I get is: [RPC
Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTPS"]

My crossdomain.xml file looks like this :
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" to-ports="*" headers="*"
secure="false"/>
</cross-domain-policy>

cross-domain-policy.dtd file I downloaded, is in the same directory as
the xml file.

I am still not able to know the fix of this problem. Any suggestion
would be really helpful

Thanks,
Prem

prem

unread,
May 9, 2009, 5:57:02 AM5/9/09
to Flex India Community
Need to know the solution urgently. Any help please?

On May 9, 1:21 pm, prem <prema...@gmail.com> wrote:
> Hi,
> I am trying to communicate to server from my Flex application running
> onhttp://localhost:8080/FlexAppto another server which is running onhttps://localhost://8400/testAppusing HttpService. I have added the

HISSAM

unread,
May 9, 2009, 2:29:32 PM5/9/09
to flex_...@googlegroups.com
http://forums.alfresco.com/en/viewtopic.php?f=36&t=15831

This link might solve your problem
Please know me status after u implement it

Waiting for your reply
--
-----------------------------
Regards,
 HISSAM,  
------------------------------

prem

unread,
May 11, 2009, 10:04:20 AM5/11/09
to Flex India Community
Thanks, but I am still not able to fix this problem

On May 9, 11:29 pm, HISSAM <hissam.sher...@gmail.com> wrote:
> http://forums.alfresco.com/en/viewtopic.php?f=36&t=15831
>
> This link might solve your problem
> Please know me status after u implement it
>
> Waiting for your reply
>
>
>
> On Sat, May 9, 2009 at 2:57 AM, prem <prema...@gmail.com> wrote:
>
> > Need to know the solution urgently. Any help please?
>
> > On May 9, 1:21 pm, prem <prema...@gmail.com> wrote:
> > > Hi,
> > > I am trying to communicate to server from my Flex application running
> > > onhttp://localhost:8080/FlexApptoanother server which is running
> > onhttps://localhost://8400/testAppusingHttpService. I have added the

prem

unread,
May 11, 2009, 10:22:56 AM5/11/09
to Flex India Community
My crossdomain.xml file is in the ROOT folder of Webapps directory of
tomcat: Following is my crossdomain file:
<!DOCTYPE cross-domain-policy SYSTEM "cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*" to-ports="*"
secure="false"/>
</cross-domain-policy>

I am using HttpService to access the server with the url:
https://localhost:8443/testApplication/upload.html

var srvHS:HttpService = new HTTPService();
srvHS.method = "POST";
srvHS.url = "https://localhost:8443/testApplication/upload.html"
srvHS.useProxy = false;
srvHS.addEventListener(ResultEvent.RESULT , imageSavedResult);
srvHS.addEventListener(FaultEvent.FAULT, imageSavedFault);
srvHS.send(obj);

My error String is :
[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]

On May 11, 7:04 pm, prem <prema...@gmail.com> wrote:
> Thanks, but I am still not able to fix this problem
>
> On May 9, 11:29 pm, HISSAM <hissam.sher...@gmail.com> wrote:
>
> >http://forums.alfresco.com/en/viewtopic.php?f=36&t=15831
>
> > This link might solve your problem
> > Please know me status after u implement it
>
> > Waiting for your reply
>
> > On Sat, May 9, 2009 at 2:57 AM, prem <prema...@gmail.com> wrote:
>
> > > Need to know the solution urgently. Any help please?
>
> > > On May 9, 1:21 pm, prem <prema...@gmail.com> wrote:
> > > > Hi,
> > > > I am trying to communicate to server from my Flex application running
> > > > onhttp://localhost:8080/FlexApptoanotherserver which is running

HISSAM

unread,
May 12, 2009, 1:07:17 AM5/12/09
to Flex India Community
please provide your tomcat webapp folder structure
also specify where have placed the 2 applications in the webapps or
somewhere else ie whether there's a reference from eclipse??
also provide your web.xml file
> > > > > onhttp://localhost:8080/FlexApptoanotherserverwhich is running

prem

unread,
May 12, 2009, 4:53:04 AM5/12/09
to Flex India Community
My crossdomain.xml file is in $TOMCAT_HOME/webapps/ROOT folder. I am
able to access it using the url: https://localhost:8443/crossdomain.xml
My two applications are in the webapps folder of different tomcats:
Project FlexApp is being hosted in tomcat port 8080, testApp contains
upload.jsp, is being hosted in tomcat port 8443.
From my Flex application which is being hosted on http://localhost:8080/FlexApp/index.html,
I am using HttpService to call url: https://localhost:8443/testApp/upload.jsp.
Here I get the security exception.
I have also tried putting crossdomain.xml file in bin directory of
tomcat, testApp directory, but still the same problem. I am having
Flash player 9 on my machine

Thanks,
Premasis
> > > > > > onhttp://localhost:8080/FlexApptoanotherserverwhichis running
Reply all
Reply to author
Forward
0 new messages