Use Window's scriptcontrol eval to parse JScript response from Java Server

I've been asked to create a program to send and receive data to our Java Server. I've never worked with Java or even HTML before but there is some working code written in VB that I've been working from to get me started. I have successfully made connection to the server using IWinHttpRequest which returns a parse-able string. In the VB code they used MSScriptControl.IScriptControl to parse the returned string into an object that they could query for different parameters like 'returnStatus' and 'returnType'. This seems like a great advantage over parsing the string in LabVIEW. However, the return of this functions is a variant that seems to be just an 'object'. I am not very familiar with LVOOP or OOP in general and so I have no idea what to do with this 'object'. I've tried creating a LVObject that contained a control for all the parameters in the return string, then take the variant from the scriptcontrol and Type Set it as my LVObject and remove the parameters through the Object's cluster. But that didn't seem to work. I would like to know if this possible or should I give up and just go with the long yet sure way.
I am using LabVIEW 8.5.1 on an XP machine. I think this would be easier if I had 8.6 or 2009 but alas I don't.
Attached is my trial VI
Attachments:
JSONProxy.vi ‏32 KB

Peter, Thanks for your reply. The problem is I am not creating the object, Window's ScriptControl 'eval' function (an ActiveX Invoke Node) is returning the object as a variant. I understand the general concepts of OOP which is why I think I know what the object is 'composed' of but I don't know how to get the individual parts of the object into a form I can work with within LabVIEW. Since I do think I know what data is in the object, I tried to type case the variant as a LV Object who's cluster contained a control for each piece of data with the label of the control being the name of a part of the object but it didn't seem to work.
For example, if the string returned from WinHttpRequest was {"returnType":"True","returnStatus":"StringArray"} and I sent this throught the 'eval' function, the returned object would have 2 parameter: a string labeled "returnType" having a value of "True" and another string labeled "returnStatus" having a value of "StringArray". I tried creating a LV Object that had two string controls labled "returnType" and "returnStatus" in it's cluster. I then created a constant of this LV Object and type cast the variant using this constant then tried to read one of the strings within the LV Object. The result was the default value of an empty string.
I think this should be the way to accomplish my goal but either I'm wrong or there is some nuance that I am missing.
Thanks for any insight provided.
Tessa

Similar Messages

  • I bought a new laptop and used Windows Easy Transfer cable and moved all files from one computer to another. I installed iTunes and found my iTunes music Library.  However, when I plug in my iPod it says it is already synced with another iTunes Library.

    I bought a new laptop and used Windows Easy Transfer cable and moved all files from one computer to another. I installed iTunes and found my iTunes music Library.  However, when I plug in my iPod it says it is already synced with another iTunes Library. 
    I don't see anything in Help that shows when you already have transfered all the files over.  Why would it want to erase and sync when I already have all the music folder copied over?  I didn't have an issue when I had another technician copy from one laptop to another.  Home sharing is also on but not being recognized.

    I suspect you only migrated the media folder instead of the complete working library. Either review the transfer process and copy over the entire iTunes folder from your old profile's music folder or see Recovering your iTunes library from your iPod or iOS device.
    tt2

  • Have installed Airport express using windows vista, unit blinks green, selected the speakers from itunes but get no sound at all, even if I put a headphone in the airport express. Pls advise

    Have installed Airport express using windows vista, unit blinks green, selected the speakers from itunes but get no sound at all, even if I put a headphone in the airport express. Pls advise

    If the AX is working properly, it should not show up in your list of available networks (since it is "joined" to your router). Have you unplugged and replugged your AX? Unplugged and, after a minute, replugged your router? Do you have MAC address filtering enabled on your router? (if so, disable it to see if the AX works ... it will broadcast its MAC address to the router, and you can add it.) Is your firewall turned on? Turn it off and see if you can access Airtunes. You will have to open a port in your firewall if that is the case.
    The AX should have the same network name as your router the wireless tab. When it shows up, what name is it broadcasting?

  • HT4759 I am using Windows 7 Ultimate OS which is a upgarde from Vista on my laptop with Microsoft Office 2003. I am trying to use ICloud with an IPhone 5 and IPad mini to stream photos but can't do this with my laptop or devices using my Three network. Wh

    Can i use my laptop which is running Windows 7 Ultimate upgrade from Vista to stream photos using ICloud. The outlook programme used is 2003 and i my devices are IPad mini and IPhone 5. My problem is that i able to drag pictures into ICloud for it to send to my devices but nothing happens. Why?
    I am grateful for any advice.

    A hard drive if it has failed will sometimes allow you to boot into windows but may not work completely (Eg: In a scenario, where system partition ;where windows is installed works fine but logical partition of hard drive has gone bad).
    On certain conditions, if the hard drive is on verge of failure may/may not respond completely. I would suggest you to run a diagnostics using Seagate Seatools which works on any hard drive irrespective of manufacturer to actually confirm if your hard drive has failed.
    Also, any hard drive can fail in spite of it been 1yr old or 1day old as its all manufactured in bulk and most of it comes from China
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Parsing XML files from application server

    I need to read  an XML file from the application server. This can be done using OPEN DATASET in BINARY MODE and reading into internal table of type binary data.
    But inorder to parse the document using the iXML library, i need to pass the filesize of the XML file that is read into internal table.
    Please let me know how to calculate this filesize ?

    Hi ,
    Check the FM : /SAPDMC/LSM_F4_SERVER_FILE.
    Inside this FM , subroutine below exists.The main program for routine is /SAPDMC/LLSMW_AUX_020F02.
    Call this routine from your program. You will get the length in bytes from the field len of table pt_file.
    data:
      begin of gs_file,
        directory(75) type c,              " name of directory.
                                           " (possibly truncated.)
        name(75)    type c,                " name of entry.
                                           " (possibly truncated.)
        type(10)    type c,                " type of entry: directory, file
        *len(8)      type p,                " length in bytes*
        owner(8)    type c,                " owner of the entry
        mtime(6)    type p,                " last modification date,
                                           " seconds since 1970
        mode(9)     type c,                " like "rwx-r-x--x":
                                           " protection mode
        errno(3)    type c,
        errmsg(40)  type c,
        mod_date    type d,
        mod_time(8) type c,                " hh:mm:ss
        subrc like sy-subrc,
    end of gs_file.
    DATA : pt_file LIKE TABLE OF gs_file.
    DATa : p_ok.
      PERFORM /sapdmc/llsmw_aux_020f02(directory_contents_get)
      TABLES   pt_file
                                USING    '/TMP' ""!!! Here is your filepath
                                CHANGING p_ok

  • Windows 8.1 not activating - very slow response from HP

    Sir/Madam,
    For past 4-5 days, i have been calling every day to HP regarding my windows activation issue.(every 10 mins a pop up shows " windows about to expire")PC settings show my windows will expire on 16th Dec if activation not done.
    1. On the first day i was told to update the windows and install it, i did that
    2. on second day i was send a link to update bios, i did that but no use.
    3. on the third day i talked over 50 mins on phone and some thing was installed through command prompt.nothing happened
    so than customer executive remotely accessed my computer again installed some files and told me to call next day.
    4. next day i was told to take backup on an external disk, and my system was restored, still nothing happened.
    After all this mental trauma and huge loss of work and time, today i decided to connect with Microsoft people.
    5. Now they asked "please ask HP for your product key" for you pre-installed windows. They should provide it"
    6. the Microsoft executive checked my system for key and suggested
    that the current key is only a trial version or test key and that is why this problem is persisting.
    Sir/ Madam this is a new laptop, and i have been so tensed and now i am loosing patience.
    Your executives give time and then they just don't call, even if they do it is not on suggested time slot.
    I request you to kindly resolve this matter ASAP. Please arrange a call back today between 9 AM to 11 AM, with a senior person who can answer all queries.
    An annoyed customer
    Thanks and Regards,Priyanshu Jaiswal

    Hi @PriyanshuJ ,
    I have brought your issue to the attention of an appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publically post ( serial numbers and case details).
    If you are unfamiliar with how the Forum's private message capability works, you can learn about that here.
    Regards,
    George
    I work for HP

  • How can i use the shared object already present in the system from java.

    explanation:
    Actually there are shared objects present in the jdk which is used by java itself.I want to know if i can use the methods in any library file(shared object) which is already present in the system.
    Or the question can be put this way how does the java call the native methods? (Can we do that explicitly) in our code.

    It isn't entirely clear what you mean by 'shared' objects and what the relationship with these shared objects and calling native code is.
    There are no shared objects in the Java language, only the java platform.
    The platform system properties are exposed via the System class (java.lang package).
    You are free to create your own shared objects by using static member access or some other mechanism.
    Your access to methods in any of the API's is dictated by the access type you have, normally public being the only completely open access allowing complete visibility.
    You can call native methods, thats what JNI is for. Calling native methods in classes other than your own is generally done using the API provided by the developer(s) of those classes.

  • Parse xml response from PL/SQL

    Can anyone please help me parse the xml below?
    DECLARE
       l_response     CLOB;
       g_system_id    VARCHAR2 (255);
       g_session_id   VARCHAR2 (255);
       g_user_id      VARCHAR2 (255);
    BEGIN
       l_response :=
          '--uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=156
    Content-ID: <http://tempuri.org/0>
    Content-Transfer-Encoding: 8bit
    Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserNameResponse</a:Action><a:RelatesTo>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:RelatesTo></s:Header><s:Body><LoginByUserNameResponse xmlns="http://tempuri.org/"><LoginByUserNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><XObject.m_element i:type="x:string" xmlns="">&lt;OnlineContext SystemId="{19E0DDB4-5FA5-41EE-B624-AEA762865A6C}" SessionId="{F23D32A4-B325-4BFA-9E90-39CA253E843C}" UserId="{2C6ABE4C-D356-46F0-B4BE-9C4F0A36A522}" /&gt;</XObject.m_element></LoginByUserNameResult></LoginByUserNameResponse></s:Body></s:Envelope>
    --uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=156--';
          SELECT systemid, sessionid, userid
            INTO g_session_id, g_system_id, g_user_id
            FROM XMLTABLE (
                    xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "data"),
                    'data:LoginByUserNameResponse/LoginByUserNameResult/XObject.m_element/OnlineContext'
                    PASSING xmltype (l_response)
                    COLUMNS systemid VARCHAR2 (50) PATH '@OnlineContext',
                            sessionid VARCHAR2 (50) PATH '@OnlineContext',
                            userid VARCHAR2 (50) PATH '@OnlineContext') xt;
       DBMS_OUTPUT.put_line (
             'Session id '
          || g_session_id
          || ' System id '
          || g_system_id
          || ' User id '
          || g_user_id);
    END;
    Thanks.

    This gets you a little bit closer
    declare 
    -- Local variables here
    l_response     CLOB;
    g_system_id    VARCHAR2 (255);
    g_session_id   VARCHAR2 (255);
    g_user_id      VARCHAR2 (255);
    begin
    -- Test statements here
    l_response := '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"> 
    <s:Header>
        <a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserNameResponse</a:Action> 
        <a:RelatesTo>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:RelatesTo>
    </s:Header>
    <s:Body>
        <LoginByUserNameResponse xmlns="http://tempuri.org/"> 
           <LoginByUserNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"> 
              <XObject.m_element i:type="x:string" xmlns=""><OnlineContext SystemId="{19E0DDB4-5FA5-41EE-B624-AEA762865A6C}" SessionId="{F23D32A4-B325-4BFA-9E90-39CA253E843C}" UserId="{2C6ABE4C-D356-46F0-B4BE-9C4F0A36A522}" /></XObject.m_element>
              </LoginByUserNameResult>
          </LoginByUserNameResponse>
      </s:Body>
    </s:Envelope>';
        SELECT systemid, sessionid, userid
          INTO g_session_id, g_system_id, g_user_id
          FROM XMLTABLE (
                  xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "s", 
                                 'http://tempuri.org/' as "data"), 
                  's:Envelope/s:Body/data:LoginByUserNameResponse/data:LoginByUserNameResult/XObject.m_element/OnlineContext'
                  PASSING xmltype (l_response)
                  COLUMNS systemid VARCHAR2 (50) PATH '@SystemId',
                          sessionid VARCHAR2 (50) PATH '@SessionId',
                          userid VARCHAR2 (50) PATH '@UserId') xt;
    DBMS_OUTPUT.put_line (
           'Session id '
        || g_session_id
        || ' System id '
        || g_system_id
        || ' User id '
        || g_user_id);
    end;    
    You will need to manually parse that CLOB and pull out the XML string itself from the response.  That can be done via SUBSTR and INSTR looking for the first < and last > in what you showed at least.  Updated from previous version to work properly with the xmlns="", which resets the default namespace back to the default value.  The XPath was corrected to reflect proper prefix usage.

  • HELP! Problem using HPSCAN.exe or TWAIN driver for HP Laserjet Pro cm1415fnw using Windows 7

    I have been using the HP Laserjet Pro cm1415fnw for over a year without a problem.  At the time when I first purchased the unit, I was using a Dell desktop with Windows XP and connected the printer via USB port.  I was able to print and scan from my computer, including from within applications that use TWAIN scanning driver such as Word, Acrobat, etc.
    I have since upgraded to an HP slimline s5-1160 computer using Windows 7.  I installed the Laserjet software from my installation CD's without a problem.  The printer is connected to the computer by USB port.  I can continue to print without a problem.  However, I no longer am able to scan using the HP software (HPscan.exe) nor from within applications that use TWAIN scanning driver such as Word, Acrobat, etc.  When I attempt to do so, it takes a long time before it asks me what TWAIN scan driver to select.  When I select the HP cm1410 MFP series, the program either crashes or reverts to the state it was before I attempted to scan an image into a document from within the program.
    I can however scan successfully using the Windows Scan and Fax wizard or if I choose "Devices and Printers" from the Start Menu and select "Start scan" from the menu after right-clicking the HP printer icon.  However this option limits my use of the scanner -- I cannot scan to a PDF nor can I scan multiple pages into an OCR application.  I'm forced to scan to either a JPG or TIF or PNG.
    As for attempting to resolve this problem I have done the following with no success:
    Uninstall and reinstall the full software and drivers (and using the most recent version on the HP website)
    Change USB ports and/or cables
    Run the HP scan diagnostic utility, which seems to show an error at the WIA scanning step and then recommends that I uuninstall and reinstall the full software.  When I skip that and allow it to check for TWAIN scanning, it gives me a similar error, suggesting that I use the most recent version of the drivers (the driver that I am using is v 3.0 dated 11/12/2009)  Therefore in this case the HP scan diagnostic utility does NOT provide a fix for this problem other than uninstall and reinstall, which I have done several times to no avail
    Contact HP support both for the computer and the multifunction printer (which as I understand are different support staff).  The printer staff claims it's a software problem and that the computer staff should be able to resolve it (something about not having "launchpad" installed properly.  When I contact the computer staff, they claim it's a printer driver issue.  So I am at a standstill
    I researched the HP support forums only to find from this link - http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02661093&cc=us&dlc=en&lc=en&product=4089468&tmp​... - that if you cannot scan from HP software that you can use the programs that rely on WIA drivers (Windows Fax and Scan) which I already know I can do but implies that HP does NOT have a solution for how to scan using their own software!
    My gut tells me that this is one of those problems that many others may have but for which there is no workable solution.  It's possible that during the course of uninstalling and reinstalling the software, remnants may remain behind that prevent proper functioning of the drivers, but without knowing how to specifically "clean" those remnants before reinstalling the software, I am at a loss.  Oh and by the way, I've also tried using CCleaner and Norton Registry Cleaner in an attempt to clean those remnants, but that effort didn't help.  
    My question is basically this... does anyone know of a fix around this problem or must I resign myself to using the Windows Fax and Scan wizard to scan in documents and images and forget about using TWAIN programs as HP seems to be suggesting?  I would think that given that I am using an HP printer/scanner along with an HP computer with Windows 7 that this problem should NOT be a problem!  
    This question was solved.
    View Solution.

    Before attempting to install the printer on my computer (HP slimline s5-1160), I had been able to successfully install the printer previously on two other computers: a Lenovo T-410 laptop (work computer using Windows XP) and an HP Pavilion Elite HPE (wife's computer using Windows 7).
    On those computers, I can use the TWAIN driver from within applications without a problem, and the HPSCAN.exe file works as well.  Both computers connect to the printer wirelessly.
    It is while trying to install the printer on my home computer via USB that I am having all sorts of difficulty. I have also tried to connect my s5-1160 to the printer wirelessly from my computer. I also checked the Windows Services, and all seems fine there.  I also tried switching USB ports and cables.   Again, no luck with the scanning using TWAIN driver. 
    One other point: when I use the original installation CD that came with the printer to install on the s5-1160, the installation seems to stop when it says "Checking requirements for installation"  That didn't happen with the two other computers.   However, that problem doesn't happen the s5-1160 when I used the more recent version of the full software from the HP website.
    Let me reiterate.  I have never had any problems with printing from any computer.  The scanner works fine from my s5-1160 if I resort to using the scanner and fax wizard using the WIA drivers.  What I am unable to do is to get the scanner to work from within an application using the TWAIN driver or if I use the native HP application (hpscan.exe).  Nothing seems to happen.   Because of that I cannot scan directly into a PDF.
    And the only fix that the HP scan diagnostic utility continues to recommend is that I uninstall and reinstall the software.  It shows errors in the WIA scanning step and TWAIN step.
    Is it possible that because of behind-the-scenes Windows updates that my s5-1160 is receiving that a software conflict is created that prevents the TWAIN driver from functioning properly?  Other than that I am at a loss to figure out why this is happening.

  • Can't connect to Easy VPN Server using Windows 7 inbuilt VPN client

    Hi Everyone,
    I would like your help to resolve a vpn issue I am having with my Windows 7 inbuilt vpn client. I am trying to connect to an Easy vpn server on a Cisco 2951 ISR G2. Well, I can connect using Cisco vpn client v5.07 but I can't connect using Windows 7 inbuilt vpn client. Is there any configuration that I am missing so that I can connect using Windows 7 inbuilt vpn client to connect to the vpn server?
    Thank you.

    Hi MindaugasKa,
    Base on your description, your case must is the NPS client can’t pass the NPS policy.
    The NPS client can’t connect the network may have many reason, such as the Network Access Protection Agent service not started successful, the certificate not issued properly,
    please offer us information when your Windows 7 client denied, such as event id, original error information, screenshot.
    More information:
    Extensible Authentication Protocol (EAP) Settings for Network Access
    http://technet.microsoft.com/en-us/library/hh945104.aspx
    Network Access Protection in NPS
    http://msdn.microsoft.com/en-us/library/cc754378.aspx
    Appendix A: NAP Requirements
    http://technet.microsoft.com/en-us/library/dd125301(v=ws.10).aspx
    802.1X Authenticated Wireless Access Overview
    http://technet.microsoft.com/en-us/library/hh994700.aspx
    Connecting to Wireless Networks with Windows 7
    http://technet.microsoft.com/library/ff802404.aspx
    The related thread:
    NPS 2012 rejects windows 7 clients after upgrade from 2008 R2. Requested EAP methods not available
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/44af171f-6155-4f2e-b6c7-f89a2d755908/nps-2012-rejects-windows-7-clients-after-upgrade-from-2008-r2-requested-eap-methods-not-available?forum=winserverNAP
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • My laptop is using Windows 8.1 and it can't connect to a WiFi using WPA2/Enterprise authenticate

    I am using a laptop Dell Inspiron 15z with Windows 8.1 64 Bit OS.  And i build a test lab to test WPA2/Enterprise authenticate.
    My Lab is like that:
    1/ My DC + DNS using Windows 2012 RC2 Standard.
    2/ I install CA + Radius Server on DC Server.
    3/ My AP WiFi is DrayTek AP810
    After configed i can you use my iphone 5s (ios 8.1), my android phone (Samsung Galaxy), 1 laptop Windows 7, 1 laptop Windows 8 to test. And all of them can connected with no problem.
    But my laptop using Windows 8.1 64 bit OS can't connected. After i choise the WiFi, it only show "checking network requirement"- not show the option question username and password. (and i config it exactly like laptop Windows 8).
    I have tried find the answer on Google but nothing help me. (i have choise PEAP, install Certificate...)
    Please help me guys. Thank you so much.

    Hi,
    About this issue, we could troubleshoot as the following methods on the Windows 8.1 client side.
    1. Maker sure the "Automatically use my Windows logon name and password" setting on the client is disabled and on your client and type in the correct domain name when prompted.
    2. If the issuer persists, delete this network profile in your Windows 8.1 client with commands and manually configure it as
    this similar thread.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do i access my photos in iCloud using Windows Vista?

    How do i access my photos in iCloud using Windows Vista?

    You can access your photos from photo stream on any of your devices.
    If you delete photos from the camera roll they aren't deleted from photo stream, if that's what you are asking.
    My webpage here might help you understand the various ways photos can be saved on your device and some of the advantages and disadvantages associated with each method.

  • Help Locating music files after transferring  using Windows Migrartion Assistant

    I am new to mac I just bought a new MacBook Pro Friday. I have an iPod, iPhone, and an, iPad that I need to get setup on my Mac. The way I have them setup on my Windows 7 PC is I can select wich iTunes library to open by pressing the shift key while clicking on the iTunes icon. My first question is can I set that up like that on the Mac as well? Also I used Windows Migrartion Assistant to transfer my music files from my windows 7 PC to my Mac after the transfer was finished I cannot locate the music files on the Mac anywhre. Can anyone help.

    Apparently the old external drive is going bad. I turned it off and waited an hour or so and restarted it, and all my files were back. I have copied them to my PC hard drive to be safe. However, my iTunes is now totally screwed up. Although the music files are back where they were (for now), iTunes cannot find any songs except the few that were copied to the new drive when I did the consolidate. I tried the Consolidate Library again and it stops because it cannot find the files. Am I going to have to point iTunes to the location of every song, one at a time, for over 2800 songs?

  • Parse CLOB response

    Hi!
    How can I could parse the response from the REST request (using XML or JSON)??? I can't find any API to parse the CLOB response.
    Thanks
    declare
    l_clob clob;
    l_buffer varchar2(32767);
    l_amount number;
    l_offset number;
    begin
    l_clob := apex_web_service.make_rest_request(
    p_url => 'http://ptmc0005:8080/Rest-Test-Web/patients.xml',
    p_http_method => 'GET',
    p_parm_name => apex_util.string_to_table('searchStr'),
    p_parm_value => apex_util.string_to_table('Bill'));
    l_amount := 32000;
    l_offset := 1;
    dbms_output.put_line(l_clob);
    end;

    What could be the problem or the solutions?1) Create an XMLType table (could be temporary) using binary XML storage :
    create table tmp_xml of xmltype
    xmltype store as securefile binary xml;2) In your procedure, load the XMLType containing the response (rsp_xml) into the table :
    insert into tmp_xml values (rsp_xml);3) Then, execute the query directly from the table :
    SELECT opciones_obj ( ... )
    BULK COLLECT INTO t_opciones
    FROM tmp_xml t
       , XMLTABLE (
             xmlnamespaces ( ... ),
             '/env:Envelope/env:Body/...'
             PASSING t.object_value
             COLUMNS ...4) At the end of the procedure, delete (or truncate) the table or simply let the table delete itself when the session ends (in case you created it TEMPORARY)

  • TO PARSE XML RESPONSE AFTER SENDING XML DOCUMENT AS URL PARAMETER PROBLEM

    Hi
    I sent the xml document (varchar variable)to the other site (to use URL).
    When I take the xml response from the other site, how can I parse this using pl/sql code? (db version oracle 8.1.7)
    What are the methods?
    Try the following URL by pasting it in browser location box:
    http://testspos.isbank.com.tr/sanalpos/spos.asp?prmstr='&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ePaymentMsgVersionInfo="2.0" TT="Request" RM="Direct" CT="Money"&gt;&lt;OperationActionType="LiveTest"&gt;&lt;OpData&gt;&lt;MerchantInfo MerchantId="200000845966"MerchantPassword="kangurum"/&gt;&lt;ActionInfo&gt;&lt;TrnxCommon TrnxID="'||v_sipno||'"Protocol="156"&gt;&lt;/TrnxCommon&gt;&lt;/ActionInfo&gt;&lt;PANInfo&gt;&lt;/PANInfo&gt;&lt;OrgTrnxInfo&gt;&lt;/OrgTrnxInfo&gt;&lt;CustomData&gt;&lt;/CustoData&gt;&lt;/OpData&gt;&lt;/Operation&gt;&lt;/ePaymentMsg&gt;'
    You will get the response:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;The parameter is incorrect. &lt;/body&gt;&lt;/html&gt;

    Hi
    I sent the xml document (varchar variable)to the other site (to use URL).
    When I take the xml response from the other site, how can I parse this using pl/sql code? (db version oracle 8.1.7)
    What are the methods?
    Try the following URL by pasting it in browser location box:
    http://testspos.isbank.com.tr/sanalpos/spos.asp?prmstr='&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ePaymentMsgVersionInfo="2.0" TT="Request" RM="Direct" CT="Money"&gt;&lt;OperationActionType="LiveTest"&gt;&lt;OpData&gt;&lt;MerchantInfo MerchantId="200000845966"MerchantPassword="kangurum"/&gt;&lt;ActionInfo&gt;&lt;TrnxCommon TrnxID="'||v_sipno||'"Protocol="156"&gt;&lt;/TrnxCommon&gt;&lt;/ActionInfo&gt;&lt;PANInfo&gt;&lt;/PANInfo&gt;&lt;OrgTrnxInfo&gt;&lt;/OrgTrnxInfo&gt;&lt;CustomData&gt;&lt;/CustoData&gt;&lt;/OpData&gt;&lt;/Operation&gt;&lt;/ePaymentMsg&gt;'
    You will get the response:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;The parameter is incorrect. &lt;/body&gt;&lt;/html&gt;

Maybe you are looking for

  • Issue with "read by other session" and a parallel MERGE query

    Hi everyone, we have run into an issue with a batch process updating a large table (12 million rows / a few GB, so it's not that large). The process is quite simple - load the 'increment' from a file into a working table (INCREMENT_TABLE) and apply i

  • Display Key & Text In Variable Screen

    Hi All, I am having one master data Location having Attribute and Text data loaded. I am using the same Location as a characteristics in my DSO and then in Query . Now, i have create one variable on Location. When i am executing the query , and click

  • App store store account without credit card?

    I bought iphone and i can't register my apple id on the app store because i need to enter credit card information but i don't have credit card. Is the phone useless for me and should i return it?

  • UNIVERSE DESIGN TOOL

    Where can I find a sample database for practice to use in Business Objects Universe Design Tool and connect it to a server?

  • Downtime Phase

    Hello All, Would just like to ask for your feedback on this activity EHP4. We almost complete the preparation steps and reached the end of step "Preprocessing". However, there were certain steps that we need to do prior to the "downtime" phase: - Sto