OPA 12.2 Query Web Service xml structure

Hi OPA Experts,

We installed the version hub 12.2 of the OPA. I use the interface webservice sample project 'HealthEating '. But "Evaluate" the demand is huge, how to fill out only necessary data entry.

Do you have sample compact xml for tests in SOAPUI?

Thank you

Moses.

is the user name and password is required in the version of hub? , I tried to "authentication failure". So SOAPUI, I created manually authentication, it worked fine,

It is mandatory by default, as the end point of the web service is restricted to users with the role of user API web service.

See "a political model deployed as a web service secure", for more details, including how to allow anonymous access ( http://documentation.custhelp.com/euf/assets/devdocs/august2015/PolicyAutomation/en/Default.htm#Guides/Project_Administrator_Guide/Security/Secure_web_services.htm )

How to pass username and password in the hub of 12.2. the demand?

See the topic "Authenticate with a secure web service" ( http://documentation.custhelp.com/euf/assets/devdocs/august2015/PolicyAutomation/en/Default.htm#Guides/Developer_Guide/DeterminationsAPI/Authenticate_w_secured_Web_Service.htm )

Tags: Oracle Applications

Similar Questions

  • best way to get the web service XML JSON etc legacy database

    We have a bunch of old scientific databases for which we would like to expose data via an XML web service.  International XML schemas have been developed in the standards for the sharing of these data we need to provide the data in.  These patterns have very different data of our legacy data structures.  We want to leave our databases within the same structures but to expose the data in them in the XML schemas.

    Building SQL indications XMLFOREST SQL etc. that returns the XML doesn't seem very practical that the structures are very different and the SQL must be very very complex and would be very tedious to make and maintain.  Is there another way to make in the database?  There are tools outside the database such as who can help in that we used in the past and could be used again - but I had much rather that on the database if possible.

    Building SQL indications XMLFOREST SQL etc. that returns the XML doesn't seem very practical that the structures are very different and the SQL must be very very complex and would be very tedious to make and maintain.

    Using SQL/XML is the most flexible way to generate XML from relational data, as you have full control over what you do.

    If the target XML structure is complex, any method will be complex to implement completely in the database anyway.

    There is no tool integrated with Oracle that would take an XML schema and make the mapping with relational data.

    What you can do is a third-party tool allows to design a XSLT stylesheet that would take care of transforming an XML format canonical (easily created from the database of a query) in the target XML instance.

    In this way the complexity lies in the style sheet, and the real transformation could be made within the database.

  • The response from the query web service

    Hello


    I would like to apply for assistance in creating an appropriate query to process the response from the web service.

    This is the outdated response from the web service and my unsuccessful attempt to treat.


    PROCEDURE PRIMER_4B AS
    XML_WS XMLTYPE.
    CLOB DONNEES_XML
    ': = ' < s: Envelope xmlns:S = 'http://schemas.xmlsoap.org/soap/envelope/' > '.
    < Body >
    "< ns2:getDataResponse xmlns:ns2 ="http://service.anyxxx.com/">."
    < return >
    < id > 124 / < ID >
    < name > Ana < / name >
    < / return >
    < / ns2:getDataResponse >
    < / Body >
    < / s: Envelope > ';

    CSR OF CURSOR IS
    SELECT C.
    FROM XMLTable)
    XMLNamespaces)
                 ' http://schemas.xmlsoap.org/SOAP/envelope/ ' LIKE 'SOAP'
    , by default ' http://service.anyxxx.com/
    )
    , ': soap envelope / soap: Body/getDataResponse/back '
    PASSAGE XML_WS
    path id varchar2 columns (20) "id."
    path of the varchar2 (30) name 'name '.
    ) C   ;
    rec_CSR CSR % ROWTYPE;

    BEGIN
    XML_WS: = xmltype (donnees_xml);
    Open the CSR;
    LOOP
    EXTRACT THE CSR IN REC_CSR;
    DBMS_OUTPUT. Put_line (' Output: ' |) REC_CSR.ID |'   '|| REC_CSR. (Name)
    When the exit CSR % notfound;
    end loop;
    DBMS_OUTPUT. Put_line('Total:'||) CSR % ROWCOUNT);
    close the CSR;
    END PRIMER_4B;

    The result is:
    Output:
    Total 0


    Thank you
    Kostadin

    Hello

    This part does not:

    default 'http://service.anyxxx.com/'.

    If you declare this uri as the default namespace uri, then 'return', 'id', 'name' nodes are supposed to be in this namespace, which is not correct, because they are in any workspace names.

    Solution: give a specific prefix of the namespace above and reference it accordingly in the XQuery expression:

    C. SELECT

    FROM XMLTable)

    XMLNamespaces)

    "http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP."

    , 'http://service.anyxxx.com/' as 'ns2.

    )

    , ': soap envelope / soap: Body / ns2:getDataResponse / back '

    PASSAGE XML_WS

    Path id varchar2 COLUMNS (20) "id".

    , path of the varchar2 (30) name 'name '.

    ) c ;

  • Cloud of OPA - generated form vs Web Service

    Hello

    With the help of OPA CLoud February 2015.

    I use a form and at the end of my questionnaire, the shape can be generated by clicking a link.

    My question is if I use the service of web server determination, is it possible to get the file to the response soap message?

    For an attribute, I realized that the public name must be used:

    for example

    < typ:config >
    < typ:outcome >
    < typ:entity id 'global' = >
    < typ:attribute - id of result = result "cap" style = "single value" unknown-result-style = "single value" known-result-style = "single value" / >
    < / typ:entity >
    < / typ:outcome >
    < / typ:config >
    < type: global instance >

    is there a similar way to get an edition generated by OPA?

    Orlando

    Orlando,

    Unfortunately, the assessment service cannot return a generated form.

    See you soon

    Frank

  • The analysis of the external Web service XML data IS

    Hi all

    I'm looking to analyze the data returned by the Scopus API with Apex webservice.

    First of all, I tried parsing the JSON, however, it seems that the apex_json.parse function does not produce a result when the string contains a ':' character.  (It looks a lot like the webservice returns returns a JSON XML version below, namespace and all).

    I moved from the attempt to analyze the XML code that is less a model to:

    <?xml version="1.0" encoding="UTF-8"?>
    <search-results xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" 
    
    xmlns:prism="http://prismstandard.org/namespaces/basic/2.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/2005/Atom">
      <opensearch:totalResults>2</opensearch:totalResults>
      <opensearch:startIndex>0</opensearch:startIndex>
      <opensearch:itemsPerPage>2</opensearch:itemsPerPage>
      <opensearch:Query role="request" startPage="0" searchTerms="authlast%28ryan%29+and+af-id%2860017837%29"/>
      <link type="application/xml" href="http://api.elsevier.com:80/content/search/author?start=0&count=25&query=authlast%28ryan%29+and+af-id
    
    %2860017837%29" ref="self"/>
      <link type="application/xml" href="http://api.elsevier.com:80/content/search/author?start=0&count=25&query=authlast%28ryan%29+and+af-id
    
    %2860017837%29" ref="first"/>
      <entry>
        <link href="http://api.elsevier.com/content/author/author_id/7402922277" ref="self"/>
        <link href="http://api.elsevier.com/content/search/author?query=au-id%287402922277%29" ref="search"/>
        <link href="http://www.sco pus.com/author/citedby.url?partnerID=HzOxMe3b&citedAuthorId=7402922277&origin=inward" ref="scopus-
    
    citedby"/>
        <link href="http://www.scopus.com/authid/detail.url?partnerID=HzOxMe3b&authorId=7402922277&origin=inward" ref="scopus-author"/>
        <prism:url>http://api.elsevier.com/content/author/author_id/7402922277</prism:url>
        <dc:identifier>AUTHOR_ID:7402922277</dc:identifier>
        <eid>9-s2.0-7402922277</eid>
        <preferred-name>
          <surname>Ryan</surname>
          <given-name>Philip J.</given-name>
          <initials>P.J.</initials>
        </preferred-name>
        <name-variant>
          <surname>Ryan</surname>
          <initials>P.J.</initials>
        </name-variant>
        <name-variant>
          <surname>Ryan</surname>
          <given-name>P. J.</given-name>
          <initials>P.</initials>
        </name-variant>
        <name-variant>
          <surname>Ryan</surname>
          <given-name>Phil</given-name>
          <initials>P.J.</initials>
        </name-variant>
        <document-count>28</document-count>
        <subject-area frequency="47" abbrev="AGRI">Agricultural and Biological Sciences (all)</subject-area>
        <subject-area frequency="24" abbrev="EART">Earth and Planetary Sciences (all)</subject-area>
        <subject-area frequency="15" abbrev="ENVI">Environmental Science (all)</subject-area>
        <affiliation-current>
          <affiliation-url>http://api.elsevier.com/content/affiliation/affiliation_id/60006905</affiliation-url>
          <affiliation-id>60006905</affiliation-id>
          <affiliation-name>CSIRO Forestry and Forest Products</affiliation-name>
          <affiliation-city>Kingston</affiliation-city>
          <affiliation-country>Australia</affiliation-country>
        </affiliation-current>
      </entry>
      <entry>
        <link href="http://api.elsevier.com/content/author/author_id/56970474800" ref="self"/>
        <link href="http://api.elsevier.com/content/search/author?query=au-id%2856970474800%29" ref="search"/>
        <link href="http://www.s copus.com/author/citedby.url?partnerID=HzOxMe3b&citedAuthorId=56970474800&origin=inward" ref="scopus-
    
    citedby"/>
        <link href="http://www.scopus.com/authid/detail.url?partnerID=HzOxMe3b&authorId=56970474800&origin=inward" ref="scopus-author"/>
        <prism:url>http://api.elsevier.com/content/author/author_id/56970474800</prism:url>
        <dc:identifier>AUTHOR_ID:56970474800</dc:identifier>
        <eid>9-s2.0-56970474800</eid>
        <preferred-name>
          <surname>Ryan</surname>
          <given-name>Peta</given-name>
          <initials>P.</initials>
        </preferred-name>
        <document-count>1</document-count>
        <subject-area frequency="2" abbrev="NURS">Nursing (all)</subject-area>
        <affiliation-current>
          <affiliation-url>http://api.elsevier.com/content/affiliation/affiliation_id/60017837</affiliation-url>
          <affiliation-id>60017837</affiliation-id>
          <affiliation-name>University of New England Australia</affiliation-name>
          <affiliation-city>Armidale</affiliation-city>
          <affiliation-country>Australia</affiliation-country>
        </affiliation-current>
      </entry>
    </search-results>
    

    So far, the best I could do is to extract the total results by XMLTable:

    SELECT results.totalResults INTO numResults FROM
        XMLTable(
            XMLNamespaces(
                default 'http://www.w3.org/2005/Atom',
                'http://prismstandard.org/namespaces/basic/2.0/' as "prism",
                'http://a9.com/-/spec/opensearch/1.1/' as "opensearch",
                'http://purl.org/dc/elements/1.1/' as "dc"),
            '/search-results' PASSING xmlResult
             COLUMNS
             totalResults NUMBER PATH '//opensearch:totalResults') results;
    

    I'm not convinced that using XMLTable is the best solution, but that's what I've learned to work.  Take it further proves to be more problematic.

    Ideally, what I want to do is get the Subproperty, favorite-name/given-name, favorite-name/initials, favorite-name and affiliation-affiliation/current-name in a collection, as well as the entrance of <>... < / input >.  The user can then select the correct author, and we can use the full set of data to process.

    I'm sure that my problem comes down to manage multiple with XPath, although namespaces that putting my XPath through Validator online gives the desired result, it does not work for me in my PL/SQL.

    If someone could provide some tips and suggestions, I would be very grateful.


    Thank you very much


    Andrew Rochdale-Meares

    Andrew Rochdale-Meares wrote:

    I'm looking to analyze the data returned by the Scopus API with Apex webservice.

    I moved from the attempt to analyze the XML code that is less a model to:

    So far, the best I could do is to extract the total results by XMLTable:

    1. SELECT results.totalResults INTO numResults OF
    2. XMLTable)
    3. XMLNamespaces)
    4. default "http://www.w3.org/2005/Atom",.
    5. "http://prismstandard.org/namespaces/basic/2.0/" as "Prism,"
    6. "http://a9.com/-/spec/opensearch/1.1/" as "opensearch".
    7. ("http://purl.org/dc/elements/1.1/" as "dc").
    8. ' / search result PASSING xmlResult
    9. COLUMNS
    10. totalResults NUMBER PATH ' / / ' opensearch:totalResults) results;

    I'm not convinced that using XMLTable is the best solution, but that's what I've learned to work.  Take it further proves to be more problematic.

    Ideally, what I want to do is to get the Subproperty, favorite-name/given-name, favorite-name/initials, favorite-name and affiliation-current/affiliation-name in a collection, as well as of the ..  The user can then select the correct author, and we can use the full set of data to process.

    The results using XMLTable of shredding is the best way to get results in a collection.

    I'm sure that my problem comes down to manage multiple with XPath, although namespaces that putting my XPath through Validator online gives the desired result, it does not work for me in my PL/SQL.

    It is not clear where you encountered problems because no details of the attempts to obtain the required information has been provided. Is not clear from the description exactly what "...". along with the ..." means, so I assumed that you want to store this item as an XML fragment in the collection. It is therefore necessary to use a loop with apex_collection.add_member as the most effective create_collection_from_queryb2 method doesn't have support to complete the collection XML column:

    ...
    
      /* Assuming the xmlResult variable is set somewhere previously... */
    
      apex_collection.create_or_truncate_collection('SCOPUS_RESULTS');
    
      for scopus_entry in (
        select
            se.*
        from
            xmltable(
                xmlnamespaces(
                    default 'http://www.w3.org/2005/Atom'
                  , 'http://prismstandard.org/namespaces/basic/2.0/' as "prism"
                  , 'http://a9.com/-/spec/opensearch/1.1/' as "opensearch"
                  , 'http://purl.org/dc/elements/1.1/' as "dc")
              , '/search-results/entry'
                passing xmlResult
                columns
                    dc_identifier    varchar2(64 char)  path 'dc:identifier'
                  , given_name       varchar2(64 char)  path 'preferred-name/given-name'
                  , initials         varchar2(64 char)  path 'preferred-name/initials'
                  , surname          varchar2(64 char)  path 'preferred-name/surname'
                  , affiliation_name varchar2(256 char) path 'affiliation-current/affiliation-name'
                  , entry_xml        xmltype            path '.') se)
      loop
        apex_collection.add_member(
            p_collection_name => 'SCOPUS_RESULTS'
          , p_c001 => scopus_entry.dc_identifier
          , p_c002 => scopus_entry.given_name
          , p_c003 => scopus_entry.initials
          , p_c004 => scopus_entry.surname
          , p_c005 => scopus_entry.affiliation_name
          , p_xmltype001 => scopus_entry.entry_xml);
      end loop;
    
    ...
    
  • Creating new XML Db Web Service

    Hi all

    I need to create a new webservice XML DB. I followed below the oracle documentation and could create the service. But when I tired to run the XQuery, to get information about the service, I just added.
    (1) I could see only a part of the production.
    (2) I must add this output to 'xdbconfig.xml '. But I don't see this file on my database server.

    I'm sure the XDB is configured on this database. I don't see by following the lines in the alertlog, when we bounced the database recently, which confirms that the XDB is configured.

    Mar 29 17:53:17 Nov 2011
    XDB installed.
    XDB initialized.
    Mar 29 17:53:43 Nov 2011

    Not sure what happened to the xdbconfig.xml. Please find below the command I used to create the Web Service and XQUERY.

    DECLARE
    SERVLET_NAME VARCHAR2 (32): = "WDD_XML";
    BEGIN
    DBMS_XDB.deleteServletMapping (SERVLET_NAME);
    DBMS_XDB.deleteServlet (SERVLET_NAME);
    DBMS_XDB.addServlet (NAME = > SERVLET_NAME,)
    LANGUAGE = > 'C ',.
    DISPNAME = > 'Oracle query Web Service.
    DESCRIPT = > 'Servlet to make queries as a Web Service. "
    SCHEMA = > "XDB");
    DBMS_XDB.addServletSecRole (SERVNAME = > SERVLET_NAME,)
    ROLENAME = > "XDB_WEBSERVICES"
    ROLELINK = > 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping (TEMPLATE = > ' / WDD_XML / *',)
    NAME = > SERVLET_NAME);
    END;
    /

    XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd";
    for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig.
    webappconfig/servletconfig/servlet-list/servlet [servlet-name = "WDD_XML"]
    return $doc
    /


    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb_web_services.htm


    Thank you
    WIYI.

    Sorry, I'm a newbie to the concept of XML DB

    Then read the documentation from the beginning, at least:
    -l'intro: http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb01int.htm#i1047170
    -the part about the repository: http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb03usg.htm#BABEDIHI

    the docs that I'm making reference to said just edit the file xdbconfig.xml

    You just made.
    Procedure calls in the PL/SQL block that you ran changed the configuration file to enable native webservices.

  • Output table in XML format using web services

    I use Labview 8.6 web services to try and a list of power provides a database as XML output. When I table of wire into the Terminal and set the URL for the web services mappings will not build because he says it is an unsupported data type. Any help would be appreciated.

    A web service XML LabVIEW 8.6 supports several types of data. A table is not one of these.

    The best way to work around this limitation is to use a string instead of the indicator table indicator. The antiderivative of flatten it to XML allows you to convert your table to an XML string.

    Alternatively, you can choose your web service method to use the mode of stream instead of the Terminal mode. You can then use the VI of response write in the range of web services to control what to write to the client and when. This seems to be what you mean when you wrote "access to the exit.

    By passerby-tables can serve as exits in LabVIEW 2009 Terminal mode.

    Nathan

  • "Unauthorized" error when you use native Web services

    Hi community

    I'm using Oracle 11 g 2 (11.2.0.3.0) and to try my first SOAP using XDB request

    I followed the instructions at [using Oracle Native XML Web Services DB | ] [ http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb_web_services.htm#ADXDB5677 ] and have traveled the many threads on this topic and am stuck again.

    The steps that I followed:

    Logged in as SYS:

    -Configuring HTTP access

    EXEC dbms_xdb.setHttpPort (7776); -I was initially using 8080, according to samples, but I changed to a port that I knew that nothing else has used

    EXEC dbms_xdb.setFtpPort (2100);  -Don't know its purpose, but anyway

    SELECT dbms_xdb.gethttpport () FROM dual;

    -Result = 7776

    -Check installed XDB

    SELECT * FROM dba_registry WHERE id_comp = "XDB".

    -Result = identifiant_composant = XDB; Version = 11.2.0.3.0; Status = VALID; Schema = XDB; Procedure = DBMS_REGXDB. VALIDATEXDB

    -Configure the Servlet ORAWSV-

    -Native web services are implemented using the servlet to "orawsv", which must be configured in the xdbconfig.xml file stored in DB XML itself.

    -This can be done using the DBMS_XDB on the package, as shown below.

    --

    DECLARE

    l_servlet_name VARCHAR2 (32): = "orawsv";

    BEGIN

    DBMS_XDB.deleteServletMapping (l_servlet_name);

    DBMS_XDB.deleteServlet (l_servlet_name);

    DBMS_XDB.addServlet (name = > l_servlet_name, language = > 'C', dispname = > descript 'Oracle query Web Service,' = > "Servlet to make queries as a Web Service", schema = > "XDB");

    DBMS_XDB.addServletSecRole (servname = > l_servlet_name, rolename = > 'XDB_WEBSERVICES', rolelink = > 'XDB_WEBSERVICES');

    DBMS_XDB.addServletSecRole (servname = > l_servlet_name, rolename = > 'XDB_WEBSERVICES_WITH_PUBLIC', rolelink = > 'XDB_WEBSERVICES_WITH_PUBLIC');

    DBMS_XDB.addServletSecRole (servname = > l_servlet_name, rolename = > 'XDB_WEBSERVICES_OVER_HTTP', rolelink = > 'XDB_WEBSERVICES_OVER_HTTP');

    DBMS_XDB.addServletMapping (template = > ' / orawsv / *', name = > l_servlet_name);

    END; /

    -I added ServletSecRoles for... _WITH_PUBLIC, and... _OVER_HTTP after initial sample didn't me give a result

  • How to display a PNG image according to the response from the Web Service?

    Hello

    I use the web service XML from Weather.com to get the current temperature, temperature 'feels' and the current condition icon number.  Their service provides many (> 20 I think) which represents the current status of PNG files.  How do I install my script AS3 do basically if... then Else instructions based on the returned value icon?  For example, if the value of icon = 20, then view 20. png on stage?  I need match the value of correct PNG icon and then put that PNG (as a clip?) on stage for a predefined timeline section.

    Thank you

    SID

    Hello

    I also used this API, and I only use cases or conditions in order to retrieve the values and turn them into a file name.

    If you do not use all the available conditions and turning them into an icon, then Yes, you need to do a switch condition.

    But if you want to use them all, them you can simply get the condition number and add the '.png' and call the corresponding file directly. Here you can do a test, just in case the condition / icon does not exist (e.g. system failure any)

    uicondition.source = String (resultXML.cc.icon) + ".png";

    The UILoader is an excellent component for this sort of thing. You can accomplish the same thing with a MovieClip and load an image. It is lighter.

    But then again if you want to resize you would code all methods for that.

    I hope this helps.

  • Web service for private cloud OPA connectors

    Hello

    1. is there a pre-configured for Oracle HCM web services connector? The documentation (which is a web service connection?) specifies that "predefined web service connectors are available for some Oracle applications."

    2 are PL/SQ skills necessary to query and update the data source (Oracle), or the structure of connectors contains of classes/methods/etc, that to do this at a higher level (i.e. just by specifying the details of db connection & fields)?

    I am aware of the example of project (that I'll study in parallel), but just ask quickly here as well.

    Thanks in advance,

    Razvan

    I'm not aware of a web services connector pre-built from Oracle for HCM, but it is possible that there is something developed by a partner of Oracle.

    The structure of connectors is really an architecture and a set of definitions of the web services any connector must support. It is possible to build a connector that uses the JDBC API, PL/SQL, other Java API, or call other web services. The main requirement is that it should provide a mapping to something that resembles the structure of the Table/column/line/field expect web services of the OPA.

  • The OPA Web services return no values

    I tried to get the OPA web services to provide a decisive result, but it seems as if my values are not received correctly. I reduced my application to simple terms to see if I can get anything to come back, and maybe to see if someone can point out what is happening, or what Miss me.  The following transactions should bounce at least values, correct?

    Credits:

    Request:

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/rulebase/assess/types">" "

    < soapenv:Header / >

    < soapenv:Body >

    < type: evaluate request >

    < type: global instance >

    < typ:attribute id = "applicationClass' type = 'text' deducted ="false"result-style ="single value"unknown-result-style ="single value"known-result-style ="single value">

    < typ:text - val > A < / typ:text - val > < / typ:attribute >

    < / typ: global instance >

    < / typ: evaluate request >

    < / soapenv:Body >

    < / soapenv:Envelope >

    Answer:

    "" < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n ="http://www.w3.org/2005/09/ws-i18n" xmlns:typ = "http://oracle.com/determinations/server/10.4/rulebase/assess/types" >. "

    < SOAP - ENV:Header >

    < i18n:international >

    en_US < i18n: local > < / i18n: local >

    < i18n:tz > GMT-0400 < / i18n:tz >

    < / i18n:international >

    < / SOAP - ENV:Header >

    < SOAP - ENV:Body >

    < type: assessment / response >

    < type: global instance >

    < typ:attribute id = "applicationClass' type = 'text' deducted ="false">

    < typ:unknown - val / >

    < / typ:attribute >

    < / typ: global instance >

    < / typ: assess / answer >

    < / SOAP - ENV:Body >

    < / SOAP - ENV:Envelope >

    Specific:

    Request:

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/DriverRoadtestEligibility_Excel/assess/types">" "

    < soapenv:Header / >

    < soapenv:Body >

    < type: evaluate request >

    < type: global instance >

    <! - you can enter the following 37 items in any order-->

    < typ:applicationClass type = "text" deducted = "false" result-style = "single value" unknown-result-style = "single value" known-result-style = "single value" >

    < typ:text - val > A < / typ:text - val >

    < / typ:applicationClass >

    < / typ: global instance >

    < / typ: evaluate request >

    < / soapenv:Body >

    < / soapenv:Envelope >

    Answer:

    "" < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n ="http://www.w3.org/2005/09/ws-i18n" xmlns:typ = "http://oracle.com/determinations/server/10.4/DriverRoadtestEligibility_Excel/assess/types" >. "

    < SOAP - ENV:Header >

    < i18n:international >

    en_US < i18n: local > < / i18n: local >

    < i18n:tz > GMT-0400 < / i18n:tz >

    < / i18n:international >

    < / SOAP - ENV:Header >

    < SOAP - ENV:Body >

    < type: assessment / response >

    < type: global instance >

    < typ:applicationClass type = "text" deducted = "false" >

    < typ:unknown - val / >

    < / typ:applicationClass >

    < / typ: global instance >

    < / typ: assess / answer >

    < / SOAP - ENV:Body >

    < / SOAP - ENV:Envelope >

    Thank you

    It's very strange sound. It might be a problem caused by unnecessary attributes sent in the query. Try the following (generic example application).

    http://schemas.xmlsoap.org/SOAP/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/rulebase/assess/types">."

    A

    This application is the most correct for the following reasons:

    • You should not set the attributes type and deducted . These attributes are usually returned in the response and cannot be defined by the application.
    • You should not set the style of the result of an attribute that you provide the value of. It must always be returned in the response.

    That said, these points do not explain why the applicationClass value is returned as unknown. Perhaps the additional attributes in the query is triggering some bad server behavior of determinations which is the cause not to define the attribute.

    This regulation, if any, that you have associated with modules? You have any customization of the server determination or modules?

  • How to expose a function that returns a XML as a Web Service?

    ---------------------------------------------------------------------------------
    Oracle Database 11 g Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE 11.2.0.3.0 Production."
    AMT for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    ---------------------------------------------------------------------------------

    After reviewing the documentation of oracle on the generation of xml data in the database, I managed to select normal tables and return a result xml exactly as I want:
    -- My types
    create or replace 
    TYPE CHILD_T AS OBJECT ("@ID" VARCHAR2(20), "@NAME" VARCHAR2(20));
    
    create or replace 
    TYPE CHILDREN_T AS TABLE OF CHILD_T;
    
    create or replace 
    TYPE PARENT_T AS OBJECT ("@ID" VARCHAR2(20), CHILDREN CHILDREN_T );
    
    -- The actual select
    SELECT XMLFOREST (
                PARENT_T(d.id,
                CAST ( MULTISET (SELECT c.id, c.name
                                 FROM child c
                                 WHERE c.parent_id = p.id) AS CHILDREN_T )
                ) AS "Parent"
            ) 
    FROM parent p;
    That gets me this:
    <Parent ID="1">
        <CHILDREN>
            <CHILD_T ID="1" NAME="xxxxx" />
            <CHILD_T ID="2" NAME="yyyyy" />
            <CHILD_T ID="3" NAME="zzzzz" />
        </CHILDREN>
    </Parent>
    It's perfect, but how to expose this result as a Web Service like this link?
     http://localhost:8080/orawsv/MY_USER/GET_CHILDREN?wsdl
    I tried this function:
    FUNCTION GET_CHILDREN (
        PARENT_ID IN VARCHAR2
    ) RETURN CLOB
    AS
        L_RESULT CLOB;
    BEGIN
        SELECT to_clob(XMLFOREST (
                PARENT_T (p.id,
                CAST ( MULTISET (SELECT c.id, c.name
                                 FROM child c
                                 WHERE c.parentId = p.id) AS CHILDREN_T )
                ) AS "ParentObj"
          )) AS MY_XML INTO L_RESULT
        FROM parent p
        WHERE p.i = PARENT_ID;
    
        RETURN (L_RESULT);
    END GET_CHILDREN;
    But when I access although .NET Compact Framework, I get this: "'Element' is an invalid XmlNodeType.

    As you can see, I just need a simple way to transport information between a Windows CE handheld computer and our database. Use functions that return simple values.
    Do I have to return the data as xml?
    What return value I should use? Varchar2 throws a buffer error output.

    ---------
    It is my first post here, also my first contact with OracleDB, and Web Services.

    Hello

    Welcome to Oracle and XML DB!

    After reviewing the documentation of oracle on the generation of xml data in the database, I managed to select normal tables and return a result xml exactly as I want:

    Have you also read about the SQL/XML functions?
    You don't have to create objects of type SQL to generate XML data.

    Using only XMLElement, XMLAgg, XMLAttributes, etc., you should be able to generate any kind of structure complex relational data and with total control over the names (which you don't have with the types of objects).
    Your example can be rewritten to:

    SELECT XMLElement("Parent",
             XMLAttributes(p.id as "Id")
           , XMLElement("Children",
               (
                 SELECT XMLAgg(
                          XMLElement("Child",
                            XMLAttributes(
                              c.id as "Id"
                            , c.name as "Name"
                            )
                          )
                        )
                 FROM child c
                 WHERE c.parent_id = p.id
               )
             )
           )
    FROM parent p
    WHERE p.id = :parent_id ;
    

    It's perfect, but how to expose this result as a Web Service like this link?
    [...]
    Do I have to return the data as xml?

    Yes.
    Define the return as XMLType data type:

    FUNCTION GET_CHILDREN (
        PARENT_ID IN VARCHAR2
    )
    RETURN XMLTYPE
    AS
        L_RESULT XMLTYPE;
    BEGIN
    
      SELECT XMLElement("Parent",
               XMLAttributes(p.id as "Id")
             , XMLElement("Children",
                 (
                   SELECT XMLAgg(
                            XMLElement("Child",
                              XMLAttributes(
                                c.id as "Id"
                              , c.name as "Name"
                              )
                            )
                          )
                   FROM child c
                   WHERE c.parent_id = p.id
                 )
               )
             )
      INTO L_RESULT
      FROM parent p
      WHERE p.id = PARENT_ID ;
    
      RETURN (L_RESULT);
    
    END GET_CHILDREN;
    
  • Where should I place a SWC file that describes a complex structure for a web service?

    Hello!

    I am creating a web service in ColdFusion 9, which returns a complex structure or has a complex argument.  I'm placing the .cfc file that describes the structure in the same directory as the .cfc which uses the structure.  Right now just trying to get a wsdl.

    I have currently two functions in my .cfc, first returns a string.  The other ideally returns an array of strings.  Saying returntype = "String()" gives an error that ColdFusion could analyze no chain

    So I tried to make a type defined by the individual item being a string:

    < cfproperty >
    < cfcomponent name = "Info source" type = "string" >
    < cfproperty >

    ------------------------------------
    Is my code that uses this cfc:

    < cfproperty >
    < cffunction name = "getzips" returntype = "remote access" = "string" >
    < cfset #resultsCommaDelimtedZips # = "this is the result" >
    < cfreturn CommaDelimitedZips >
    < / cffunction >

    < cffunction name = "getInfoSources" access returntype = "at distance" = "InfoSources []" >
    < / cffunction >
    < / cfproperty >

    The error I get is:

    AXIS error

    Sorry, something seems to have gone wrong... Here are the details:

    Error - error trying to create the skeleton of Java for web service CFC. ; nested exception is:
    coldfusion.xml.rpc.CFCInvocationException: [coldfusion.compiler.ParseException: invalid CFML construct found on line 3 in column 1.] ColdFusion was looking at the following: < p > & lt; < /p > < p > the CFML compiler treated: < ul > & lt; marks the beginning of a ColdFusion tag. Did you mean LT or LTE? < /ul >]

    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.generalException
    faultSubcode:
    faultString: error trying to create the skeleton of Java for web service CFC. ; nested exception is:
    coldfusion.xml.rpc.CFCInvocationException: [coldfusion.compiler.ParseException: invalid CFML construct found on line 3 in column 1.] ColdFusion was looking at the following: < p > & lt; < /p > < p > the CFML compiler treated: < ul > & lt; marks the beginning of a ColdFusion tag. Did you mean LT or LTE? < /ul >]
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/} hostname:ntc15

    ----------------------------
    I have a similar problem if I use cfcomponent:

    < cfproperty >
    < cfcomponent name = "approved" type = "string" >
    < cfcomponent name = "total_charged" type = "string" >
    < cfcomponent name = "charge_error" type = "string" >
    < cfcomponent name = "renewed_until" type = "string" >
    < cfcomponent name = "reason" type = "string" >
    < cfproperty >

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservices_20.html said
    Note: If the files of the components are not in a directory under the web root, you must create a server web mapping to the directory that contains them. You cannot use ColdFusion mappings to access web services.

    So I tried putting the .cfc file in a directory under my folder wwwroot rather than inside.  That did not help.

    Any suggestions?  I feel that I did exactly what all the documents I can find tells me to do!

    Thank you!

    -Mabel :-)

    We work collaboratively with another company that makes the front-end server, by using the web service, so I need the wsdl show the kind of real data, not just "any", that is using what is 'array'.

    If I use your code (add a name for the echoStatus argument), I get

    How can I tell it a table of _strings_ specifically?

    ColdFusion is loosely typed, so I wonder if we can be so specific in the type of data, without resorting to Java for example. But then again, you will meet soon all sorts of complications. A ColdFusion array and an array of java are 2 totally different things. Run the following code and you'll see why


    #testArray.getClass () .getName () #.

    in any case, because the strings are is a subset of the type 'all', your service includes also the case where an array of strings is returned.

  • How send to an XML web service?

    I am brand new to Flex. I am writing a program that uses web services to send and receive data. I got so that he can receive the XML of the web service. However, I also need to send it, and I'm stuck.

    I tried the following code:

    < mx:WebService id = "MyService".
    "WSDL =" http://localhost/FlexTest/service1.asmx?WSDL "
    useProxy = "false".
    result = "resultHandler (Event)" >

    <!-Entry: XML Document... Output: String->
    < mx:operation name = "HelloPersonAcceptsXmlDocumentReturnsString" >
    < mx:request >
    < personXmlDoc > xmlPerson < / personXmlDoc >
    < / mx:request >
    < / mx:operation >

    <!-Entry: XML node... Output: String->
    < mx:operation name = "HelloPersonAcceptsXmlNodeReturnsString" >
    < mx:request >
    < personXmlNode >
    xmlPerson.Person
    < / personXmlNode >
    < / mx:request >
    < / mx:operation >

    <!-Entry: String (XML Format)... Output: String->
    < mx:operation name = "HelloPersonAcceptsXmlStringReturnsString" >
    < mx:request format = "xml" >
    "< personXmlString > < p1:Person xmlns:p1 =" http://impact-tech.com/schemas/FlexTest "> < p1:ID > f1bd45fc - 544 b-489 d-83cf-349d1f9740ec < / p1: I D > < p1:FirstName > Joe < / p1:FirstName > < p1:MiddleName > c. < / p1:MiddleName > < p1:LastName > kick < / p1:L astName > < p1:BirthDate > 2006-09-11 T 14: 03:04.4755443 - 04:00 < / p1:BirthDate > < p1:IsMarried > < /p1:IsMarried > false < p1" : NumChildren > 0 < / p1:NumChildren > < p1:NetWorth > 100000 < / p1: NetWorth > < / p1: Pers on > < / personXmlString >
    <!-{xmlPerson.toXmlString ()} < personXmlString > < / personXmlString >->
    <!-{txInput.text} < personXmlString > < / personXmlString >->
    < / mx:request >
    < / mx:operation >

    < / mx:WebService >

    In the first operation, 'HelloPersonAcceptsXmlDocumentReturnsString', I try to send an XML object. During the second operation, 'HelloPersonAcceptsXmlNodeReturnsString', I try to send the root node, xmlPerson.Person. In both cases, what is actually sent is literally the text that I put in the node < application >, not the object the text refers. For the first, "xmlPerson" then gets sent to the target, not the XML doc what it refers to.

    In the third operation, I tried three different things, and two are commented. I tried to refer to the XML object using the toXmlString() method, but again, it has literally sent the text "xmlPerson.toXmlString ()". I tried the brace link, but then nothing is sent to the web service. I also tried to build the XML node and with values, but I get an error from the web service saying that it cannot be analyzed because there is an illegal line 1, position 1 character. The only thing that worked was to add a text entry box, copy - paste the exact same structure XML that I tried to build manually and then use binding to the text property of the control InputText. Then it works fine. But I can't actually do, it's just to test.

    So my question is how a < application > node that is part of the web service operation that makes reference to an object and sends the value of this object to the web service, not literally all text is typed into this node. I looked at Web Services and sections of the help data binding and did not see examples on this. Everything was much more simplistic with binding to controls. Can someone help a newbie, please?

    I do not understand how this isn't a matter of Flex Builder, since it has to do with how Flex Builder interacts with web services and how objects are used in the binding in MXML.

    But anyway, I got this code for future reference of someone else to research work in this forum:

    Declare a custom in MXML class has been the key to allow the correct link:


    "WSDL =" http://66.129.123.211/FlexTest/service1.asmx?WSDL "
    useProxy = "false".
    result = "resultHandler (Event)" > "




    {testPerson.GetXmlDoc ()}

  • Creating Web Service - repetition of data structure

    I am creating a Web Service in Coldfusion MX 7, and I'm looking for help on its design.

    The problem is a the called "calculateQuote" of the cffunction 30 < cfargument... > need statements for all the necessary items. To compound things, 10 of these arguments describe insurance as part of the citation and each policy can occur 1 repeatedly. I consider a statement < cffunction... > it is huge.

    As the alternative, is it reasonable to have 1 statement < cfargument... > that contains an xml document that has the entry? It would be strange to do or is - what a "normal way" to write web services that require a large amount of input data?

    Here's what I guess the cffunction would look like...

    "< cffunction access ="remote"name ="calculateQuote"output ="false"returntype ="? ">
    < name cfargument = "xmlQuoteInput" type = ""? "required ="true">"
    ...
    < cfset strucValidate = XmlValidate (ARGUMENTS.xmlQuoteInput, myXSDFile) > <! - validate the XML - >
    < cfset varXMLQuoteInput = XmlParse (ARGUMENTS.xmlQuoteInput) >
    ... and so on
    < / cffunction >

    Thank you!

    Cannot do an arg with xml type if you use a CFC as a web service, it will create not the WSDL properly if you want ColdFusion to do it automatically, and any consumer will know not what to go in it, unless you publish documentation saying exactly what you need.

    You need to use CFCS as types of services Web here:
    http://www.Adobe.com/go/tn_19169 is an example.

    For you, the rough structure in a way to make, it should be (assuming that your real web service would be called WebService.cfc)

    -WebService.cfc
    -InsuranceQuotes.cfc
    -InsuranceQuoteType01.cfc
    -InsuranceQuoteType02.cfc
    ....
    -InsuranceQuiteType10.cfc

    Then you should do the following in the attached code.

    Note the type of [] on the InsuranceQuotes.cfc, this means an array of the types of web service CFC.

    That's the answer rough, more difficult to give more details without examples to hardcode. You might be able to get rid of the intermediate InsuranceQuotes.cfc but for the moment it's the way I'd do it.

Maybe you are looking for