Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying a crossdomain.xml file on an SAP NetWeaver Web AS (Java stack)

Former Member
0 Kudos

There are various posts on how to deploy a crossdomain.xml file on an ABAP Web AS.

Can anyone tell me how to add the crossdomain file to the root of my Netweaver Java-AS?

I'm using an Xcelsius dashboard accessing data on a MaxDB via the "XML data" connection.

Any help would be appreciated.

Kind Regards,

Rui Nogueira

2 REPLIES 2

Former Member
0 Kudos

Hi Rui,

It could be a Cross domain issue please refer the following blog

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16393] [original link is broken] [original link is broken] [original link is broken];

If you are working on silverlight cross domain issue follow tis steps

after you coppy the report in the blog to the abap editor make the following changes replace the concatenate statement with following code

CONCATENATE'<?xml version="1.0" encoding="UTF-8" ?>'
           '<access-policy>'
           '<cross-domain-access>'
           '<policy>'
            '<allow-from http-request-headers="*">'
            '<domain uri="*"/>'
            '</allow-from>'
            '<grant-to>'
                '<resource path="/" include-subpaths="true"/>'
            '</grant-to>'
        '</policy>'
    '</cross-domain-access>'
'</access-policy>' into crossdomainxml_t SEPARATED BY SPACE.

replace CALL METHOD CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD with below

"-----------------------------------------------------------------------
"Upload to the ICM root directory
"-----------------------------------------------------------------------
CALL METHOD CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD  
EXPORTING   
 URL = '/clientaccesspolicy.xml'    
RESPONSE = lr_cached_response    SCOPE    =
IHTTP_INV_GLOBAL    .

Former Member
0 Kudos

Hi Rui,

This document may not have been available when you asked this question, but for those searching for the answer I would suggest going to this link:

http://learn.adobe.com/wiki/display/security/ApplicationSecurityLibrary

and view the Cross Domain Security document. (direct link is: [http://learn.adobe.com/wiki/download/attachments/64389123/Acrobat_CrossDomainSecurity.pdf?version=1]

In there are some instructions for deploying a cross domain XML file for a Netweaver Java AS.

My only question is by putting files in there, will it get overwritten when new support packs are deployed?