Using dbms_xmlgen.convert to capture URL

I am using a web service that returns XML response (see result below). I need to capture the URL in the 'GetIEPUrlWithAuditResult' tag. I tried this code but get a ORA-30625: method dispatch on NULL SELF argument is disallowed. Is my dbms_xmlgen.convert path to the tag correct?
l_xml := xmltype.createxml(l_clob);
l_val := dbms_xmlgen.convert(l_xml.extract('//GetIEPUrlWithAuditResult/text()').getclobval(),1);
RESULT
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetIEPUrlWithAuditResponse xmlns="http://www.iepdirect.com/CentrisWebServices/IEPViwer"><GetIEPUrlWithAuditResult>https://www.iepdirect.com/lettersandreports/maintenance/iepviewer.aspx?auditinfo=TEST&amp;viewertoken=cn097c5e6c69a94fbc9dffcd70bd88f2b9|||d0Gpyh6ZEelbL6lMz+ZDWBTyMqsfjkDFPlat6T+8vMQ=</GetIEPUrlWithAuditResult></GetIEPUrlWithAuditResponse></soap:Body></soap:Envelope>

Is my dbms_xmlgen.convert path to the tag correct?Half correct.
You're missing the namespace mapping, and you'll need to add the text() node to the XPath expression in order to retrieve the value instead of the whole element.
l_val := dbms_xmlgen.convert(
            l_xml.extract(
              '//GetIEPUrlWithAuditResult/text()'
            , 'xmlns="http://www.iepdirect.com/CentrisWebServices/IEPViwer"'
            ).getstringval()
          , 1
          );But, in this case, it's better to use extractValue (as it performs the necessary conversions for us) :
select extractvalue(
          l_xml
        , '//GetIEPUrlWithAuditResult'
        , 'xmlns="http://www.iepdirect.com/CentrisWebServices/IEPViwer"'
into l_val
from dual;

Similar Messages

  • Need to convert MP3 in URL to play it in myspace

    Hello
    Help ! I need to convert MP3 into URL? (I have a flashfetish player on Myspace they only read url for a dj mix)
    which sites or witch converter?
    Hope to speak soon !

    there is no such thing as "converting an mp3 to a URL." a URL is a pointer to where the file resides online. iow, you have to "upload" the mp3 somewhere (typically a web site that you own), and then use that URL to point to the file.
    for example this:
    http://www.bulletsandbones.com/BBPages/History/BBMp3s/01Real%20World.mp3
    points to a file located on the bulletsandbones web site

  • Using or converting forms developed in forms6i to forms10g

    Could you please tell me
    how to use or convert forms developed in forms6i to forms10g (Developer suit)

    You just open them with Forms Builder 10g Compile and save, you need to upgrade your libraries as well.
    Best place to start with is [url http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html]Forms Upgrade Center Here you can find tips and documentations and every information you need.
    Tony

  • Canopus ADVC300-Is there anyway to use this converter with PE 13?

    I recently upgraded to PE 13. It would not recognize the Firewire-connected Canopus ADVC300 as a capture device. A tecchie at Adobe told me that they removed this option (through the DVD Camcorder menu) in Version 13, which only allows WDM captures. I still have PE8, which, I suppose, I could use to input via the Canopus, as long as PE13 will read the project files. Any other suggestions to get PE13 to input the Canopus video converter? The ADVC300 cost me $300!!

    In your earlier posts (orig & #3) above you mentioned that you have PE8 & PE10 --still installed-- which do capture via firewire (from the Canopus unit) you essentially already have everything need.  Why mess around with any of the work-arounds offered by Adobe.
    I too have PE10 and I have been very successfully using an earlier Canopus unit (ADVC100) for many years.
    All you need to do is use the PE10 to capture your analog videos. 
    Then you can literally abandon the .prel (and all other PE10 created files.  The only file(s) you need to keep are the .avi files.
    Launch PE13 and copy/move/import the .avi files from the PE10 asset folder to the PE13 asset folder.
    All of the recommend work-arounds will create .avi files --they too would have to be copied/moved/imported into PE13 the same way.  The .avi files from PE10 are the same as those created by the work-arounds.
    It is truly unfortunate that Adobe removed the firewire support in PE13.

  • Using a Variable in HttpService url attribute

    I have a dynamic url defined below
    public var forecastURL:String = "
    http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
    + latitude + "&lon=" + longitude +
    "&format=12+hourly&startDate=" + todaysDate +
    "&numDays=" + numberDays + ""
    I would like to use the var without the {} bind. The compiler
    complains if the url is not surrounded in quotes. This should be
    simple? How can I use a var within the url attribute without the
    bind brackets?
    <mx:HTTPService
    id="forecastRequest"
    url = "{forecastURL}" result="resultHandler(event)"
    />

    Not Possible..why don't you use the subtitle box instead of help url?

  • So how long does it take to load a 160GB iPod using the Convert Higher ...

    I have a 160GB Gen 5 that I bought when first released back in the day when they were $400. Through a number of changes, the most recent being the advent of the Convert Higher Bitrate Songs to 128bit AAC feature, I decided to look at what more music I could store. After all was said and done, I ended up with a bit of a disaster with cover art not being properly applied to the music being played. I decided to *restore the ipod* based on suggestions in the discussion boards, and equally important was following the hints and tips here.
    http://www.samsoft.org.uk/iTunes/grouping.asp
    The advice is especially important in very large library situations to ensure you have uniqueness in the albums you want to display. Hadn't really given it much thought until I had the ability to see the individual albums for the 40K songs on the iPod via the cover art view.
    Finally the point of the post...
    *So how long does it take to load a 160GB iPod using the Convert Higher Bitrate option now available in iTunes 9.1?* The specs on my computer are not highend by any stretch, but it's no slouch, and neither of the CPUs are ever pegged. At this point I've lost count of how much time it's taken, but the load is going on 3-4 days. With some breaks in between because I need to check each incremental load to verify there is no cover art corruption, correct bad tags and such, but for the most part the loading is visibly slow, and I'm sure the conversion is the cause. I'm not really complaining at this point, but there is clearly room for improvement. And of course unless there is a redo involved in which case I will get quite cranky.
    *I would like to hear the experiences of others.*
    Finally to lend a bit more credence to the performance concern, my 32GB iPhone 3GS for only about say 28GB of music takes about 24 hrs to load from a 2.2GHz dual core intel laptop, again using the convert higher bitrate option.

    With AC power adapter it takes 3-4 hours for a full charge. With the USB charger it takes 9-0 hours for a full charge. I am not happy with them removing the AC charger and other accessoreis at all. It's business but it still stinks.
    I know I would rethink my purchase but would most likely end up buying the Micro anyway

  • Generate XML output using DBMS_XMLGEN.getxmltype and not from rdf

    Hi,
    I have a requirement to display output from a particular table in XL format. Out of all the known possible options, I am planning to use the XML publisher to generate XL output.
    For the data source, instead of using the conventional way of creating XML data using rdf,I am planning to use DBMS_XMLGEN.getxmltype pl/sql procedure to generate the XML output. And from the output, call the template to generate the required Excel output.
    Now, I am using the following code to generate XML output but am not sure how to proceed from here. I need to first print the XML data in the FND Output file after which I was planning to call the 'XML Report Publisher' (XDOREPPB) program and use the current request id to get the excel output but I am not able to find the way to print the XML data in the output file as:
    fnd_file.put_line (fnd_file.output, l_xml_type); - is throwing an error as l_xml_type is an XML data output.
    PROCEDURE xml_main (
    errbuf OUT VARCHAR2
    ,retcode OUT VARCHAR2
    ,p_project_from IN VARCHAR2
    ,p_project_to IN VARCHAR2
    AS
    l_xml_type XMLTYPE;
    BEGIN
    SELECT DBMS_XMLGEN.getxmltype
    ('SELECT fnd_global.conc_request_id
    ,TO_CHAR (segment1)
    ,to_char(start_date,''MM/DD/RRRR'')
    ,to_char(xxmcc_project_details_pkg.current_profit_projection
    (project_id),''999,999,990.90'')
    ,to_char(xxmcc_project_details_pkg.cost_to_date (project_id),''999,999,990.90'')
    ,''1''
    FROM pa_projects_all
    WHERE segment1 BETWEEN NVL (p_project_from, segment1)
    AND NVL (p_project_to, segment1)')
    INTO l_xml_type
    FROM DUAL;
         fnd_file.put_line (fnd_file.output, l_xml_type);
    END xml_main;
    Can anyone point me as to how to publish XML output using a PL/SQL procedure (DBMS_XMLGEN.getxmltype)
    Thanks.

    Pl see if the example included in this presentation helps http://www.oracle.com/technology/products/applications/Events/OOW-2006/EBS/S281401_Sridhar_Bogelli.pdf
    Also, you do not need to explicitly call XDOREPPB in later versions of XML Publisher. If you set up everything correctly (as described in the presentation above and the link below) the Output Post Processor is called automatically after the XML file is generated successfully.
    Another excellent tutorial is at http://www.oracle.com/technology/obe/fusion_middleware/fusion/bi/xmlp_ebiz/index.html
    HTH
    Srini

  • Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Acrobat Distiller Server converts Postscript to PDF.

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • XML File Generation Issues using DBMS_XMLGEN

    Hi,
    I am using DBMS_XMLGEN package in a stored procedure to generate an XML file on Oracle 10 G R2 .But, the problem is the format in which the file is generated.
    CREATE OR REPLACE TYPE "state_info" as object (
    "@product_type" Number
    CREATE OR REPLACE TYPE prod_tab as TABLE OF "state_info";
    CREATE OR REPLACE TYPE state_t as object (
    "state_code" CHAR(2),
    "state_info" prod_tab
    CREATE OR REPLACE PROCEDURE get_xml_serviced_state (p_clob OUT clob)
    IS
    v_xmlctx DBMS_XMLGEN.ctxhandle;
    v_str VARCHAR2 (1000);
    BEGIN
    v_str := 'SELECT state_t(a.st_cd,CAST(MULTISET(select veh_type_id from svcd_st where st_cd =a.st_cd)as prod_tab)) as "state_info"
    from svcd_st a where a.st_cd in (select distinct st_cd from svcd_st) group by a.st_cd having count(*)>=1';
    v_xmlctx := DBMS_XMLGEN.newcontext (v_str);
    DBMS_XMLGEN.setrowsettag (v_xmlctx,'serviced_state');
    DBMS_XMLGEN.setrowtag (v_xmlctx,NULL);
    p_clob := DBMS_XMLGEN.getxml (v_xmlctx);
    printclobout(p_clob);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHEN OTHERS
    THEN
    RAISE;
    END;
    SHOW ERRORS
    Output :
    <serviced_state>
    <state_info state_code="VA">
    <state_info>
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </state_info>
    <state_info state_code="AB">
    <state_info>
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </state_info>
    </serviced_state>
    Required it in below format:
    <serviced_state>
    <state_info state_code="VA">
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    <state_info state_code="AB">
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </serviced_state>
    I just need to put in all the rows under one single tag.Appreciate your early responses.
    Thanks.

    Your wanted XML output is NOT VALID...(try it yourself on http://tools.decisionsoft.com/schemaValidate/)

  • Loupe in Bridge doesn't display DNG images created using DNG Converter correctly. Why?

    I have noticed recently an anomaly in Bridge when viewing DNG files that are created by converting my Nikon NEF files to DNG using the DNG converter. Specifically, when clicking on the preview image of a DNG file, in order to open the loupe, the 100% image seen in the loupe remain fuzzy, whereas when clicking on a preview of the original NEF file the 100% view in the loupe is sharp and clear.
    I am using DNG Converter version 4.6.0.3, and it also occurs when using version 4.4.1. I am using Bridge version 2.1.1.9.
    I have no reason to believe that Bridge is at fault, since the loupe function does work properly when viewing the NEF file. It would seem that there's a problem in the DNG conversion.
    However, despite this anomaly seen in Bridge, when I open the DNG file in Camera Raw, it is perfectly normal at 100% or any magnification.
    I have tried re-setting the JPEG review size in the DNG converter, but that makes no difference.
    What's going on here? I don't want to keep both the NEF and DNG versions, for reasons of space, but I'd like the loupe to work correctly. Help, please?

    Try to recreate the thumbnails for that folder.
    Use the latest version of the converter (5.4)

  • Can't CF use non English characters in URLs ???? (critical for SEO)

    Hi all,
    I want to use non English characters (Greek characters) for folders of the URLs.
    eg   http://www.mysite.com/Φάκελος/index.cfm
    where "Φάκελος" is a non English word (Greek).
    When the called page is simple HTML  eg   www.mysite.com/Φάκελος/index.HTM
    it's displayed just fine.
    When the called page is CF page  eg   www.mysite.com/Φάκελος/index.CFM
    I get a "FILE NOT FOUND" error.
    In the page where the link exists everything is UTF-8.
    What's the problem ? Can't CF use non English characters in URLs ????
    It's critical for SEO issues.
    I use CF9.  Any ideas ???
    Thanks in advance.
    Anastassios

    I don't have this setting in the email application. But as I know, html with Exchange is working only with the 2007 version, my server is still 2003 so I think in my case it's plain text only.
    But I'm telling again: good old (and now starting to miss) E60 with MfE worked very well!

  • Url used to show in the url box when opening from a shortcut or email, but now it's not there. If I refresh the page it is. How do I get this back the way I like it?

    The url of the website that I'm visiting used to show in the url box when I opened from a shortcut or email. But not it's not there unless I refresh the page. I've looked and haven't found a way to set this so that it works like it used to. I liked being able to click in the address bar and copy the link, or even to look there and see where I am.

    I'm unable to check it in safe mode because the only time it happens is when I click a link and have not firefox open. For example if I would click a link in my email right now, it would open in another tab and show the address of the link I clicked. But if I didn't not have this window open and clicked alink, it would open a new window and I wouldn't be able to see the url.
    Here's a screen shot.
    [http://chibitude.com/gallery/albums/userpics/10001/firefoxSSForAddressProblem.jpg firefoxSSForAddressProblem.jpg]

  • JavaScript won't recognize applet after using HTML Converter (please help)

    Hello friends,
    I used JavaScript to call a public method from my swing applet, which returned a string. It functioned correctly until I used the HTML Converter (a utility available from this web site, which converts the <applet> tag into <object>). Now it doesn't recognize the applet.
    Here's the JavaSript code:
    function getText(field) {
    field.value = Editor.getText(); // worked fine before converting
    // "Editor" is the name of the applet, used in the applet/object tags
    Here's the applet method:
    public String getText() {
    return "whatever";
    Now JavaScript sends an error "'Editor' is undefined"
    Any tips will be greatly appreciated. Thank you!

    Yes, the applet loads. Here's the address: (the applet is not finished, but it functions correctly)
    http://www.lordofthewebs.com/test/test1.asp - before using the converter
    http://www.lordofthewebs.com/test/test2.asp - after using the converter
    The "getText()" menthod works in IE 6.0, doesn't work in netscape (I haven't gotten to this issue yet).

  • Which  Function Module is used for converting the DATE in BDC

    HI,
    Which  Function Module is used for converting the DATE Format in BDC for Uploading purpose please help me.

    data : date like sy-datum.
    data : odate(10) type c.
    date = sy-datum.        " in format YYYYMMDD
    CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
      EXPORTING
       input         = date
    IMPORTING
       OUTPUT        = odate         .
    write:/ odate.  "in ur format '.
    1.
    In ur itab make a field for date as 10 characters and use this Fm to store the date .
    2. Pass the date as the charcter field to the screen and now check .

Maybe you are looking for

  • Unable to minimize windows or view more than one window

    I had a MacBook Pro prior to the MacBook 2015. I never had a problem minimizing windows. I really need to have more than one window open at same time, but I can't seem to do this with MacBook. There usually is a white dot in middle where it was yello

  • Problem-Solution: Help! I'm seeing my iCloud account two or more times in Notes and Contacts!

    Problem: Help! I'm seeing my iCloud account two or more times in Notes and Contacts! Solution: Open [System Preferences] > Open [iCloud] > Uncheck [Contacts] for each duplicate iCloud you see in Contacts. ex. My iCloud Account is listed three times =

  • FCC Nested

    Hi Experts, Scenario: File - XI- JMS.  It's field fixed length file and using FCC at both the side. The source and target structure are same. For testing purpose we are using File -- XI --- File  (instead of JMS receiver) As they were not using KeyFi

  • Predictive typing problem in ios 8.1.3

    I think predictive typing is not good after updating ios 8.1.3. What's happening ? I turned on and off again and again, but still the same. Why?

  • Form control grouping

    Hi! I have a problem with grouped form controls in Excel. This is the scenario: In Excel 2007 I create for example 2 radio buttons put within a group box and then I select all 3 controls and group them. I save and reopen the file in 2007 and all is f