<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Security Error when creating a web service with Flex in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155893#M1369365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello comminuty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Flex to create a standalone application and I have to use web services to retrieve data from SAP. &lt;/P&gt;&lt;P&gt;I used the bapi bapi_flight_getlist to create an associated WS that works fine (tested with the Eclipse's WS Explorer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Flex Builder, I use the following code to create my web service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
	&amp;lt;mx:WebService
		showBusyCursor="true" 
		id="service" 		
		wsdl="{wsdl}"
		result="resultCreateWSHandler(event);"
		fault="faultCreateWSHandler(event);"&amp;gt;
            &amp;lt;mx:operation name="FlightGetList" 
            	result="resultWSHandler(event)"
            	fault="faultWSHandler(event)"&amp;gt;&amp;lt;/mx:operation&amp;gt;		           
   	&amp;lt;/mx:WebService&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the error I'm getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(mx.messaging.messages::ErrorMessage)#0
  body = (null)
  clientId = "DirectHTTPChannel0"
  correlationId = "E578ED8C-EF29-44E7-8D57-57B4DB6EB613"
  destination = ""
  extendedData = (null)
  faultCode = "Channel.Security.Error"
  faultDetail = "Destination: DefaultHTTP"
  faultString = "Security error accessing url"
  headers = (Object)#1
    DSStatusCode = 0
  messageId = "6E7AC45E-418D-90CD-96AD-57B52DB1DAF4"
  rootCause = (flash.events::SecurityErrorEvent)#2
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#3
      bytesLoaded = 0
      bytesTotal = 0
      data = (null)
      dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#3
    text = "Error #2048: Violation de la sécurité Sandbox&amp;nbsp;: http://localhost:8300/ztest2/bin-debug/ztest2.swf ne peut pas charger de données à partir de http://XXXX:8006/sap/bc/srt/wsdl/bndg_DEB8A28C2E19EEF19C080050568D135B/wsdl11/allinone/ws_policy/document?sap-client=800."
    type = "securityError"
  timestamp = 0
  timeToLive = 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Translation: "Error #2048: Sandbox security violation: http:....swf cannot load data from http:...client=800"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would any of you have an idea about what is causing this error??&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 10:31:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-15T10:31:21Z</dc:date>
    <item>
      <title>Security Error when creating a web service with Flex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155893#M1369365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello comminuty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Flex to create a standalone application and I have to use web services to retrieve data from SAP. &lt;/P&gt;&lt;P&gt;I used the bapi bapi_flight_getlist to create an associated WS that works fine (tested with the Eclipse's WS Explorer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Flex Builder, I use the following code to create my web service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
	&amp;lt;mx:WebService
		showBusyCursor="true" 
		id="service" 		
		wsdl="{wsdl}"
		result="resultCreateWSHandler(event);"
		fault="faultCreateWSHandler(event);"&amp;gt;
            &amp;lt;mx:operation name="FlightGetList" 
            	result="resultWSHandler(event)"
            	fault="faultWSHandler(event)"&amp;gt;&amp;lt;/mx:operation&amp;gt;		           
   	&amp;lt;/mx:WebService&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the error I'm getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(mx.messaging.messages::ErrorMessage)#0
  body = (null)
  clientId = "DirectHTTPChannel0"
  correlationId = "E578ED8C-EF29-44E7-8D57-57B4DB6EB613"
  destination = ""
  extendedData = (null)
  faultCode = "Channel.Security.Error"
  faultDetail = "Destination: DefaultHTTP"
  faultString = "Security error accessing url"
  headers = (Object)#1
    DSStatusCode = 0
  messageId = "6E7AC45E-418D-90CD-96AD-57B52DB1DAF4"
  rootCause = (flash.events::SecurityErrorEvent)#2
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#3
      bytesLoaded = 0
      bytesTotal = 0
      data = (null)
      dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#3
    text = "Error #2048: Violation de la sécurité Sandbox&amp;nbsp;: http://localhost:8300/ztest2/bin-debug/ztest2.swf ne peut pas charger de données à partir de http://XXXX:8006/sap/bc/srt/wsdl/bndg_DEB8A28C2E19EEF19C080050568D135B/wsdl11/allinone/ws_policy/document?sap-client=800."
    type = "securityError"
  timestamp = 0
  timeToLive = 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Translation: "Error #2048: Sandbox security violation: http:....swf cannot load data from http:...client=800"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would any of you have an idea about what is causing this error??&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 10:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155893#M1369365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T10:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Security Error when creating a web service with Flex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155894#M1369366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a cross domain issue. search this forum (or google) with key word "flex crossdomain"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 05:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155894#M1369366</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2009-10-18T05:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Security Error when creating a web service with Flex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155895#M1369367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thanks for your answer. I'll check this out &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 08:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155895#M1369367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T08:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Security Error when creating a web service with Flex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155896#M1369368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristina &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did your flex application worked. i am also having same problm. cant access the BAPI from standalone flex application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 07:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/security-error-when-creating-a-web-service-with-flex/m-p/6155896#M1369368</guid>
      <dc:creator>jayakumarkb_81</dc:creator>
      <dc:date>2010-06-17T07:02:41Z</dc:date>
    </item>
  </channel>
</rss>

