I need a crossdomain.xml file?

I worked on my first Flex application, and he designed several structures menu based on data coming from external XML files. Everything works correctly when you run the project in Flex Builder, but when I move the build directory (/ bin) to another location, it does not load my menus. I have discovered it is because of the configuration of security projects build directory gets and to get my files to work elsewhere, I'll need a crossdomain.xml file.

After reviewing the operation of the crossdomain.xml files I wonder if in my case I should even need one because the files load my SWF will be already placed on the local machine - not a server. Yet, the application does not work so I tried a crossdomain.xml even when using the following code:


<? XML version = "1.0"? >
<! DOCTYPE cross-domain-policy SYSTEM " http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" >

< cross-domain-policy >
< allow-access-from domain = "192.168. * "safe ="false"/ >".
< / cross-domain-policy >

Tags: Flex

Similar Questions

  • Domain name in the crossdomain.xml file

    Hello

    I have a Flex application that accesses data from an external system that is hosted by a 3rd party. We want to maintain a crossdomain.xml on this system, but not sure what should be the name of the system.

    We have 3 out of the intellectual property and in the file corssdomain should be the outgoing our IP domain or IP address from our local server on which flex is running, or both.

    Please give me advice.

    Thank you

    Colinet

    It should be everything that can appear after http:// in the URL for sovereign wealth funds

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Security 2048 # error with crossdomain.xml file

    I use the MX/XML/Syndication booksellers and get a security error #2048 error. The error seems unreasonable to me that there is no solution before him on the Internet. I tried hardcoding security methods in AS 3 and also by using a crossdmain.xml file in my root directory to no success. I'm about to give up and use pure PHP. It takes a simple solution for this.

    you file php needs to read the xml stream and then you can roll this back to Flash.

  • Urgent: crossdomain.xml location on Weblogic 10.3.3.0

    Guys,

    Pls tell me where to put the file crossdomain.xml on weblogic server.
    I want to access this file in this way: http://localhost:7001 / crossdomain.xml

    Can anyone how? also, if any WAR needs to be updated, then what is the name of the WAR file? How can I update and redeploy?

    Thank you
    Aerts

    I don't know if it will however work according to the link:

    http://msdn.Microsoft.com/en-us/library/cc197955%28V=vs.95%29.aspx

    It is written "save the crossdomain.xml file to the root of the domain where the service is hosted. If, for example, the service is hosted in http://fabrikam.com, then the file must be located at http://fabrikam.com/crossdomain.xml. »

    Try to create a Web - App simple 'test' and deploy in the same or the server that hosts the Web service.

    1 ' essay' contains 'web - inf' & 'crossdomain.xml '.

    2 ' web - inf' contains

    WebLogic.Xml
    ------------


    /

    Web.Xml
    -------

    3. deploy to the servers hosting the Web service.

    4. in doing so, you should be able to access the http://hostname:port / crossdomain.xml.

    Hope this helps

    -Akshay

  • IOError in IE but not in Firefox (problem possible crossdomain.xml)

    Yesterday I debugged If all goes well a problem that happens for our application in Internet Explorer but not in Firefox.

    This has to do with access to remote content from a separate domain.

    In all aspects, it SEEMS to be a problem of crossdomain.xml, but the fact that this arrises only problem in IE is what prompted me to post here.

    We have a solution in progress (in the bureaucratically speaking), but I want to check here.

    Our application is the field of "a.domain".

    It access a file xml on 'b.domain/xml/ '.

    And finally (this is the tricky part) it also accesses an xml file to "b.domain/forwardingPath/" which is actually transmitted to the 'c.domain/xml/ '.

    The crossdomain.xml is located at "b.domain/crossdomain.xml".

    The application of "b.domain/xml/anXMLFile.xml" works without any problem.

    The demand for the 'b.domain/forwardingPath/anotherXMLFile.xml' exists in Firefox but not in IE (remember, ACTUAL demand is sent to "c.domain/xml/anotherXMLFile.xml").

    In Internet Explorer, I get an IOError.

    I think that we need a proper crossdomain.xml file, also located in the "c.domain/crossdomain.xml" and put in this request.  I want to confirm is whether this interpretation is correct.  I'm not at all a person on the server side.  It's all of the elves and fairies for me.  And then finally, why the hell is this inconsistent behavior between IE and Firefox?  The version of flash player Firefox violates its own safety standards?

    I swap this in the stack overflow.  field-xml-issue http://StackOverflow.com/questions/7395931/ioError-in-IE-but-not-in-Firefox-possible-Cross

    I have ping our developers on this subject and this is what they have to say:

    "We did some work for the plugin around redirects andhence the correct behavior on Firefox.

    As far as I KNOW, on IE we don't get the redirection messages and may not participate in the decision-making process of security during redirection scenarios. This behavior is beyond our control.

    There is a workaround solution described in the AS3docs here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/LoaderCont ext.html #checkPolicyFile

    Here's the relevant paragraph:

    Be careful with checkPolicyFile if you are downloading anobject from a URL that can use HTTP redirects on the server side. Arealways policy files comes from the corresponding initial URL that you specify inURLRequest.url. If the final object comes from a different URL because of the HTTPredirects, the initially downloaded policy files might not applicableto the of the object's final URL, which is the URL that matters in security decisions. If you are in this situation, you can examine the value of ofLoaderInfo.url after receiving an orEvent.COMPLETE ProgressEvent.PROGRESS event, which tells you the final URL of the object. Then call the method theSecurity.loadPolicyFile () with a URL based on the object URL policy file ' sfinal. Then query the value of LoaderInfo.childAllowsParent until it becomes true. »

    Chris

  • FileReference - crossdomain.xml - restrict access to all MY Flex application?

    I have a Flex application based on the web (domain A) concerning must download files on the desktop of the user FROM an external server (domain B). I use Adobe FileReference class to do this. Now, I know that I need a file crossdomain.xml to the external server in domain B to establish trust between the Flex application and the server download. In the end, I need any user to any domain to have access on the server download for the cross-domain file must specify:

    allow-access-from domain="*"

    But this will open up acess to the downloadble files to any flex app out there on the web . Is there a way to restrict access to just MY Flex app in the
    crossdomain.xml file?

    thx in advance!

    -MC

    Why do you need any user to any domain access?

    Anyone using your web application will be in area a. unless you count should the swf for others to download from their servers (which woiuld be strange)

    the field is the place where its hosted

  • HTTPService to localhost does not work in Flex4... Even with crossdomain.xml

    So, it worked before I recompiled with Flex4, (in Flex 3.5) and now I can't get the following to work...

    History:

    I use httpservice in flex as:

    "" < mx:HTTPService id = "methods" url = "http://localhost/parser.php"method = "POST" showBusyCursor = "true" resultFormat = "e4x" result ="xmlresultHandler (event)" fault = "faultHandler (event)" / > "

    Everything is in my directory on my web server. When run in debugging or directly from flashbuilder, the call works fine. If I ran a release build, FTP in/var/www rejection (my roots) and try to access the server, the site pulls upward, and the series of swf files, but I always get a

    Fault: Channel .Security .error

    FaultString: 'error of security to access the url.

    faultDetail: ' Destination: DefaultHTTP.

    When it tries to read the httpservice.

    I have a crossdomain.xml file in my folder/var/www (webroot) with what I see as a permissive super settings... Below:

    <? XML version = "1.0"? >
    <! DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" > ""
    < cross-domain-policy >
    "< allow-access-from domain =" "*" ports = "*" / >
    < site permitted-cross-domain-policies of control = 'all' / >
    "< allow-http-request-headers-from domain =" "*" headers = "*" / >
    < / cross-domain-policy >

    Any help would be GREATLY appreciated.

    You may need to set the - use-network = false compiler option.

    Project - Properties - Flex Compiler

    Add the option - use-network = false for the ' additional compiler arguments: "section.

    When deploying on a live server, you probably need to recompile it with the option - use-network = true.

    Who knows, maybe in your situation, it must be set to true.

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Training Flex and Support Services

  • XML file for GigE Vision camera

    Hello

    I'm working on a model of GigE Vision camera. It should be very simple linescan camera. I put in place the necessary set of registers GigE Vision, can communicate with the camera in MAX. The problem is that I need creata this XML file for the camera. There is this here XML file:

    http://www.EMVA.org/CMS/upload/standards/GenICam_Downloads/SFNC_Reference_Version_2_0_0_Schema_1_1.x...

    What should I do with it? My first version of the camera will have 2 functions: turn on and off I'm confused, because the model xml file has many functions, I don't really have. Should I remove them? Or leave it inside with default values? That she needs a configuration minimum XML file?

    Kind regards

    Linus

    Hi Linus,

    If you look at the GigE Vision specification, you will see that there is a minimal subset of functionality that must be present for the camera be declared compliant. That's all what IMAQdx will need for the camera works fine. All other functions in the XML file that you downloaded are part of the SFNC (features Standard Naming Convention) defines the names/behavior for common characteristics that are often found on machine vision cameras. As a general rule, cameras implement a subset of these features. You should not let any features that are not implemented in the XML because it would be just confused because they would do nothing.

    Eric

  • What is Crossdomain.xml

    Can someone tell me what's the use of crossdomain.xml? And how does it work? Where there should be the crossdomain.xml file is placed in the client side or the remote access server?

    If you have a Flash movie in a field on a single server, you cannot access data on another domain. It is a safety precaution. In order to use the data from another domain, you must allow other data to share including a crossdomain.xml file in the second field. This crossdomain.xml file tells the flash player that the data from that second domain is OK to use.

    There are a number of scenarios, explained in the first document that I listed above. You have a situation that is different from all these examples?

  • Flex Mobile + crossdomain.xml

    OK, so here's a fun one for you.

    I have a webservice that calls the mobile application.  It works fine on a http://localhost/... run, but when tests on the device, the device cannot interpret the localhost.

    Which means I have to:

    1.) put the webservice on a domain (completed)

    2.) make a crossdomain.xml file?

    <? XML version = "1.0"? >
    < cross-domain-policy >
    < site permitted-cross-domain-policies of control = "master only" / >
    < allow-access-from domain = "*" / >
    < / cross-domain-policy >

    I mean, the domain must be "*" because mobile applications can be anywhere...

    Does anyone have any idea on this?  I tried to use the webservice on my domain server, but nothing helped.

    I had the same problem and I have just set.
    The phone do not translate the hostname to an IP address.
    So instead of http://localhost/webservice.asmx?wsdl put http://192.168.0.1/webservice.asmx?wsdl (where 192.168.0.1 is the ip address of your local host)

  • Problem crossdomain.xml

    Good afternoon

    I have a web app in flex 3 which, on a server "http://SRV-XXX:8181/relflex/main.html" and in the application, I reached by HTTPService " http://SRV-XXX:8181/SL_SISFLEX/slSRV05"(my Servlets).
    When you access the site with 'http://SRV-XXX:8181/relflex/main.html' works normally, but when I "http://172.1.0.6:8181/relflex/main.html" does not work and error # 2048

    (mx.messaging.messages: errorMessage) # 0
    body = (null)
    clientId = "DirectHTTPChannel0".
    correlationId = "0D499AD7-FE29-95E7-9B5A-B2062705750F."
    destination = «»
    extendedData = (null)
    faultCode = "Channel.Security.Error".
    faultDetail = "Destination: DefaultHTTP.
    faultString = "error of security to access the url.
    headers = (Object) # 1
    DSStatusCode = 0
    MessageId = "F4BCF095-DD0B-8739-5057-B2062734F478."
    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 of the safe area:
    http://172.1.0.6:8181/relflex/main.swf cannot load data from http://SRV-XXX:8181/SL_SISFLEX/slSRVXXX? db = relflex & parameterDataSource = % S 5FPOD USP
    Type = "securityError".
    timestamp = 0
    timeToLive = 0

    I try to use the link in the crossdomain.xml as http://SRV-XXX:8181/relflex/crossdomain.xml:

    <? XML version = "1.0"? >
    <! DOCTYPE cross-domain-policy SYSTEM "
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" > ""
    < cross-domain-policy >
    < site-control permit-cross_domain-policing = 'all' / >
    < allow-access-from domain = "" * "ports =" * "/ >"
    < allow-access-from domain = "srv - XXX" ports = "8181" / >
    < allow-access-from domain = "172.1.0.6" to-ports = "8181" / >
    < / cross-domain-policy >

    And in the application I'm call-> flash.system.Security.loadPolicyFile ("http://SRV-XXX:8181/relflex/crossdomain.xml");

    You can help me to solve the problem of the call of 172.1.0.6:8181 and SRV - XXX:8181?

    TKS!

    Paulo David

    If you can, try the default configuration where you put the crossdomain.xml file in the root and not the relflex subfolder.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Need help to read the xml file and place it in a table.

    Nice day!

    Here is the configuration. I have a xml file from another source which will call a stored procedure in my database (which I am supposed to create). This is a first for me, I've never done development pl/sql or worked with xml. :(

    That's what I hoped to accomplish, if there is a better way, that I am open to him.
    In short, to have a stored procedure that takes the xml file (transmitted by third parties via the call, no url must be a file), creates a temporary table and populates the two columns needed. Then, the SP will make a select join with the temporary table and other data available in another schema. Once the completed table selection will be truncated and dropped. SP farm.

    Details:
    DB: Oracle 11.2.0.1 RAC.
    Charset: AL32UTF8
    Example of XML: (nearly 10,000 lines like this in production)
    "< MerchantID report =" "#" name = 'Conversion detail report' ReportStartDate = '2011-09-27 12:00:00GMT' ReportEndDate = '2011-09-27 21:38:13GMT"Version ="1.1"> < Conversion = '1234567891234567 D' MerchantReferenceNumber Convertingdate =" 2011-09-27 13:39:02 "RequestID ="1234567891234567891234"> < OriginalDecision > REVIEW < / OriginalDecision > < NewDecision > ACCEPT < / NewDecision > < Reviewer > testusr < / examiner > < ReviewerComments > no reason to reject. < / ReviewerComments > < Notes > < Note Date = "2011-09-27 13:39:02" AddedBy = "testusr" comment = "Took possession" / > < / Notes > < queue > Digital Review < / queue > < profile > Digital orders QA < / profile > < / Conversion > "
    ...
    < / report >

    What I tried.
    I found a tutorial: http://it.toolbox.com/blogs/oracle-guide/oracle-and-xml-in-action-a-real-world-example-5319 I tried and was able to make it work. But I could not duplicate the results with my xml file. So I looked away and have had no success. :( I'm not a developer, so I'm really bad...

    I found a note of support: (how to load an XML file into a Database Table using DBMS_XMLSave unaided Bfile [227476.1 ID]) and couldn't make it work.

    I found some online then Odie son xml and tried these but slipped and couldn't get my versions of these great answers to work for me.

    Then... I'm here now and hoping that someone could walk me through this.


    I tinkered this SP (it doesn't have to be that way, the suggestions are greatly appreciated)

    create or replace procedure xml_to_table (call_1 call_2) as

    Start
    run immediately "CREATE GLOBAL TEMPORARY TABLE XMLType IMRPT
    --(clé primaire contrainte-imrpt_pk (MerchantReferenceNumber))
    XmlType store as xml binary basicfile
    -(high compression)
    virtual columns
    (MerchantReferenceNumber as (xmlcast (xmlquery ('/ Conversion/MerchantReferenceNumber ' from object_value content back) as VARCHAR2 (32))))
    , NewDecision as (xmlcast (xmlquery ('/ Conversion/NewDecision ' from object_value content back) as VARCHAR2 (10)))
    )
    -ON COMMIT PRESERVE ROWS

    run immediately 'save xml as a file on the local system?'

    insert into IMRPT (MerchantReferenceNumber, NewDecision)

    run immediately "join select statement.
    run immediately 'truncate table IMRPT.
    run immediately "drop table IMRTP.

    end;
    /

    On my last test, I tried to select just in the xml file using this:

    DECLARE
    indomdoc DBMS_XMLDOM. DOMDocument;
    innode DBMS_XMLDOM. DOMNode;
    myParser DBMS_XMLPARSER.parser;
    buf VARCHAR2 (2000);
    BEGIN
    myParser: = DBMS_XMLPARSER.newParser;

    DBMS_XMLPARSER.setBaseDir (myparser, 'XML_DIR');
    DBMS_XMLPARSER. Parse (myParser, "test.xml");

    indomdoc: = DBMS_XMLPARSER.getDocument (myParser);

    -just to test content
    innode: = DBMS_XMLDOM.makeNode (indomdoc);
    DBMS_XMLDOM.writeToBuffer (innode, buf);
    Dbms_output.put_line (BUF);

    dbms_xmldom.freeDocument (indomdoc);
    dbms_xmlparser.freeParser (myParser);
    END;
    /

    It was another accident and burn.

    Any help would be appreciated.

    Thank you

    Like I said:

    Here is an example using a REF CURSOR variable ( you will need to declare a plus for your actual procedure )

    Your procedure has two parameters, you must declare two variables to hold the two REF CURSOR ;)

    DECLARE
    
      v_filename      VARCHAR2(50) := 'DMReport.xml';
      v_rc1            SYS_REFCURSOR;
      v_rc2            SYS_REFCURSOR;
    
      v_order_name       VARCHAR2(100);
      v_reason_text      VARCHAR2(100);
    
    BEGIN
    
      xml2table(v_filename, v_rc1, v_rc2);
    
      commit;
    
      loop
        fetch v_rc1 into v_order_name;
        exit when v_rc1%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name);
      end loop;
    
      close v_rc1;
    
      loop
        fetch v_rc2 into v_order_name, v_reason_text;
        exit when v_rc2%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name||', REASON_TEXT='||v_reason_text);
      end loop;
    
      close v_rc2;
    
    END;
    /
    

    If you test this in SQL * Plus, do not forget to SET SERVEROUTPUT ON to see the result.

  • Need to XSL file create my XML file

    Hello world

    This is the first time that I post my question here in the XML section, in fact I have a XML file as
    <root_node>
        <node_1>
            <element>abc</element>
        </node_1>
    </root_node>
    Now when I retrieve data from this XML file so I need to get the root node in the Dept and 1 node as DeptRow and item as an identifier.
    While she will look like when I will actually try recover data
    <Dept>
        <DeptRow>
            <Id>abc</Id>
        </DeptRow>
    </Dept>
    So for this I need to use Transform method in java and generate an XSL file that can convert data according to my needs without modifying the original file.

    then may - does anyone know what content must exist in the XSL file.

    your help would be appreciated too

    Thank you
    FIZZZ...

    Apply an XSLT transformation to inpt XML. Please see
    http://XML.sys-con.com/node/48763

  • Need help with the help of an xml file for changes in the system profile

    I'm looking to accelerate the deployment of new rack-mounted servers by updating their server through xml import profile information and I'm stuck.

    I am able to successfully export the profile as an XML to NFS.

    I'm not having luck changing data to import.

    My first attempt great base is simply by changing the name of drac.

    Here are the contents of the xml file that I am trying to import:

    ");" >
    laboratories-001-dev-a01 - dc1.example .net
    The job fails.

    Any ideas on what I am doing wrong?

    Hi Martin,

    I found my problem.

    In the GUI, you can enter a COMPLETE domain like something.example.com name in DNS Rac name field.

    Who will fail via importing a racadm as apparently a. is not allowed during the updating of the attribute "NIC.1 #DNSRacName".

    Is this a bug of the DRAC?

  • Need to remove the tags file Nullable while generating XML files

    Hello.

    I have a requirement where I have to generate an XML file, but the generated XML file does not display the tags when the column is null. An example below:

    CREATE TABLE emp_tab (emp_id NUMBER PRIMARY KEY
    name VARCHAR2 (20).
    dept_id NUMBER);
    Table created.
    INSERT INTO emp_tab VALUES (30, 'Scott', NULL);
    1 line of creation.
    INSERT INTO emp_tab VALUES (31, 'Mary', NULL);
    1 line of creation.
    INSERT INTO emp_tab VALUES (40, 'John', NULL);
    1 line of creation.
    COMMIT;

    When I generate the XML code, you can find the output like below:
    < EMPLOYEE >
    < EMP_ID > 30 < / EMP_ID >
    Scott < NAME > < / NAME >
    < / EMPLOYEE >

    I just the Worklfow Developer's Guide and the example above was taken from Page 561 and 562 by looking at the DBMS_XMLGEN.setNullHandling using DBMS_XMLGEN procedure. DROP_NULLS as a parameter.

    Now, I understand the concept, but my requirement is a little different. I get a record as my procedure parameter PLSQL type, but requires the choice of a base table, which means maybe I have to insert first the folder I get as parameter in a table of basic and then select in the same when you set the context, which is what I don't want in the DBMS_XMLGEN.newContext. This is an additional burden.

    I've previously planned to use XMLELEMENT and XMLFOREST to generate the XML file (and was rather more simple), but this requirement to remove the tags altogether when the values are NULL led me to believe that maybe I might have to go down the path of using the API DBMS_XMLGEN.

    Can you suggest a better way, replacement to achieve what I want? Or perhaps give an example on how I can get there using XMLDB?


    Thank you and best regards,
    JD

    Can I use just the XMLElement and XMLForest to achieve?

    Sure. As said, XMLForest does not create elements for NULL values:

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb13gen.htm#ADXDB5006

    If the expression value is null, then no element is created for this expression.

    This is the code I wrote your above mentioned suggestion discussion forum

    Yes, but this solution is taken out of context.
    Here, it is obviously preferable to not generate empty items in the first place:

    SELECT XMLElement("Address"
           , XMLForest(
               lr_addr_rec.account_name     as "AccountName"
             , lr_addr_rec.address_line_1   as "Addressline1"
             , lr_addr_rec.lot_number       as "Addressline1"
             , lr_addr_rec.address_city     as "City"
             , lr_addr_rec.address_state    as "State"
             , lr_addr_rec.address_postcode as "PostCode"
             )
           )
    FROM dual;
    

Maybe you are looking for