Unable to parse the soap response if the response contains several objects

Hello

I am able to analyze the SAOP response.
but I do not know how to parse for multiple objects in the entry. could you please check with below, which must analyze. I provided 3 objects of entry in the SOAP, but it should work for many also. and if we can analyze the length 32767 morethen clob?
Please help it our of here.


response_env: =' < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
< soapenv:Body >
< UserInfoObjResponse xmlns:axis2ns1 = "http://www.test.com/services" >
< axis2ns1:FirstName > first name out < / axis2ns1:FirstName >
< axis2ns1:LastName > last exit name < / axis2ns1:LastName >
< axis2ns1:ErrorDescription / >
< / UserInfoObjResponse >
< UserInfoObjResponse xmlns:axis2ns1 = "http://www.test.com/services" >
< axis2ns1:FirstName > first name out < / axis2ns1:FirstName >
< axis2ns1:LastName > last exit name < / axis2ns1:LastName >
< axis2ns1:ErrorDescription / >
< / UserInfoObjResponse >
< UserInfoObjResponse xmlns:axis2ns1 = "http://www.test.com/services" >
< axis2ns1:FirstName > first name out < / axis2ns1:FirstName >
< axis2ns1:LastName > last exit name < / axis2ns1:LastName >
< axis2ns1:ErrorDescription / >
< / UserInfoObjResponse >
< / soapenv:Body >
< / soapenv:Envelope > ';
-----------------------------------------
declare
CLOB response_env;
v_xml XMLTYPE.
l_user_first_name varchar2 (1000);
l_user_last_name varchar2 (100);
l_error_value varchar2 (100);
NS varchar2 (200): = 'xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns:axis2ns1 = "http://www.test.com/services" ';
Start
response_env: =' < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
< soapenv:Body >
< UserInfoObjResponse xmlns:axis2ns1 = "http://www.test.com/services" >
< axis2ns1:FirstName > first name out < / axis2ns1:FirstName >
< axis2ns1:LastName > last exit name < / axis2ns1:LastName >
< axis2ns1:ErrorDescription / >
< / UserInfoObjResponse >
< / soapenv:Body >
< / soapenv:Envelope > ';

dbms_output.put_line (' length to ask:' | length (response_env));
-dbms_output.put_line (' ask: ' | response_env);

v_xml: = XMLTYPE (response_env);

Select EXTRACTVALUE(v_xml,'/soapenv:Envelope/soapenv:Body/UserInfoObjResponse/axis2ns1:FirstName',ns),
EXTRACTVALUE(v_xml,'/soapenv:Envelope/soapenv:Body/UserInfoObjResponse/axis2ns1:LastName',NS),
EXTRACTVALUE(v_xml,'/soapenv:Envelope/soapenv:Body/UserInfoObjResponse/axis2ns1:ErrorDescription',NS)
in l_user_first_name, l_user_last_name, l_error_value
Double;

dbms_output.put_line ('l_user_first_name: ' | l_user_first_name);
dbms_output.put_line ('l_user_last_name: ' | l_user_last_name);
dbms_output.put_line ('l_error_value: ' | l_error_value);
end;
--------------------------------------------
SQL> declare
   response_env   clob
      := '


1. First Name Output
Last Name Output



2. First Name Output
Last Name Output



3. First Name Output
3. Last Name Output



';
begin
   for c in (select x.*
               from xmltable (
                       xmlnamespaces (
                          'http://schemas.xmlsoap.org/soap/envelope' as "x",
                          'http://www.test.com/services' as "axis2ns1"),
                       '*'
                       passing xmltype (response_env).
                               extract (
                                  '//UserInfoObjResponse',
                                  'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis2ns1="http://www.test.com/services"')
                       columns firstname varchar2 (25) path 'axis2ns1:FirstName',
                               lastname varchar2 (25) path 'axis2ns1:LastName',
                               errordescription varchar2 (25) path 'axis2ns1:ErrorDescription') x)
   loop
      dbms_output.put (rpad(c.firstname,30));
      dbms_output.put (rpad(c.lastname,30));
      dbms_output.put_line (rpad(c.errordescription,30));
   end loop;
end;
/
1. First Name Output          Last Name Output
2. First Name Output          Last Name Output
3. First Name Output          3. Last Name Output
PL/SQL procedure successfully completed.

Tags: Database

Similar Questions

  • Is there a limit for research on the function of advanced search for files containing text matching. My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.

    Hello

    Is there a limit for research on the function of advanced search for files containing a text match? My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.

    Hi carls76936091,

    Open Acrobat, go to the Edit-> Preferences-> search & check if there is a limit to 500 set, in case if it is to increase it please.

    Kind regards
    Nicos

  • parsing a SOAP response

    Hi all

    I need to analyze this below the answer... but have no idea

    http://schemas.xmlsoap.org/soap/envelope/">
      
         http://tempuri.org">
            http://schemas.microsoft.com/dynamics/2008/01/documents/EmpltableWS">
               Original
               ceu
               
                  <_DocumentHash>30a13deb4619490c0fd70a5e56e70ad1
                  00:00:00
                  00:00:00
                  Admin
                  Contoso Enterprise
                  
                     060
                     0201
                     Site1
                     1000
                     1000
                  
                  [email protected]
                  No
                  Male
                  1000
                  Charlie Carson
                  Active
                  04
                  No
                  No
                  No
                  false
                  2013-01-01
                  0559999999
                  No
                  No
                  590
                  Bank
                  04999999
                  MGT. President BDM
                  5637144576
                  1955879158
                  Julia Funderburk
                  No
                  Employed
                  No
                  President-BDM
                  Yes
                  Yes
               
            
         
      
    
    

    On the response from the service I'm cela suite

    WebService Sub:{nServiceResponse()}

    "qDebug() < "responce="" data="" main=""> "< response.returnvalue().tostring();=""  ="" this="" value="" is="">

    parseEmployeProfile (response.returnValue ());

    }

    voidPMOwebservice:arseEmployeProfile (constQtSoapType & data) {}

    "qDebug() < "responce="" udatat="" after="" sending="" to="" parse=""> "< data["docpurpose"].tostring();="" this="" value="" i="" am="">

    QString Montana = data.toString ();

    JDA JsonDataAccess;

    QVariant jda.loadFromBuffer (mData) = qtData;

    const mapRoot =() qtData.value QVariantMap;

    const QVariantMap map = mapRoot.value("EmplTable",_"").toMap();

    QString DocPurpose = map.value("DocPurpose",_"").toString();   This value is also empty

    }

    Do not have idea how to analyze this complex response...

    waiting for your excellent response...

    Thanks in advnace.

    Hello

    Thanks for the reply...

    could you please show me an example on how to use this

    QtSoapStruct &soapStruct = (QtSoapStruct &) resp.method();int version = soapStruct["Version"].toInt();QtSoapArray &attributes = (QtSoapArray &) soapStruct["Attributes"];for (int i = 0; i < attributes.count(); ++i) {    QtSoapStruct item = (QtSoapStruct&) attributes[i];    QString attributeName = item["Attributename"].toString().toLower();    QString objectName = item["Objectname"].toString();    QString objectValue = item["Value"].toString();
    

    I'm new to the blackberry development...

    Example of ways... Use the attributes and the name of the object of the soap response that I posted previously...

    Thanks in advance...

  • The call of several objects in a table

    Hello

    I tried to figure out how to appeal to several objects in a table.

    What I want to do is set the value of certain objects display in a table at certain points.

    Thus, for example;

    var CheckBox1 = this.getField("CheckBox1").value;
    var CheckBox2 = this.getField("CheckBox2").value;
    var arrObj = [
    "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"];
    
    if (CheckBox1 = "Yes") {
         if (CheckBox2 = "Yes") {
              arrObj[1].display = display.hidden;
              arrObj[7, 8, 9].display = display.visible;
              arrObj[4, 5, 6].display = display.noView;
              arrObj[2, 3].display = display.noPrint;
         }
         else if ...
              //do something else
    }
    

    So instead of writing 10 different set out I can condense up to maximum 4 or less in function.

    However, all the ways I tried to do it didn't and I can't find any clear examples on the web.

    Any suggestions?

    As always, any help is very appreciated.

    Thank you in advance.

    This is a potential problem with your code: in a table JavaScript, the first element is element 0 and not 1.

    Try this instead (it's just the inner loop):

    var a1 = [7, 8, 9];
    var a2 = [4, 5, 6];
    var a4 = [2, 3];
    
    if (CheckBox2 == "Yes") {
        arrObj[1].display = display.hidden;
        for (var i in a1)
            arrObj[a1[i]].display = display.visible;
        for (var i in a2)
            arrObj[a2[i]].display = display.noView;
        for (var i in a3)
            arrObj[a3[i]].display = display.noPrint;
    }
    
  • Unable to parse the XML because of malformed UTF-8

    When parsing a string xml (not a file!) I have a malfromed exception UTF-8. This is due to the fact that there are accents in (oau), but the chain says it utf-8 format. These umlauts or even some Chinese characters are allowed by the xml specification.

    You have an idea on how to make this work? the problem is that I can't just replace the characters with something else since I have to support any language.

    Sring xml ="" my name: oauRed535.

    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();

    DocumentBuilder builder = factory.newDocumentBuilder ();

    InputStream inputStream = new ByteArrayInputStream (xml.getBytes ());

    Document document = builder.parse (inputStream);

    Exception message when you call parse: Malformed UTF-8

    Any help welcome,

    Thank you

    Is the point of this item:

    my name: oau

    to test the transformation of accented characters?

    In any case, I'll try:

    xml.getBytes("UTF-8")

    to make sure that your string is encoded using UTF-8 and not ISO-8859-1 which is the default.

  • Unable to parse the file config.xml - bad xml structure

    I'm doing a simple application for blackberry phones.  I used the code on the site of dev on creating your first application.


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "1.0.0.0" >
      DevBlog
      BlackBerry Developer Blog
     
    email = '[email protected]' > John Doe
     
      http://devBlog.BlackBerry.com"/ >
     

    I edited it for the site we want to and other details as follows:


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "1.0.0.0" >
     
     DeVryUniversity 
     DeVry University Library 
     
    email ="[email protected]" > Danny coats "
      
     http://library.DeVry.edu/cgi-bin/Pwebrecon.cgi?DB=local&page=first"/ >
     

    It gives me the following error when I compile it:

    C:\Program Research In Motion\BlackBerry WebWorks Packager > bbwp "C:\Users\".
    Danny Coats\workspace\applications\DeVryLibrary\DeVryLibrary.zip.
    [INFO]                  Parsing of the command line options
    [INFO]                  Bbwp.properties analysis
    [INFO]                  Validation of archive application
    [INFO]                  The analysis of config.xml
    [ERROR]                 Impossible to analyze the file config.xml - bad structure XML

    I use Windows 7 Professional and the latest version of the SDK of Blackberry WebWorks.  I find nothing in the community for this to solve.

    Any suggestions will be greatly appreciated.

    I had the same error when you try your config.
    So, I try to analyse.
    I found the error is in the value of the content item, you must:

    http://library.DeVry.edu/cgi-bin/Pwebrecon.cgi?DB=local&page=first

    and should be:

    http://library.DeVry.edu/cgi-bin/Pwebrecon.cgi?DB=local & page = First

    If the special characters in the URL must be converted to their html entities.

  • Digital Publishing Tools for Wordpress error: unable to parse the manifest file. [IN014]

    Anyone using this wordpress plugin?

    After many tests, found that it was a question because we were exploited w / in a secure section of our site.  Once we have updated the htaccess to allow free access to our folder, everything started working

  • Unable to create the request of several users in oim 11 g 2

    Hello

    I am trying to assign a resource to multiple users using IOM identity console as a system administrator.

    But when I assign the resource to multiple users its takes the same value for both users.

    Please let me know how to add the different value for different users.

    Thank you

    Here are the rules of its operation.  An application has 1 application form by resource for all users of the application.  These fields must be marked as available in bulk as well to consider if you have more than 1 user on demand.  If you need to provide different values according to the user, your best option is to pre-fill the cards on the form of courses and use logic to fill in the fields.  You will not be able to manually provide different values during the request.

    -Kevin

  • Duplicate the size and the position of several objects.

    Is it possible to duplicate the position and size properties and apply them to different objects on slides?

    In short, I have short videos I want located at the same place on each slide more than 30 slides. The videos vary, but the slide location must be the same. It becomes particularly bulky on a sensitive project to manually adjust things for not only all the slides, but once again for Tablet and phone views as well.

    Use the Guides in Captivate 9: for projects of nature reactive, leaders are in % and you can use the snap to guides easily position the videos. Take a look on:

    Rule guides! -Captivate Blog

  • I cannot repeat an action of drops eye, with each turn eyedropping backgroundcolor under the midpoint of several objects?

    Let explain me my question.


    I have a bitmap with a lot of different shades of purple/pink. I want to manually convert the image into a vector with illustrator. I have already created a grid of triangles, with no fill and a race of 1 point (no matter the color of the outline). Now I want drops eye color under the triangle.
    It is possible to repeat this action, if I can do all the triangles once? Now, I have to switch the tool selecting tool drops continiously eyepieces.

    Thank you in advance!

    question.png

    Another idea:

    Is - this required that the nuances in the neighbouring triangles match the pattern exactly? Or would it be sufficient that they vary?

    Inthat case I would generate in Illustrator using mosaic squares of color.

    Then slice those in triangles using lines and Scouts.

    Then apply the script "vary the shades" from here: wundes.com

    Look like this, but can vary in intensity:

  • I was sent a .ai file to edit, but when I opened I have retrieve the document contains PDF objects which have been reinterpreted.

    When I click ok I get a screen full of "this is an Adobe Illustrator file that has been saved without PDF content. Instead or open this file in other applications, it should be re-recorded in Adobe Illustrator with the option 'Create PDF Compatible file' lit. This option is in the dialog box Options of Format native Illustrator which appears when you save the Adobe Illustrator file using Save as command. "over and over.

    This isn't a PDF file, is a file I. It comes from an organization that it has provided on their Web site for others to download and customize which makes me think that the problem is on my end. If I go up to the file and the location and file and can see the graphics on the screen preview, then 'upgrade' gives me just another complete display of PDF content subsections.

    What can I do?

    Most likely the files have been saved in a newer version you are using.

    Illustrator in this case does not include the part of the file. Seeks PDF part, what is not there, which is why you see this error.

    On the Illustrator files:

    This mysterious does Illustrator - saving files on Vimeo

  • Change the color of several objects

    Hi all

    I wrote code that continually adjusts the color of a clip of specialties using a color object called "myColor" and an object called "colTransform" to adjust the color of a film called "myClip":

    creates the color object and connects it to film

    myColor = new Color (myClip);

    creates the object that dictates the color setting

    colTransform = new Object();

    Adjusts the object

    colTransform.ra = 60;

    colTransform.ga = 80;

    colTransform.ba = 100;

    colTransform.rb = 0;

    colTransform.gb = 105;

    colTransform.bb = 255;

    apply color to colTransform values to color the object

    myColour.setTransform (colTransform);

    It works fine, but I now want to put a number of films on the same values. Is there a way to define a color to more of a movie object? My tests indicate that a color object cannot be set for a film at the time, although it can be given to another clip and the color transformation applied to the second object:

    myColor = new Color (myClip1);

    myColour.setTransform (colTransform);

    color object resets to the second clip

    myColor = new Color (myClip2);

    myColour.setTransform (colTransform)

    I could also write a loop that traverses a number of objects and apply color changes to each in turn, but I'm looking for a simpler solution - is there a way to do this?

    You can do all the objects, you want color, children of the same parent at the same time and apply a color change to parent.

    PS you have a typing error in your code: myColor isn't Woodline

  • Cannot access a Web site, HTMLParsingError unable to change the container element parent before the child element closed

    When I go to Geaowarehouse a site to check the properties and assessments

    I can't get the information

    This message appears when I click on the yellow triangle at the bottom LHS

    HTMLParsingError unable to edit the item container parent before the child element is closed

    http://answers.Microsoft.com/en-us/IE/Forum/IE8-windows_other/HTML-parsing-error-unable-to-modify-the-parent/e64759e0-D344-42d6-b1d8-0ce27504dd71

  • How to manage the SOAP response

    Hello (beginner vCO),

    I use the SOAP Plugin and trying to figure out how to manage the here, a host of SOAP response is the log I get the SOAP response

    [12:53:43.124 2014-05-09] [I] the settings...

    [12:53:43.135 2014-05-09] [I] the available settings:

    [12:53:43.136 2014-05-09] [I] + parameter name: "GetRequestStatusResult", value: "< response >

    < item >

    < ServiceRequestID > SR138917 < / ServiceRequestID >

    OS DEPLOYMENT < ServiceRequestStatus > < / ServiceRequestStatus >

    < ServiceRequestCreated > 09/05/2014-15:20:25 < / ServiceRequestCreated >

    < ServiceRequestCompleted > < / ServiceRequestCompleted >

    MA138921 < CurrentActivity > < / CurrentActivity >

    OS DEPLOYMENT < CurrentActivityTitle > < / CurrentActivityTitle >

    < ActivityStartUTC > 09/05/2014-15:32 < / ActivityStartUTC >

    < ActivityEndUTC > < / ActivityEndUTC >

    < DurationTotalSeconds > < / DurationTotalSeconds >

    < AverageDurationSeconds > < / AverageDurationSeconds >

    < SecondsOffAverage > < / SecondsOffAverage >

    < EstimatedCompletionUTC > < / EstimatedCompletionUTC >

    < / OutputParameters >

    < warning > < / warnings >

    < exceptions > < / Exceptions >

    < / response > '

    It will be better to try and parse text or try and use another method with vCO

    If you haven't done so already, take a look at the action of com.vmware.libarary.soap.processOutParameters.  It is the action that generated the log you have placed in us.  It generates an object Properties (key, value pairs) with the value for each setting that results.

    In your case, assuming that 'outProps' is the result of the above, you can use:

    var getRequestStatusResult = outProps.get ("GetRequestStatusResult");

    And to analyze the code XML with E4X as Ilian said.

  • Retrieve the element of the SOAP response

    Hello world

    DB version 11.2.0.4

    Tool: pl/sql developer

    How can I retrieve the element of NfeLinkDanfe by using the xmlQuery? It is a SOAP response...

    With this query, I can retrieve the node "SOAP - ENV:Body", but I Don t know how to get an attribute of the child:

    Select (xmlcast)
    XMLQUERY)
    ' declare namespace SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/"; (:
    declare namespace xx = "GXX_KB001_v2.1.0.0"; (:
    / SOAP-ENV:Envelope/SOAP-ENV:Body/WSRecepcaoNFe.ExecuteResponse'
    from t.a.
    contents of return
    )
    as varchar2 (100)
    )
    of tmp_xml t

    It's the soap response:

    " < SOAP - ENV:Envelope xmlns:SOAP - ENV =" http://schemas.xmlsoap.org/SOAP/envelope/ "
    " container = ' http://www.w3.org/2001/XMLSchema "
    " xmlns:SOAP - ENC =" http://schemas.xmlsoap.org/SOAP/encoding/ "
    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
    < SOAP - ENV:Body >
    < WSRNF. ExecuteResponse xmlns = "GXX_YYY_v1" >
    < Retornows >
    < Message >
    < Code > 500 < / code >
    < message > xxxxxxxx! < / Mensagem >
    < / Mensagem >
    < NotasFiscais >
    < NFe >
    < NfeNumero > 123458 < / NfeNumero >
    < NfeSerie > 123 < / NfeSerie >
    < NfeChaAcesso > 43130806354976000149551230001234581000009575 < / NfeChaAcesso >
    < NfeLinkDanfe > https://hml.com/hnfe055.aspx?RomMsABbcWZNFMWmvpu8Cky0j6BoT8JvrPTqRtREFzYC10ULxD4eFTdP< / NfeLinkDanfe >
    < NfeLinkXML > https://192.168.1.20 HML.com hnfe055.aspx
    ? RomMsABbcWZNFMWmvpu8Cky0j6BoT8JvrPTqRtREFzYaqLRr % 2fXw74KgR< / NfeLinkXML >
    < NfeMensagem / >
    < SitGNFe >
    < SitStatus > 3 < / SitStatus >
    < SitProcessamento > P < / SitProcessamento >
    < / SitGNFe >
    < SitSEFAZ >
    < SitCodigo > 100 < / SitCodigo >
    < SitDescricao > smoking o uso da NF-e < / SitDescricao >
    < / SitSEFAZ >
    < / CHILD >
    < / NotasFiscais >
    < / Retornows >
    < / WSRNF. ExecuteResponse >
    < / SOAP - ENV:Body >
    < / SOAP - ENV:Envelope >

    Thanks in advance!

    Henderson

    Just specify the full path to the item of interest and be careful with the namespaces:

    Select (xmlcast)

    XMLQUERY)

    ' declare SOAP namespace = "http://schemas.xmlsoap.org/soap/envelope/"; (::)

    declare default element names 'GXX_YYY_v1 '; (::)

    /SOAP:envelope / soap: Body / WSRNF. ExecuteResponse/Retornows/NotasFiscais/ENF/NfeLinkDanfe '

    in passing t.object_value

    contents of return

    )

    as varchar2 (100)

    )

    of tmp_xml t.

Maybe you are looking for

  • My appearance of add-on does not show even if I allow it.

    I got this module appearance when opening Mozilla Fox. After a few auto computer update, the appearance of the add-on disappeared. I find, it is turned on, but no picture is displayed. I tried to download the other appearances, but none of them worke

  • HP Pavillion Wireless Driver

    Hi everyone, I have a laptop HP Pavilion 1061sa g6 and I struggle to find a wireless driver that suits. I have installed all drivers HP driver section and they work, but the one for the Wireless does not work. Here are the specs of the laptop: http:/

  • I have problems with the wia

    Windows Imaging service does not work

  • AP joined does not WLC

    Hello I'm WLC4404 6.0 image under the last one. the AP is does not reach the controller and it says invalid license in the application configuration. It is a start of one access point: 11:05:59.025 Dec 11: % 3-CAPWAP-ERRORLOG: go join a capwap contro

  • deaddead BSOD

    Sorry to steal your post, but I have experienced exactly the same exact problem with the same error codes. Signature of the problem: Problem event name: BlueScreen OS version: 6.1.7601.2.1.0.768.3 Locale ID: 4105 More information about the problem: B