XML issue

I trying my hands on xml i am new to xml and learning i read the code and tried executing it :
CREATE TABLE XMLTABLE OF XMLType;
create or replace function getClobDocument(
filename in varchar2,
charset in varchar2 default NULL)
return CLOB deterministic
is
file bfile := bfilename(’DIR’,filename);
charContent CLOB := ’ ’;
targetFile bfile;
lang_ctx number := DBMS_LOB.default_lang_ctx;
charset_id number := 0;
src_offset number := 1 ;
dst_offset number := 1 ;
warning number;
begin
if charset is not null then
charset_id := NLS_CHARSET_ID(charset);
end if;
targetFile := file;
DBMS_LOB.fileopen(targetFile, DBMS_LOB.file_readonly);
DBMS_LOB.LOADCLOBFROMFILE(charContent, targetFile,
DBMS_LOB.getLength(targetFile), src_offset, dst_offset,
charset_id, lang_ctx,warning);
DBMS_LOB.fileclose(targetFile);
return charContent;
end;
Followed th instrection below :----
-- create XMLDIR directory
-- connect system/manager
-- create directory XMLDIR as ’<location_of_xmlfiles_on_server>’;
-- grant read on directory xmldir to public with grant option;
-- you can use getCLOBDocument() to generate a CLOB from a file containin
-- an XML document. For example, the following statement inserts a row into the
-- XMLType table Example2 created earlier:
tried to insert
INSERT INTO XMLTABLE
VALUES(XMLTYPE(getCLOBDocument(’purchaseorder.xml’)));
got error
ORA-22285: non-existent directory or file for FILEOPEN operation
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SYS.GETCLOBDOCUMENT", line 19
ORA-06512: at line 9
please help

Is the folder specified in the CREATE DIRECTORY command existing and readable/writable by the operating system user under which the Oracle database service is running?
What are the operating system permissions given on that folder ?
Performing the READ/WRITE GRANT from the SQL is not going to give the write/read privledge on the operating system folder as well. That you will have to set and verify outside of the Oracle environment.
Message was edited by:
Kamal Kishore

Similar Messages

  • SSRS-XML issue

    I have a field in the database table that contains an XML string. It is not formatted. In report we need to display it as formatted like XML
    xml, with highlight option, tree view with expand/collapse  option on each node. We are able to achieve the formatting with below script
    Public Function FormatXml(file_content As String)As String 
    Dim doc As New System.Xml.XmlDocument() 
    doc.LoadXml(file_content) 
    Dim sb As New System.Text.StringBuilder() 
      Dim settings As New System.Xml.XmlWriterSettings() 
      settings.Indent = True 
      settings.IndentChars = "    "     ' This includes 4 non-breaking spaces: ALT+0160 
      settings.NewLineChars = System.Environment.NewLine 
      settings.NewLineHandling = System.Xml.NewLineHandling.Replace 
      settings.OmitXmlDeclaration = True 
      Using writer As System.Xml.XmlWriter = System.Xml.XmlWriter.Create(sb, settings) 
        doc.Save(writer) 
      End Using 
      Return sb.ToString() 
    End Function
    But this is not working with all IE version.Mainly we are trying to get  tree view with expand/collapse  option on each node in the report .  Please help me in resolving this issue

    I've tried creating a new parm:Object but the issues still
    comes down to how Microsoft generates the URL parms using the ":"
    to define a variable.

  • Idoc flatfile to IDOC xml issue with new PI7.11 module SAP_XI_IDOC/IDOCFlat

    Hi,
    I am trying to develop a scenario as mentioned in the blog using the new module available in PI7.1,but I am getting this error
    "Error: com.sap.conn.idoc.IDocMetaDataUnavailableException: (3) IDOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "ORDERS05" is unavailable."
    I have made every configuration correct and IDOC meta data available in both SAP R3 and PI,but it is still complaning about the meta data does not exist.
    Blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13743%3Fpage%3Dlast%26x-order%3Ddate
    did anybody face issue with the new module available "SAP_XI_IDOC/IDOCFlatToXmlConvertor",please help me or give me mre information why I am getting this meta data error.
    Thank you,
    Sri

    Hi Sri,
    To Convert IDOC Flat file into IDOC xml from the given blog, the IDOC flat file should be present in standard format like:
    E2EDK01005                    0000047110815000000000001.........
    E2EDKA1003                    0000047110815000000000002.........
    E2EDKA1003                    0000047110815000000000003..........
    E2EDKA1003                    0000047110815000000000004........
    The Flat file have relationship as IDOC Number "000004711081500000" and segment sequence "0000001".
    If your flat file is not in this formate so i don't think that module is able to convert into IDOC xml. and if your file is already in this format then it may be issue with destinations which are created in NWA.
    Thanks
    Harish

  • Castor XML  issue

    Hi,
    i m using castor-1.0.3 for generating source code from xml schema.
    i ve a complex schema n even have binding file too for class name conflicts.
    The issue i m facing is when i run "
    java org.exolab.castor.builder.SourceGenerator....." it gets hung after generating certain class files. it ll never proceed. i need to explicitly terminate after waiting for a long time..
    I m stuck here as to what might be going wrong here..
    Kindly suggest.
    Regards,
    Lance

    FYI:
    I tried Castor. In my opinion, there's a much better solution BC4J. BC4J lets you read and write your objects to XML, using readXML and writeXML. It seems more mature than Castor.
    If you are just reading and writing your object or collection of objects and hierarchy to file, then you only use readXML and writeXML.
    With BC4J, you model you objects in BC4J, then BC4J allows you to create a DTD for these objects. So if you have inbound or outbound XML that you need to transform from/to, you can then use this DTD and the DTD/XML Schema of the other format to write a xslt transformation.
    Another benefit, you can pass object hierarchies across a web service using writeXML on the client side and then readXML to repopulate the object hierarchy on the server side of the web service.
    Richard Catlin

  • Deposit Advice XML Issue

    Hello Gurus, I am having an issue with XML Deposit Advice and XML Check Writer. In our deductions, we have City Withheld and Head Tax Withheld. For some employees, the City Withheld is showing as '0' on the Deposit Advice Slip but '6.92' on the SOE. Though the Deposit Slip shows '0' for withheld under deductions, the Net Pay matches with that on the SOE. Can anyone tell me why this is happening? Any help is highly appreciated.
    Thanks, Naveen.

    This is an internal error with Hr/Payroll.
    Thanks, Naveen Gagadam.

  • Menus.xml issue when trying to launch Dreamweaver CS4

    I have used Dreamweaver CS4 for many years on my Mac. I had a drive failure and have had to reload all of my applications from scratch as there seemed to be an issue with the Time Machine back up. Everything is working well apart from Dreamweaver CS4 which brings up an error message telling me to delete my menus.xml file and rename menus.bak to menus.xml which just doesn't work.
    I have checked and this has been asked before but none of the previous answers that I could find will work for me. Any new ideas?
    Apple MacBook Pro (mid 2010 model) running bang up to date version of OSX Mavericks.

    dg28 wrote:
    Thanks Preran
    One issue appears to be that Dreamweaver has loaded the help and configurations files into a folder in applications rather than in application support. I do not have a Dreamweaver CS4 folder anywhere in applications support under my identity or than of the loacl admin.
    You need to turn on your hidden folders to see it.
    http://guides.macrumors.com/Viewing_hidden_files_on_a_Mac

  • E4X Xml issue

    hi,
    I am facing an intermittent issue with E4X.
    I am trying to do following:
    1. Get XML from web service in string format.
    2. Replce \ using regular expression. Below is the code.
    webResult = webResult.replace(/&amp;/g, '');
    webResult = webResult.replace(/&/g, '');
    xmlResult = new XML(webResult.replace(/\\/g, ''));
    3. The issue is XML tags/attributes are mispaced as below.
    Input Xml (i.e. webResult) contains following line :
    <SourceHeaderKey Source="CI" SourceCode="20" Key="708011233708011233258956002000" />
    Replced with below string in E4X :
    <SourceHeaderKey Source="CI" SourceCode="20" Key=""708011233708rceCode="20" Key="708011233708011233258970002000"/>
    4. Key="708011233708011233258956002000" is correct, but in E4X it is Key=""708011233708rceCode="20" Key="708011233708011233258970002000"
    Any known issues with E4X. I tried searching on web but could  not find any.
    Any help is greatly appreciated. PLease help.
    Thanks,
    Aditya
    Adi

    Hi Aditya,
    You're asking this question in the wrong forum, this forum is for reporting issues with the forums themselves, not individual product support.
    I think your best bet to get some help with this is over in the JavaScript forum on the asp.net site:
    http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript
    One note though, I did see that Firefox has completely dropped support for E4X:
    https://developer.mozilla.org/en-US/docs/E4X/Processing_XML_with_E4X?redirectlocale=en-US&redirectslug=Core_JavaScript_1.5_Guide%2FProcessing_XML_with_E4X
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • CWCLI and XML issue on RME 4.3

    Hi All,
         On a Windows 2008 Server with SP1 running LMS 3.2, I have a script that creates IOS configuration files with the appropriate XML command file for use with the cwcli config import function.  The XML file contains the following tags and values:
    <payload>
    <command>
       cwcli config import -u admin -p [Base64PWD] -device [DisplayName]
      <arg>
       -f
      </arg>
      <arg-val>
       D:\Program Files\CSCOpx\tftpboot\[DisplayName].cfg.[ID]
      </arg-val>
    </command>
    </payload>
    When I execute the sample script to invoke the Servelet, as provided in the RME users guide, I get the information that the job is running:
    <!-- Executing: cwcli config import -u admin -p [Base64PWD] -device [DisplayName] -f D:\PROGRA~2\CSCOpx\temp\argValFile.txt -->
    <cwcli> INFO - Devices to be attempted in the job:
    [DisplayName]
    <cwcli> INFO - The job 5548 is created
    Waiting for the job results ...
    <cwcli> - Job Status: Job Succeeded
    Successful Devices:
    [DisplayName]
    <cwcli> INFO - CM0107 Import the config file to PRIMARY Running Config on device successful CM0091 Check if the device prompt is available.
    CM0089 Config archival successful for [DisplayName]
    <cwcli> INFO - The transport mode used is TFTP
    SUMMARY
    ========
            Successful: import
    <!-- Processing complete -->
    After this is where it gets weird!  On the switch - having previously issued the command "term mon" - I see the following output displayed:
    Apr 28 16:56:38: %SYS-5-CONFIG_I: Configured from console by cw_2000_hq on vty2 (10.185.64.101)
    Apr 28 16:56:46: %SYS-5-CONFIG_I: Configured from tftp://[CWServer]/20110428165646943-[DeviceIP].cfg by console
    and checking the device I see that no changes have taken place.  Inspection of the file that was sent via TFTP to the device indicates why - it contains garbage:
       D:\Program Files\CSCOpx\tftpboot\[DisplayName].cfg.[ID]
    end
    The file I am specifying between the XML <arg-val> tags contains these commands:
    interface FastEthernet0/21
      switchport access vlan 2400
      switchport mode access
      no cdp enable
      spanning-tree portfast
      ip verify source
      shutdown
    end
    Can anyone tell me what I am doing wrong, please..?
    Thanks,
    SRGi

    The documentation is wrong.  Your payload should include the commands you want to deploy.  So, use:
       cwcli config import -u admin -p [Base64PWD] -device [DisplayName]
       -f
      interface FastEthernet0/21
      switchport access vlan 2400
      switchport mode access
      no cdp enable
      spanning-tree portfast
      ip verify source
      shutdown
    end

  • Premiere CC to ProTools OMF/XML issues

    XML and OMF audio timecode does not relink properly in external applications with my current Premiere CC / Mavericks configuration. Reverting to CS6 solves the issue described below...cannot say with certainty if previous CC versions solve the issue.
    Exporting OMF's to our sound engineer do not relink properly in ProTools - I've tried every available method for OMF export (encapsulated, referenced, etc).
    Exporting XMLs have a related issue - if an XML export is brought into another application (e.g. FCP 7) The audio region is correct but audio is not synced properly...it is pulling from incorrect timecode. This is externally recorded audio, recorded separately from source video. Video tracks are correctly synced.
    I can get accurate XML's out of Audition. Reverting to CS6 via XML and exporting OMF from there is my current workaround.
    Mac OSX 10.9.2
    Premiere CC 7.2.2

    Hi Andy,
    Sorry this isn't working for you.
    Can you export a much simpler version of your sequence?
    Can you try exporting only with mono tracks?
    Are there any nested sequences in the sequences?
    For file export, did you choose "encapsulate?"
    Are all the clips the same sample rate?
    Does the sample rate of the clips match sequence settings?
    Audition should work. If you have changed any of the above, please try another export from Audition.
    Thanks,
    Kevin

  • Loading audio into Adobe Edge via XML issue

    I am having an issue linking the location of an audio file via XML in Adobe Edge. I am able to get the info and post it as text, however I can not get it to load into the audio player. This is my first try at code ever, nothing too complex if possible.
    Here is the code that works along with the part I can not get to work.
    var fromName;
    var outputField = $(this.lookupSelector("xmlOutput"));
    $.ajax({   
        type: "GET",
        url: "edgesound.xml",
        dataType: "xml",
        success: function(xml) {
            fromName = $(xml).find('audio1').text();       
            outputField.html(fromName);    
        var newSound = new Audio();    
         newSound.src = "sound.mp3";
         newSound.volume = 0.5;
         sym.$("soundBtn").toggle(
    function(){
         newSound.play();
         sym.$(this).html('stop'); },
    function(){
         newSound.pause();
         sym.$(this).html('restart'); });
    // XML Try below   
         var newSound_xml = new Audio();    
         newSound_xml.src = "fromName";
         newSound_xml.volume = 0.5;
         sym.$("soundBtn_xml").toggle(
    function(){
         newSound_xml.play();
         sym.$(this).html('stop'); },
    function(){
         newSound_xml.pause();
         sym.$(this).html('restart'); });
    And here is the simple XML doc being called
        <?xml version="1.0" encoding="utf-8"?> <ax>  <audio1>sound.mp3</audio1>  </ax>
    I've also tried taking the .mp3 out of the xml and trying the following in the code with no success.
    newSound_xml.src = "fromName" + ".mp3";
    Thank you and here is a link to demo what I have so far.
    http://www.projectcog.com/audio/xml_audio.html

    Hi Exports,
    I am able to load directly from XML file to oracle tables. I am also successfully reverse engineer the XSD file into oracle relational structure but after that I don't know how to assign XML data file to the schema and load to oracle table
    Can you explain me the steps how to assign XML file to the schema (created from XSD ) and load to oracle table. which KM to use to load from XSD to oracle.
    Thanks,
    Mano

  • GReturn get.get('XML') issue (Roel)

    Roel,
    I have an issue with the "function call LOV onchange" (I have the same issue with autocomplete function od Denes)
    The first alert in the source below return the value of my item and it is send to the function but the second alert return '0', no result found
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    alert(pValue);
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    alert(gReturn.getElementsByTagName("item").length);
    When i execute the same function in SQL commands i have
    Content-type: text/xml; charset=UTF-8
    Cache-Control: no-cache
    Pragma: no-cache
    this xml genericly sets multiple items5EcarZb23
    Statement processed.
    U can see that a record is found for the id sent to the function.
    Could u help me? thx

    Hi Celio,
    Sorry for the late response.
    ODP is the On Demand Process
    From the JavaScript you make a call to a ODP procedure you need to create in the Shared Components.
    I like to use alert(myvariable); etc in my Javascript to see that values are getting to the ODP call.
    Then because the ODP is all PL/SQL I like to place a few insert statements to a table that I created called bcdebug.
    These inserts shows it actually got to the ODP and it is not a JavaScript problem.
    Then I would insert again to show the value for v('TEMPORARY_APPLICATION_ITEM') in the ODP also.
    I created a procedure called pdebug so I could debug my PL/SQL code.
    create or replace PROCEDURE "PDEBUG"
    (pinput IN VARCHAR2,
    pcommit IN BOOLEAN DEFAULT TRUE)
    is
    lString VARCHAR2(4000);
    lstart NUMBER;
    lLength NUMBER;
    lcnt NUMBER:=0;
    BEGIN
    --htp.p('PDEBUG['||length(pinput)||']');
    lLength:=length(pinput);
    lstart:=1;
    LOOP
    lcnt:=lcnt + 1;
    lString:=substr(pinput,lstart,4000);
    -- htp.p('PDEBUG-Length['||lLength||']');
    -- htp.p('PDEBUG-Start['||lstart||']');
    insert into bcdebug
    (input, create_dttm)
    values
    (lString,sysdate);
    lLength:=lLength - 4000;
    lstart:=lstart + 4000;
    EXIT WHEN lLength <= 0 OR lcnt >10;
    END LOOP;
    if(pCOMMIT)then
    COMMIT;
    end if;
    END;
    pdebug('In Get select List');
    pdebug(v('TEMPORARY_APPLICATION_ITEM ');
    Hope it helps for future coding too.

  • Last night's update causing XML issues with MAC and MS Word

    I am running Snow Leopard on a MAC. Last night Firefox installed an update, and the software I use for work no longer works with Firefox. I use a custom built web app that uses XML code to take web created info and compile into a Word document. Until this latest update, the issue had been when creating the Word doc, extra XML code was being written for images causing them to show as blank in the Word document. Now, the document is being created but not with a .doc extension. I had been in contact with Microsoft about the first problem with no resolution. They were able to duplicate the problem. The first problem only happens on a MAC and is not specific to operating system. This new problem is only happening with Firefox, not Safari, and started today after the last update.

    HI,
    If you post a crash report, perhaps we can help.
    If Safari has just crashed, press the Report button on the CrashReporter dialog box to view the crash information.
    Now copy/paste the entire contents of the Crash Reporter window into your reply here. If the crash report dialog does not appear or the crash is hard to reproduce, crash logs can be retrieved from the ~/Library/Logs/CrashReporter> folder.
    You may have Safari third party plugins that were compatible with your previous version of Safari but not Safari 5.0.1. It's the responsibility of third party developers to update their software, not Apple.
    Follow the instructions here. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    If indeed you had third party add-ons installed and Safari still crashes, then post a crash report.
    Carolyn

  • BIP - XML Issue

    I''m new using BIP.\
    I'm connecting thru JDBC.
    I created a data model using an SQL statement but when I press XML key in the upper right nothig happens.
    Could anybody helps with this issue.
    Thanks a lot in advance.
    Gaby

    I't's solved. Thanks

  • XML issues : Genearte XML based on XSD

    hi please help me in sorting this issue
    How would I generate an XML document from XML-DB which conform to a registered
    Schema? My tables and xsd are as follows:
    Customer table
    ==============
    create table cust
    ( id number primary key,
    last_name varchar2(50),
    first_name varchar2(50),
    fullname varchar2(50),
    dob date
    Cust_address table
    ==================
    create table cust_address
    (addr_id number primary key,
    address_1 varchar2(100),
    address_2 varchar2(100),
    county varchar2(4),
    home_ph varchar2(20),
    office_ph varchar2(20),
    cust_id number references cust(id) );
    Some data
    SQL> insert into cust
    2 values( 1, 'Harvey','John','Jeff M Harvey','18-jun-80');
    1 row created.
    insert into cust_address
    values ( 1,' 21 West Trophy Road','Memphis,
    TN','0009','901-6782345','901-768234',1);
    My XMLSchema is as follows:
    ===========================
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSpy v2005 rel. 3 U (
    http://www.altova.com
    by John -->
    <xs:schema
    xmlns="
    http://www.oaws.org/CAR"
    xmlns:xs="
    http://www.w3.org/2001/XMLSchema"
    targetNamespace="
    http://www.oaws.org/CAR"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">
    <xs:element name="CARData">
    <xs:annotation>
    <xs:documentation>Customer Contact information etc
    </xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Name" type="NameType"/>
    <xs:element name="Address" type="AddressType"/>
    <xs:element name="PlayerContact">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Name" type="NameType"/>
    <xs:element name="Address" type="AddressType"/>
    <xs:element name="PlayCntySher" type="xs:string"/>
    <xs:element name="PlayCntyClk" type="xs:string"/>
    <xs:element name="PlayAlsTyp" type="xs:string"/>
    <xs:element name="Play" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="BankContact">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="BKName" type="xs:string"/>
    <xs:element name="BKAddr1" type="xs:string"/>
    <xs:element name="BKAddr2" type="xs:string"/>
    <xs:element name="BKAddrfnl" type="xs:string"/>
    <xs:element name="BKCNTY" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="LTRDT" type="xs:date"/>
    </xs:complexType>
    </xs:element>
    <xs:complexType name="AddressType">
    <xs:sequence>
    <xs:element name="playaddr1">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="100"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="playaddr2">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="100"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="playaddrfnl" type="xs:string"/>
    <xs:element name="playhomecomm">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="100"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="playwrkcomm">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="100"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="playcnty">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="25"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="NameType">
    <xs:sequence>
    <xs:element name="PlayFullName" type="xs:string"/>
    <xs:element name="PlayFName" type="xs:string"/>
    <xs:element name="PlayLName" type="xs:string"/>
    <xs:element name="PlayDefName" type="xs:string"/>
    <xs:element name="PlayIDNum">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="12"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="PlayDob" type="xs:date"/>
    </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="money">
    <xs:restriction base="xs:decimal">
    <xs:totalDigits value="14"/>
    <xs:fractionDigits value="2"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="CollectorType">
    <xs:sequence>
    <xs:element name="CollectorNumber" type="xs:integer"/>
    <xs:element name="CarFullName" type="xs:string"/>
    <xs:element name="CollectorPhone" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    I have registered this schema in to my database schema
    SQL> begin
    2 dbms_xmlschema.registerSchema
    3 (
    4 '
    http://tien.oaws.silver:8080/home/CAR/xsd/',
    5 xdbURIType('/home/CAR/xsd/CARSchema.xsd').getClob(),
    6 True,True,False,True
    7 );
    8 End;
    9 /
    PL/SQL procedure successfully completed.
    Now I need to generate an XML which include all elements from CUST and
    CUST_ADDRESS table and must conform to the XML Schema, need your help.
    Thank you.

    Please someone help me...

  • Crossdomain.xml issue - Accessing SAP from adobe FLEX

    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.

    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.

  • Oracle TopLink Object-to-XML - issue JAXBException: Provider not found...

    Env:
    OS:XP
    Java dev env: JDev 10.1.2 production
    Toplink Workbench - 10g Developer Preview 3 (10.1.3.0) build 041116
    I am attempting to use the toplink object to xml functionality through carefully following the tutorial titled Oracle TopLink Object-to-XML on OTN (link: http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/ox/index.htm)
    The first 11 steps are nice and clear and very easy to follow. However, when I hit 12 I run into problems. I believe I have done all I am required to do.
    My demo test code falls over on the attempting to create the JAXB context:
    JAXBContext jaxbContext = JAXBContext.newInstance("examples.ox.model");
    The exception I get is:
    javax.xml.bind.JAXBException: Provider oracle.toplink.ox.jaxb.JAXBContextFactory not found
    - with linked exception:
    [java.lang.ClassNotFoundException: oracle.toplink.ox.jaxb.JAXBContextFactory ]
    The code is capable of loading the jaxb.properties file, and has toplink.jar in the classpath. I am able to create a is located JAXBContextFactory prior to calling the new instance logic, illustrating that the class is in the classpath.
    Using google I have seen it mentioned that the newInstance call could be making use of a different JVM to the Application (https://jaxb.dev.java.net/faq/#classloader) hence may not be able to pick up the JAXBContextFactory class. I have attempted to follow their advice of passing in a class loader - but this makes no difference.
    I.E. JAXBContext jaxbContext = JAXBContext.newInstance("examples.ox.model", this.getClass().getClassLoader());
    Does anyone recognise this issue and have a solution.
    Here is my code:
    try
    File file = new File("D:\\Toplink\\demo\\Customer-data.xml");
    JAXBContext jaxbContext = JAXBContext.newInstance("examples.ox.model);
    Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
    Customer customer = (Customer) unmarshaller.unmarshal(file);
    System.out.println(" customer.getFirstName() : "+customer.getFirstName());
    catch(Exception e)
    System.out.println("Error: "+ e.toString());
    As mentioned earlier it falls over on JAXBContext.newInstance("examples.ox.model);
    cheers
    Nick

    Hi Blaise,
    thanks for your response.
    My session.xml file is located:
    D:\Toplink\demo\classes\session.xml
    And contains:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <toplink-sessions version="10g Developer Preview 3 (10.1.3.0 )" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="database-session">
    <name>examples.ox.model</name>
    <event-listener-classes/>
    <primary-project xsi:type="xml">D:/Toplink/demo/classes/CustomerProject.xml</primary-project>
    <login xsi:type="xml-login"/>
    </session>
    </toplink-sessions>
    My classpath references only jars downloaded with the links on the How To tutorial titled Oracle TopLink Object-to-XML on OTN (link: http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/ox/index.htm)
    This is the JDev output indicating the classpath and error:
    D:\Jdev1013Preview\jdk\bin\javaw.exe -ojvm -classpath D:\Toplink\demo\classes;D:\Toplink\lib\xml.jar;D:\Toplink\lib\xmlparserv2.jar;D:\Toplink\toplink\jlib\tljaxb.jar;D:\Toplink\toplink\jlib\toplink.jar examples.ox.model.RunDemo
    Error: javax.xml.bind.JAXBException: Provider oracle.toplink.ox.jaxb.JAXBContextFactory not found
    - with linked exception:
    [java.lang.ClassNotFoundException: oracle.toplink.ox.jaxb.JAXBContextFactory
    Process exited with exit code 0.
    Any more suggestions?
    In the meantime I will go through the information on the link that you have sent and see if I can get anyfurther.
    Thanks
    Nick
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for