Request, the response of webservice with CDATA

I need assistance with the query:

declare

Xml_RESPONSE Xmltype: = xmltype)

' ' < SOAP - ENV:Envelope xmlns:SOAP - ENV = " http://schemas.xmlsoap.org/SOAP/envelope/ "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance "container =" " http://www.w3.org/2001/XMLSchema ">

< SOAP - ENV:Body >

" < ns1:Person1sResponse SOAP - ENV:encodingStyle = ' http://schemas.xmlsoap.org/SOAP/encoding/ "xmlns:ns1 ="MAP112"> "

< back xsi: type = "xsd: String" > <! [CDATA [< person Ident1 = "234" > < 47 > < / Age > < Day_Time > 2015 - SEP - 03 08:55:43 < / Day_Time > < / person >]] > < / return >

< / ns1:Person1sResponse >

< / SOAP - ENV:Body >

(< / SOAP - ENV:Envelope > ');

BEGIN

C IN)

SELECT B2.*

FROM XMLTable)

XMLNamespaces)

             ' http://schemas.xmlsoap.org/SOAP/envelope/ ' AS "SOAP-ENV"

, "MAP112" AS "ns1."

)

, ' SOAP - ENV:Envelope / SOAP - ENV:Body / ns1:Person1sResponse / back '

by the way Xml_RESPONSE

path of columns person clob '.'

) A1

XMLTable)

"' / Person"

by the way xmlparse (document A1. Person)

age columns VARCHAR2 (10) PATH 'Age '.

) B2

) LOOP

DBMS_OUTPUT. Put_line (' output: ' |) C.Age);

END LOOP;

END;

Thank you

Kostadin

Your code is perfectly fine.

What problem do you have?

SQL> set serveroutput on
SQL>
SQL>
SQL> declare
  2
  3  Xml_RESPONSE  Xmltype := xmltype(
  4  '
  5     
  6        
  7           4703-SEP-2015 08:55:43]]>
  8        
  9     
 10  ');
 11
 12  BEGIN
 13
 14  FOR C IN (
 15  SELECT B2.*
 16      FROM XMLTable(
 17             XMLNamespaces(
 18               'http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV"
 19               ,'MAP112' AS  "ns1"
 20             )
 21           , 'SOAP-ENV:Envelope/SOAP-ENV:Body/ns1:Person1sResponse/return'
 22             passing    Xml_RESPONSE
 23             columns Person  clob path '.'
 24          ) A1
 25        , XMLTable(
 26            '/Person'
 27            passing xmlparse(document A1.Person)
 28            columns     Age  VARCHAR2(10) PATH 'Age'
 29          ) B2
 30            ) LOOP
 31            DBMS_OUTPUT.PUT_LINE( 'output:    '|| C.Age   );
 32            END LOOP;
 33  END ;
 34  /

output:    47

PL/SQL procedure successfully completed.

Tags: Oracle Development

Similar Questions

  • How to work with tables (or lists) in the responses of WebService?

    Good evening!

    In a BPEL process, I invoked a certain Webservice that return me a list of people. Like this:

    < response >
    < personList >
    < person > Person1 < / person >
    < person > Person2 < / person >
    < person > channels3 < / person >
    < / people >
    < / respons >

    Now I need to do something with each returned item (like to call another Web service with the parameter 'person' (so I need to call a Web service for a 3 times))

    How can I do this?

    In the Assign CopyRules element, I see only:
    response | _
    personList | _
    Nobody

    As a person is a simple element, not a list.


    Can I use one for each element? And what next?

    Thank you.

    http://download.Oracle.com/docs/CD/E12483_01/integrate.1013/b28981/manipdoc.htm#BABCHBFB
    http://clemensblog.blogspot.com/2006/03/BPEL-looping-over-arrays-Collections.html
    http://oraclebpelindepth.blogspot.com/2008/09/arrays-in-bpel_21.html

    Indeed, you need for each and loop over each item in the person in

    in the loop, you can call the other service with the input of the corresponding person-element-data data

    person [1] / name
    [2] person / name

    etc.

  • Send the response of output / format CDATA OSB

    Hello

    I want to send the output to the format CDATA OSB as below.

    < DataSet > <! [CDATA [data <>
    < QueryRes >
    < tagA > CBA < / tagA >
    < tagB > qacb < / tagB >
    < / QueryRes >
    [[< / data >]] > < / DataSet >

    How can I achieve the same thanks to the OSB.

    Published by: truptipatil on September 18, 2012 15:15

    You can use the function ora: parseEscapedXML for this

    http://sqltech.CL/doc/oas11gR1/integration.1111/e10224/bp_appx_functs.htm
    B.2.47 parseEscapedXML

    http://rameshsmenon.blogspot.nl/2010/04/SOA-11g-BPEL-oraparseescapedxml.html

    with this, you can parse the xml string to a new variable (with is not the string, but for example, employeeType data type, so a structured definition of employee in your xsd).
    When you assign it with this ora: parseEscapedXML to your varEmployee you can just use xpath expression to navigate to the item in the employeeType you need

    so something like /emp:employee / emp:contact / emp:mobile

    a little clear?

  • Get the response time more with First_Rows Hint.

    Hello
    I use 10.2.0.1.0 oracle version. I have a sql query that gives performance with cutting-edge FIRST_ROWS problem.     I expect the best response time with suspicion of "FIRST_ROWS (5)", but his is the worst, with use of a different set of the index, which is local to the partition. Please, help me to understand, the reason behind this change in negative execution path?
         First query gives all the ~3488 rows within ~1 minutes but the query with HINT is taking ~15 minutes for providing initial few rows itself. 
    For second one i am not able to get the exact and estimated cardinality stats , as it was taking lot of time for completion, so providing Autotrace plan only.
         
    Main Query:
    Published by: 930254 on October 15, 2012 04:55

    930254 wrote:
    Yes, Jonathan, in fact in the first case, i 'I' table is being analyzed using an overall index, but suspicion FIRST_ROW sound using the index that is local to the partition. resulting in the digitization of all partitions of 448. I think it's causing bottleneck. Is there something like: FIRST_ROW suspicion that affect this type of systematic index scan?

    In the first case the optimizer has unnested subquery of REACTION and used to bring to the table, I, and that's what dictated the choice of index.

    In the case of first_rows (5) decided that the range index scan will take adequate data if some time he chose a different index - running subqueries in the REACTION as a subquery for filter on each line. But it is the estimate of how long it will find adequate data (and how much time he will have to run the subquery to eliminate unnecessary data) does not.

    Concerning
    Jonathan Lewis

  • How to take the output of Webservices

    Hi all

    I'm new on JUST I want to know how we're going to take the response of webservices in variable flow to RL fo there is little more easily in the 7 X workflow, but I am facing problem here

    ENTRY:

    option of WebServices (literal value) I enter the WSDL url and calling the funtion there and in demand, I've been taking the value of the flow through var

    and passing to webservice

    < tem:EmployeeLogin > {$ process_data/@company_code} < / tem:EmployeeLogin >


    and iam test there I have put it in xml format

    How will I receive the make variable where I need to go again to the form

    Please help me...

    Set a variable (say ditto) XML web service result.

    Now you can access your name like/process_data/myResult/Envelope/Body/ALL_GetEmpNamefrmIDResponse/ALL_GetEmpNamefrmIDResult

    Seems clear?

    Nith

  • Hi, I've been a user of Club Photo Dollar. I accepted the proposal to continue with 10 dollars a month for 10 photos with this request: AD006115173PT, but still no response. Can help you pls?

    Hi, I've been a user of Club Photo Dollar. I accepted the proposal to continue with 10 dollars a month for 10 photos with this request: AD006115173PT, but still no response. Can help you pls?

    Hi Luis

    I understand that your initial order for the promotion of CPD Stock has failed and you are looking for re - order.

    I'm looking into that for you and will let you know when we have a solution.

    Kind regards

    Bev

  • WebService response is null in the code, but when I check in the customer REMAINS at this moment where I get the response ok

    Hi all

    Today, I try to call post webservice at this point, I get an answer anywhere via the webservice code I mentioned below, but when I try via the customer REMAINS this time that I get the right answer, so let me know what the problem?

    WebService code: -.

    QString ApplicationUI::postByWebUrl(QString qStrUrl, NetworkMethod method, QVariant data)
    {
        QNetworkRequest request = QNetworkRequest();
    
        QNetworkAccessManager *networkAccessManager = new QNetworkAccessManager(this);
        QNetworkReply* reply;
        QString qStrReply;
        request.setUrl(QUrl(qStrUrl));
        request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
        request.setRawHeader("Accept", "application/json");
        QByteArray *byteArray = new QByteArray();
    
        JsonDataAccess jda;
        jda.saveToBuffer(data, byteArray);
        QBuffer buffer(byteArray);
        buffer.open(QIODevice::ReadOnly);
        QEventLoop loop;
        reply = networkAccessManager->post(request, QString(buffer.readAll()).toAscii());
        connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
        loop.exit();
        if (!loop.isRunning()) {
            loop.exec();
        }
    
        qStrReply = reply->readAll();
        delete (byteArray);
        buffer.deleteLater();
    
        reply->deleteLater();
        networkAccessManager->deleteLater();
        return qStrReply;
    }
    

    I'm waiting for your positive response.

    There are a number of problems with the code you have posted.  Take a look at this class, which accesses a REST web service and issues the response as a signal.  ForumRequest.cpp

  • Tool to read the response and request ksoap?

    Hello

    Does anyone know of a 3rd third party tool that can be used to read the request and response using ksoap2.

    I am aware of httptransport, .requestdump and responsedump. But these do not work in all scenarios.

    What I want is something that will trace the whole process and give me the details of the calls made in preference to the xml format.

    Thanks in advance!

    Saket

    I use tcpmon for this.

    can be downloaded for free and is also part of soapUI I recommend for webservice tests as well.

    Another tip:

    ksoap2 httptransportSE to test your webservices with JUnit (in java desktop). If your Web service is wrapped properly you should not use any bb specific code and can run all your webservices in JUnit (I do).

  • How to request the pdf to open it with adobe web code plugin

    Hello, I have a pdf hosted on my site that I can't change. It does not appear in FF built in PDF preview, it crashes just with a circle of rotation being displayed. If I force FF using the software Adobe Reader (or Adobe DC or what they call it now) plugin settings/Applications will preview it without problem. Many people visit our site of FF and say that this PDF file cannot be read. Is it possible to code HTML to request the pdf to be previewed with the if available Adobe plugin? I just get "non-informatiques people" who to complaint "I don't see this PDF file" and I answer with the support of FF to modify their PDF plugin by default, a link or can I tell them to use a different browser... but if I could get just a place to use the plugin if installed Adobe, this whole mess disappears.

    I'm not an expert HTML, or a PDF expert, but I have access to the back-end web. Is it possible in HTML for a specific plugin be used if it is available?

    If not, is it possible to use HTML to apply than the built in FF overview PDF DO NOT serve?

    The PDF file was prepared in bad. Of course, the ideal situation is to use a PDF file that is displayed in the preview of FF, but this is not possible. This is not the first time that this problem came, and this isn't the only PDF I've seen with this problem.

    No, a Web page has no control over the PDF viewer is used. It is strictly a user choice.

  • See the requests and responses

    Is there a way or a tool that can help us to see the various requests and responses of a blackberry app, whether http or no matter what protocol?

    If you use the Simulator, you can use any regular packets sniffer.

  • Someone knows the extremely slow response and delay with "not responding" on more complex web pages after installing updates on Friday?

    Since the installation of 16 Nov received security patches I've known really slow response with Internet Explorer; 2 minutes between web pages on my WIN7 Pro PC and not much better on my VISTA Business PC.  I get expired on complex web pages the context comes up with "program addresses not" or the pop-up at the bottom of the screen asking me to do it again.  The problem is not limited to Internet Explorer, but also prevents Safari to come.   I tried to reinstall WIN7 Pro, but the problem remains.  I'm also not able to run You Tube or other videos.  There is no download or updated or running Belarc Advisor Windows installation problems.  While the problem occurs with Yahoo Mail, it is not an impact send/receive in Outlook.  Does not appear to impact, nothing other than browsing the web.

    Hi ephd,.

    Thanks for posting in Microsoft Communities. The problem description, I understand that the internet works slowly. Provide the following information:

    ·         Have updates you installed?

    ·         You get the error message?

    Follow these methods.

    Method 1: Temporarily disable the security software .

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 2: Follow these steps:

    Step 1: Start the computer in safe mode with network and check.

    Startup options (including safe mode)

    Step 2: If the problem does not persist in safe mode with networking, perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    Note: After completing the steps in the clean boot troubleshooting, follow the link step 7 to return the computer to a Normal startupmode.

    Method 3: Follow the steps in the article.

    Internet Explorer is slow? 5 things to try

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    You can see these articles for more information:

    Why is my Internet connection so slow?

    Windows wireless and wired network connection problems

    I hope this helps. Let us know if you need more assistance.

    Thank you.

  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

  • When I make a video using CC and try to import a piece of music I get the response "could not complete your request because DynamicLink is not available.

    When I do a video using CC and try to import a piece of music I get the response "Could not complete your request because DynamicLink is not available" - any ideas please?

    Could not complete your request because the DynamicLink media server is not available. | Error postal codes of Mylenium

    Mylenium

  • Tips for creating the responses with different line heights

    Some of my answers have 1 line, some have 2, some even 3 lines. Any recommendations on configuring my Quiz slide so that the boxes to resize automatically?

    Currently, I have two problems:

    (1) I need layout manually each slide where one or more of the answers takes more than 1 line. It takes some time.

    (2) I can't use "shuffle answers", because the response of the 3 line is sometimes it's original space, and sometimes it's a line a line of response high.

    Any advice?

    I try to avoid long sentences in MCQ, but if it is necessary to have several lines (you can also reduce the size of the police) and I want to shuffle is my workflow:

    • Select the legend of response with the greatest height
    • Jointly select the other legends of the response, and then in the context menu, choose Aligh, resize at same height
    • increase the height of the surrounding area (surrounds all the legends of the response, it is also possible in the Quiz slides model, too bad, there are no placeholders for the legends of the individual response it)
    • move the legend of substantive response as needed (always use shortcuts like DOWN SHIFT and CTRL-DOWN, DOWN not to disturb the alignment)
    • to reselect all the legends of the answer, right click menu, Align, distribute vertically (or use the icons in the toolbar alignment of course)

    It is a pity that you cannot apply these lifestyle changes to all MCQ don't slide, apply no button accordion format, without memory default style in the upper part of the legend of the response properties panel. This means that the process must be done manually, but at least you can mix.

    Lilybiri

  • Record of the request and response of OPA

    Hello

    I use OPA Siebel connector to call OPA 10.2 modules. Is there a way to connect the request and response Xmls side OPA.
    Curretly do I of Siebel end but I want to know if it is possible since the end of the OPA too and how?

    I'm also deploy my modules of Tomcat. If the request log is not possible takeover, can I do on Tomcat and how?

    Thank you
    JAS

    Hi Jas,

    These could help...

    The last two entries here:
    Re: OPA log levels

    and

    This thread:
    Re: Tomcat log for siebel-determinations-server file

    -Brandon

Maybe you are looking for

  • Lost 2 USB ports on Satellite M series

    2 USB ports on the back of the laptop to refuse to work, I tried various devices, but they are not counted. I ran the recovery disc and the problem is still present. I ran Acronis to return the machine as it was before, but I have only the USB port o

  • Very long time tasks relay

    Dear friends I would like to do a test search to simulate a month of rain and Sun. For this I'll use 2 relays, wave of open water for the rain and the other for heating (Sun). The student has the time which rained and the days that has som Sun for a

  • Why do I need to "media rights" to listen to a CD and was torn off my computer using an old Windows Media Player?

    I use Windows vista Home premium 64 - bit sp2.  I tried to read an album of my play list and received a window ' Acquisition of the rights to use music '. "  I already ripped my CD to the library; now I can't listen to my own music.  I'M VERY ANGRY A

  • Keyboard password forgot to blackBerry Smartphones

    Hi all, I have a huge problem! I forgot the password to unlock the keyboard, so when I pass on the BB I stopped after the PIN code. Some people told me to reset the phone, but it is impossible to do without this password. Can someone tell me what to

  • BlackBerry OS6 update Blackberry Curve 8520 smartphones

    As you can see on the UK Blackberry home page, the OS6 software is now available for the curve smartphones. I plugged my camera, launched the Desktop software and nothing happened. How can I update my Blackberry OS6, please help! :-)