Crossdomain.xml issue - Accessing SAP from adobe FLEX

Advertisement
Hi All,
We are in the process of trying to integrate 4 SAP bapis exposed as Web services from adobe flex.
When we do so we are getting a "security error accessing URL"
The URL of our flex application is:
http://10.10.0.48:8081/water0305/iden.html
The WSDL of the web service is:
http://10.10.0.66:8001/sap/bc/srt/rfc/sap/ZKK_BAPI_EQMT_DETAIL?sap-client=800&wsdl=1.1
We looked at various forums and we found that adding a crossdomain.xml file to the root directory
(at the destination server) will resolve the issue.
I did implement all those steps on the R/3 side to add a crossdomain.xml to an ABAP WAS.
crossdomain.xml on WAS
however i still get those errors(security error accessing URL).
Below is the code i use to access the SAP web service
<mx:WebService
id="EqmtDetailWS" showBusyCursor="true" fault="Alert.show(event.fault.faultString)" >
<mx:operation name="EqmtDetail" resultFormat="e4x" result="getEquip_result(event);" fault="getFault(event);">
<mx:request>
<Equipment></Equipment>
</mx:request>
</mx:operation>
</mx:WebService>
We are  displaying the SAP info on a map service provided by esri so we included the load operation here.
<-Loading the wsdl->
private
function onExtentChange(event:ExtentEvent):void {
EqmtDetailWS.wsdl=
"http://10.10.0.66:8001/sap/bc/srt/rfc/sap/ZKK_BAPI_EQMT_DETAIL?sap-client=800&wsdl=1.1&sap-user=******&sap-password=****&sap-language=EN&~transaction=iw51";
EqmtDetailWS.loadWSDL();
<Displaying the info from SAP>
private function getEquip_result(event:ResultEvent):void {
equip_desc = event.result.Equitext.Equidescr;
txtAreaEquipDetail.htmlText = txtAreaEquipDetail.htmlText + "Equi. Desc. : " + event.result.Equitext.Equidescr + "\n";
var material:String=event.result.Equimaster.Material;
SAPIDAliasEquipDesc =event.result.Equitext.Equidescr;
material=material.substring(14,18);
txtAreaEquipDetail.htmlText = txtAreaEquipDetail.htmlText + "Material : " + material + "\n";
txtAreaEquipDetail.htmlText = txtAreaEquipDetail.htmlText + "Serial No : " + event.result.Equimaster.Serialno + "\n";
var costcntr:String=event.result.Equilocation.Costcenter;
costcntr=costcntr.substring(7,10);
txtAreaEquipDetail.htmlText = txtAreaEquipDetail.htmlText + "Cost Center : " + costcntr + "\n";
CustomerID = event.result.Equisales.Customer;
This is how we load the policy file.
Security.loadPolicyFile(
http://10.10.0.66:8001/sap/bc/bsp/sap/zroot/crossdomain.xml);
This works fine when we run it from the IDE but throws up an error when we deploy it on the server
So are we missing something ?
Is there anything else to be done to overcome the security issue ?
Thanks in advance.
Regards,
Karthik.
Advertisement

Replay

Hi Rich,
I followed the steps in your video when our system was R/3 4.7 (WAS 6.20) and the test worked fine, i.e. accessing the crossdomain by typing http://server:port/crossdomain.xml.
I followed the same steps with our new version (we're undergoing an upgrade) but I kept getting the error message:
"BSP Exception: the BSP URL /crossdomain.xml Does Not Contain Any Application Entries".  Then I saw Ivan post suggesting implementing OSS Note 1260386.  I applied the Note but I got the same error message. 
Then I ran function ICFBUFFER_INIT to make sure the buffer is cleared, cleared the cache in the browser and still got the same error message.
Our system is ERP 6.0, NetWeaver 7.0, level 17 (BASIS Component is SAPKB70017).
Please help.  Thank you.
Achille.

Error Accessing internet from the flex application.

Hi I am getting the following error while runningm my flex application deployed on the OC4J server. The error did not come when I was running the application directly from the flex builder. However , after deploying it on the application server my fl

SAP and Adobe (Flex)

Hello , I would like to know how to start working with SAP BW and Adobe  ( Flex). Is needed that Java Engine to be installed for the server? Is there a document how to link the 2 worlds (SAP , Adobe - Flex) ? I would like to know what resources are n

How to call a SAP service from adobe flex

Hi experts, I need to call a webservice create from SAP BAPI  my URL is: http://xxxxxxxxx:8000/sap/bc/srt/wsdl/bndg_DD90E166ACE1B1F18AD8001B789FF0AD/wsdl11/allinone/ws_policy/document?sap-client=200, with this URL I can test the webservice from WsNav

Problems calling context-sensitive AIRHelp from Adobe Flex App

Hi everyone... I´m having problems calling context-sesitive AIRHelp from Flex. I can launch the help from flex using the following code (flex), but allways starts on the default topic. private function invocarAirHelp(tema:String):void {       var app

Issue with transferring from Adobe Illustrator Draw to Illustrator on the desktop

I am having trouble getting my Adobe Illustrator Draw files to Illustrator on the desktop. Here is the error: "The file "Project-Drawing 1.draw" is in an unknown format and cannot be opened." I have updated my Illustrator CC 2014 and s

How activate Adobe Flex Builder 3

Hi, I'm using the Flex 2 SDK from Adobe Flex Builder in trial version. I would buy the license but I can't buy it. I 've looked at the new Adobe Flash Builder but this doesn't include SDK 2. How I can get the license? Thank youWe're in the same boat

Regarding rendering data from seperate XML form in Adobe Flex

Hi All, I am practicing Flex, in this practice I had used SWF file generated for perticular flex project in NWCE but one problem is occur i.e. one of the flex project(day3 exercise 10 ) is implementing  drag and drop between the components is there i

Launch Adobe Flex iView from Specific URL

I was wondering if there was a way to launch a BSP iView from a direct URL, rather than having to log in to the portal and navigate to the iView. For example, if I create an Adobe Flex application called SamplePortal, I want users to be able to click

Issue on copyng an e-book from adobe digital editions 2.0 to my pocket book

The issue is the impossibility to copy an e-book from adobe digital editions 2.0 to my pocket book. In particular, it appears a pop-up with an attention signal in which is written "impossible to write the destination file". How could I solve tha

Why can't Adobe do something as simple as giving us a desktop shortcut?  Or even better allow us to access direct from print option as we could do if we had the software installed?

Why can't Adobe do something as simple as giving us a desktop shortcut?  Or even better allow us to access direct from print option as we could do if we had the software installed?Now that I know you are talking about Cloud (not the focus of this for

I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issu

Switched from Adobe Design Standard (CS5)to Adobe CS6/ intro rate $29.99 -EXP. ISSUES. .

I recently called Adobe to switch over from Adobe Design Standard Subscription (CS5) to the CS6 Adobe Cloud subscription for the intro rate of $29.99. Ever since then I've been getting prompts such as: Unable to validate your Adobe Muse subscription:

Adobe flex integration into abap webdynpro

hi experts, i am new adobe flex development. i am following a tutorial preapred by thomas jung Adobe Flash Islands for Web Dynpro ABAP u2013 Tutorial #1, he used flex 3 to develop the flex application. i am using flex 4 downloaded from adobe. i follo

Coorilis / Phoca / crossdomain.xml help please

Hello everyone,      I am using Joomla with Phoca Gallery. It has cooliris embeded into it for a nice way to display your gallery. It states I need to put the crossdamain.xml file into the root directory. I have done this. I am using 1&1 Web hosting.

Multiple plugtmp-1 plugtmp-2 etc. in local\temp folder stay , crossdomain.xml and other files containing visited websitenames created while private browsing

OS = Windows 7 When I visit a site like youtube whith private browsing enabled and with the add-on named "shockwave flash" in firefox add-on list installed and activate the flashplayer by going to a video the following files are created in the f

Httpservice to localhost doesn't work in Flex4... Even with crossdomain.xml

So, this was working before I recompiled with Flex4, (In Flex 3.5) and now I can't get the following to work.... Story: I'm using httpservice in flex like: <mx:HTTPService id="getConfig" url="http://localhost/parser.php" method=&quo

Why is the Shockwave player not requesting the root crossdomain.xml

Hi, I have a Director movie (DCR) that is presented to visitors to my website. The DCR is actually downloaded from a separate Content Delivery Network (CDN). On startup, the DCR connects to my original website to retrieve some additional information

New data base with adobe flex

Hi  All, My Requiremenyty as below. I need to get the data from sap and from some third party softwares.  and need to build a web applicaation in adobe flex. i want put the data from sap and other systems into separate data base ( Like Oracle ). the

Career in webdynpro with adobe flex

Hi, I have 3+ years of Exp in SAP ABAP.Now i want to go for some advance things in SAP.I have worked on webdynpro and adobe forms.How is webdynpro with Adobeflex career and how is it from market perspective. Also there is webdynpro with visual compos