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: 

crossdomain.xml on WAS

Former Member
0 Kudos

Hello,

Due to flash security reasons, i would like to add a crossdomain.xml on the root of my Web application server.

Do you know if there is anyway to achieve it ??

good day to you'll

Quentin

14 REPLIES 14

Former Member
0 Kudos

Hi Quentin,

I do have the same problem. Did you find a solution yet?

Rgs Klaus

0 Kudos

Yep found it

I created a ZROOT BSP application, i put my crossdomain.xml as a mime file.

In SICF transaction : in the Default servcie Tab, I Select the ZROOT BSP application, i just created. Then I re Activated the default host (right clik Activate Virutal Host)

Finnaly in the RZ11 transaction: is/HTTP/default_root_hdl (Param name)

I Changedt he value from j2ee to abap and save.d

Good day

Quentin

0 Kudos

Hi Quentin ,

Thanks for sharing this.

I am also playing around with flexbuilder2 and integrating it with BSP pages. Would love to hear from you about your experiences. Would you mind sharing the same with us. May be through a weblog. It will be very helpful for the community.

Regards

Raja

0 Kudos

Hi Raja,

I'm planing to do so and I already have a weblog. But first, I still have a problem to solve between HTTPS and the mime repository and IE.

When I call the SWF from IE via a HTTPS connection, the swf does not load the first time, i need to reload the page. I could do it via javascript, but i don't like that.

I'm pretty sure think that the problem comes from the http headers of my WAS server. but we already talked about that, didn't we

Besides,Flex is a very nice way to do RIA, even thought, I did not find a nice way to implement team project management. I did install a SVN server, but this not as as practical as the SAP Transport system.

Furthermore, I need to look for a way to upgrade the flash player throught the intranet of my company for those who had restricted access on their computers (express install seems to need a connexion to the adobe website ).

Anyhow, Will work on that blog Post ASAP.

KR,

Quentin

0 Kudos

We had run into this issue and your help was invaluable. We have the integration up and running. Thank you very much.

0 Kudos

Hi Quentin.

I am having the same problem (see thread: )

and I am trying the process you suggested, but somehow didnt get it to work. Could you provide me some extra guidance?

(Or anyone that have the time?)

Thank you,

I created the ZROOT BSP application without filling in any extra information. Then i imported a MIME Object: crossdomain.xml file containing the following content:


<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
   <allow-http-request-headers-from domain="*" headers="*" secure="false" />
   <allow-access-from domain="*" secure="false" />
</cross-domain-policy>

Saved and activated the ZROOT BSP appl.

Went to SICF but from there, i'm lost.. i do not understand these steps:

In SICF transaction : in the Default servcie Tab, I Select the ZROOT BSP application, i just created. Then I re Activated the default host (right clik Activate Virutal Host).

Edited by: Huynh Van Du Tran on Jun 16, 2008 4:28 PM

0 Kudos

I guess i'm missing the user rights/authorization to modify things w/ sicf..

0 Kudos

Hi Quentin

I do have the same question.

i want to put a crossdomain.xml file on the server http://usciu3f.wdf.sap.corp:50050/ .

can you tell me clearly how am i supposed to go on.

since I am new to this, I dont have much knowledge.

Thanks in advance

0 Kudos
REPORT  zcrossdomain.
"---------------------------------------------------------------------------------------
"Create the Crossdomain.xml
"---------------------------------------------------------------------------------------
DATA crossdomainxml_t TYPE string.
DATA crossdomainxml   TYPE xstring.


CONCATENATE'<?xml version="1.0" encoding="UTF-8" ?>'
'<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">'
'<cross-domain-policy>'
'<allow-access-from domain="*" secure="false" to-ports="*"/>'
'<allow-http-request-headers-from domain="*" headers="*"/>'
'</cross-domain-policy>'
INTO crossdomainxml_t
SEPARATED BY space.




"convert to binary
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
  EXPORTING
    text   = crossdomainxml_t
  IMPORTING
    buffer = crossdomainxml.
"----------------------------------------------------------------------------------------
" Create Response object with the crossdomain data
"----------------------------------------------------------------------------------------
DATA lr_cached_response
TYPE REF TO if_http_response.
CREATE OBJECT lr_cached_response
    TYPE cl_http_response
    EXPORTING add_c_msg = 1.
lr_cached_response->set_data( crossdomainxml ).
lr_cached_response->set_content_type( 'text/xml' ).
lr_cached_response->set_status( code = 200 reason = 'OK' ).
"set the validity for more than a day(86400)
lr_cached_response->server_cache_expire_rel( expires_rel = 90000 ).
"----------------------------------------------------------------------------------------
"Upload to the ICM root directory
"----------------------------------------------------------------------------------------
CALL METHOD cl_http_server=>server_cache_upload
 EXPORTING    url      = '/crossdomain.xml'
    response = lr_cached_response
       scope    = ihttp_inv_global.

Try this . Create this as a program and run. check this in the dev and testing sever first.

Former Member
0 Kudos

Hi

The last step is:

Open the default_host by double click. Go to Defaut Service tab, modify and position on your BSP by double clicking on the BSP in the sicf tree ( sap->bc->bsp->sap->your bsp).

Then save the default_host.

Then activate again the default_host service.

Now when you click on the Default service tab it should point directly on your BSP.

Regards

Johann Marty

0 Kudos

Marty hi,

I know that your last reply on the subject was a long time ago,

But I'll try and ask you a question about it.

I have followed all steps and my default host points to my BSP application with the crossdomain file,

But when I try to run my default host through url http://xxx.xxx.xx:8031/crossdomain.xls,

it points to a different location than my BSP.

Any ideas why?

Someone mentioned something with rz11, is it necessary?

Regards

Shlomi

0 Kudos

We are trying to attempt a Flex appication to SAP webservice connection and have also run into the deadend of not being able access the crossdomain.xml file on the root of the server.

It seems like the instructions given in this thread and others are leaving out some steps.

Former Member
0 Kudos

Hi All,

Firstly, great thread.

My problem is that the service I am trying to access is on a ByDesign system and the ByD system does not have any default host for which I can maintain Default Service. The ByD system has a host with the client name and I can not maintain a default service for it.

Has anyone else faced the same issue?

Regards,

Amit

Former Member
0 Kudos

Hi ,

We are implementing  SAP Screen PERSONAS and need the clientaccesspolicy.xml" and "crossdomain.xml  files for reference , which is already edited for your client so that i can easily modify

Thanks

Kiran.GVL