The call to the web service help

Hello

I use a web service to handle validation. I created the web service and it ran OK, but the report still does not found data. I wanted to see what was in the returned collection, I have therefore created a new region with the following SQL:

SELECT CLOB001
OF wwv_flow_collections c
WHERE c.collection_name = 'P37_VALIDATECCSZ_RESULTS. '

This has given in: "Marion 0 true true Wayne 14505 1.0 AddressResponse: Marion, NY 14505/Val = true/Rel = 1.0/INCP = true/Geo = 0 NY true."

The default report is a failure because the response is not XML I think.

I ran the web service in java and it returns:

< soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
< soapenv:Body >
< ns:validateCCSZResponse xmlns:ns = "http://validation.util.oss.paetec.com" >
< ns:return xmlns:ax28 = "http://sag.oss.paetec.com/xsd" xmlns:ax22 = "http://rmi.java/xsd" xmlns:ax23 = "http://io.java/xsd" xmlns:ax21 = "http://client.validation.util.oss.paetec.com/xsd" type = "com.paetec.oss.util.validation.client.AddressResponseArray" >
< ax21:responses type = "com.paetec.oss.util.validation.client.AddressResponse" >
< ax21:city > Marion < / ax21:city >
< ax21:code > 0 < / ax21:code >
< ax21:country / >
Wayne < ax21:county > < / ax21:county >
< ax21: incomplete > true < / ax21: incomplete >
< ax21: incorporated > true < / ax21: incorporated >
< ax21:locClli / >
< ax21:postalCode > 14505 < / ax21:postalCode >
< ax21:postalCodeExtension / >
< ax21:reliability > 1.0 < / ax21:reliability >
< ax21:shortDescription > AddressResponse: Marion, NY 14505/Val = true/Rel = 1.0/INCP = true/Geo = 0 < / ax21:shortDescription >
< ax21: state > NY < / ax21: state >
< ax21:streetName / >
< ax21:streetNumber / >
< ax21: unit xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: Nil = "true" > < / ax21: unit >
< ax21: validated > true < / ax21: validated >
< / ax21:responses >
< / ns:return >
< / ns:validateCCSZResponse >
< / soapenv:Body >
< / soapenv:Envelope >

So, anyone know why the call of APEX web service does not return the XML? I get the values from the XML, but I have no way to analyze to get what I need...
Thank you
-Johnnie

Johnnie:

I slightly changed the basics of Xpath and also changed namespace. Try the following.

SELECT extractValue( value(T), '//city', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) city
,extractValue( value(T), '//county', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) county
,extractValue( value(T), '//incomplete', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) incomplete
,extractValue( value(T), '//postalCode', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) postalCode
,extractValue( value(T), '//reliability', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) reliability
,extractValue( value(T), '//state', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) state
,extractValue( value(T), '//streetName', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) streetName
,extractValue( value(T), '//streetNumber', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) streetNumber
,extractValue( value(T), '//validated', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) validated
FROM TABLE(xmlsequence(extract(XMLTYPE.createxml('




Marion
0

Wayne
true
true

14505

1.0
AddressResponse: /Marion, NY 14505/Val = true/Rel = 1.0/Incp = true/Geo = 0
NY



true




'),'//responses','xmlns="http://client.validation.util.oss.paetec.com/xsd"'))) T

Kind regards

Jason

Tags: Database

Similar Questions

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • Problem with the web service call

    I use ajax with json to call webservice but its not working with the localhost url in the emulator of the ripple. If I use an ip address or external url does not call the webservice.

    I also tried with BlackBerry, webservice does not.

    can someone guide me how to call the Web service?

    Thank you

    Sundaram

    Your file config.xml needs the ip address or the url in the "whitelist".  Use the access for that tag.  for example:

    
    

    The piece above is not secure because it whitelists ALL------* areas.  You can put your url in the uri.

  • Call the web service with Digest authentication

    Hello

    I JDevelper 12.2.4, I need build the java class to call the web service with Digest authentication.

    Any suggestion?

    Refer to:

    http://StackOverflow.com/questions/14896324/consuming-WCF-service-with-Digest-authentication-from-Java

  • How to get the IP address of the calling client to the web service built in Jdeveloper 11.1.1.7 application?

    I built an application of web service in Jdeveloper 11.1.1.7 to be used by other clients. Just the General steps as follows (Server web service Application is generated--> deployed on the server-> used by clients with the location of the WSDL file).

    Now, I met a requirement where I need to get the port number and IP address for the client.

    Questions :

    How to get the IP address of the calling client to the web service application generated in Jdeveloper?

    Commune technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology use to built web service application?

    The common technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology allows built web service application?

    It depends on the option selected during the creation of web services (if I remember correctly, there are several options, style J2EE 1.4 RPC style JavaEE JAX - WS 1.5,...)

    For example, to get the ip address of the compatible with jax - ws web service, you need to inject the context in your service class with:

    @Resource
    WebServiceContext wsContext;
    

    and then inside your method:

    MessageContext mc = wsContext.getMessageContext();
    HttpServletRequest req = (HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST);
    String ip = req.getRemoteAddr();
    

    Dario

  • Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server

    Hello

    Try to call the Web service to oralce pl/sql function

    created a function

    Unable to invoke the web service from the server of the SOA.

    CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as

    Server sys.utl_dbws. SERVICE;

    APPEL_ sys.utl_dbws. CALL;

    service_qname sys.utl_dbws. QNAME;

    port_qname sys.utl_dbws. QNAME;

    response sys. XMLTYPE;

    application sys. XMLTYPE;

    BEGIN

    sys.utl_dbws.set_http_proxy ("hostname: Port'");

    service_qname: = sys.utl_dbws.to_qname ("ns1", "process");

    Server: = sys.utl_dbws.create_service (service_qname);

    APPEL_: = sys.utl_dbws.create_call (server);

    sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');

    sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');

    asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '"); 

    answer: = sys.utl_dbws.invoke (APPEL_, request);

    return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval(); 

    DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");

    -Of return ';

    END;

    Run - the code below:

    Select HelloWorld_WebServices ('Hi') to double;

    Error:

    ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError

    ORA-06512: at "SYS." UTL_DBWS', line 403

    ORA-06512: at "SYS." UTL_DBWS', line 400

    ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74

    29532 00000 - "Java call terminated by eception Java exception: %s."

    * Cause: A mistake or a Java exception has been reported and could not be

    solved by Java code.

    * Action: Modify Java code, if this behavior is not expected.

    Hello

    Fixed the error

    After loading once again of DBA and network provided access files JAR/JVM firewall

    and the correction on the threshold

    Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();

  • TimeoutException - during the web service method call that opens a PDF file

    I am updating a legacy program that uses Adobe Acrobat Professional 7.0.  The idea is that the customer is calling web service methods, which manage open a PDF file, reading or writing in the PDF file, if necessary and closing.  He then returned data (if reading) to the client.

    The only problem with what I'm having is that the client will take a break for about 60 seconds and raise a TimeoutException.

    I know that the method on the end of web services works, because I wrote a quick driver who calls the same method, but it is running normally and works perfectly.

    My question is, basically, what would cause the client to be block/gel during the call to the web service method to perform this operation? Everything works on my workstation, and I've debugged to see that filename passed is the same in both tests.

    Thank you!

    This would be better addressed in the forum of the Acrobat SDK kit.

  • Matter of business for OSB 10.3.1 when to call the web service from SAP ECC 710

    Hello

    1. I was a unit test for a business service that calls a web service from SAP ECC 710 (this service is published directly to a RFC function via SOA Manager module);

    2. the problem is when I use the OSB test console, which generates the request below message:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    the response message is:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header >
    < n0:MessageID = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:n0 >
    UUID:4cbe5b84 - 474 c-9abe-e100-00000ad00164
    < / n0:MessageID >
    < n1:Action SOAP - env:mustUnderstand = "1" xmlns:n1 = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope" / >
    < / soap - env:Header >
    < SOAP - env:Body / >
    < / soap - env:Envelope >


    Above the response indicates that the BS called SAP Web server successfully, but seems that the service did not get the request message.

    3. the Web service can be called successfully through SoapUI. and I checked the soapUI request message; and it can work if I just change the request:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    and I got the right answer:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header / >
    < SOAP - env:Body >
    < n0:Zmmjf503Response xmlns:n0 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    < Recmsg > <! [CDATA [<? xml version = "1.0" encoding = "utf-8"? > < DocumentResponse > < CONDITION > 0 < / STATE > < HTBH > < / HTBH > < MESSAGE > < / MESSAGE > < / DocumentResponse >]] > < / Recmsg >
    < / n0:Zmmjf503Response >
    < / soap - env:Body >
    < / soap - env:Envelope >

    4 it bother me, because the only difference between the above two request messages is the header (one contains a "newline"):
    ------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    -------------------------------------------------------------------------------------------------------------------------------
    VS
    --------------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    ----------------------------------------------------------------------------------------------------------------------------------------

    5 I thought that the SOAP engine should ignore "carriage returns", seems this is a problem of SAP ECC710.

    Do you have someone having this problem? Thank you


    Concerning
    Wen

    Hello Wen,

    I tried to use exactly the same request (carriage return) to call the service through soapUI, and it does not work... just like BS OSB
    should I assume that it is a matter of SAP ECC?

    That same demand also doesn't SOAPUI so certainly it's an issue with SAP ECC. I doubt that SAP ECC is the treatment the carriage return as an end of file marker. Check with support.

    Kind regards
    Anuj

  • Value of clob in wwv_flow_collections of reconciliation after the call to the web service

    After making a call to a web service (created with web service process call assistant), how can I delete the clob001 value in the wwv_flow_collections?

    I created the web service using the [manually create web service tutorial | http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/web_serv.htm#CHDEFEGH].

    Thanks in advance,

    Gus...

    Gus,

    You can also remove the collection completely for good measure:

    apex_collection.delete_collection ('MY_COLLECTION_NAME');

    http://download.Oracle.com/docs/CD/E10513_01/doc/AppDev.310/e10499/advnc.htm#BABGGIDG

    Kind regards

    Jason

  • How to create a generic method that calls the Web Service

    Hi I have a question how to create the Web Service client. In design mode, I can't specify static URLs? WSDL and process.

    I found the briliant method in library of apache cxf.

    for example

    DCF JaxWsDynamicClientFactory = JaxWsDynamicClientFactory.newInstance ();
    Customer customer = dcf.createClient ("http://soabpm-vm:8001 / soa-infra/services/default/MailSender/mailsender_client_ep?") WSDL");

    Object [] results;
    try {}
    Results = clientA.invoke (QName new ("http://xmlns.oracle.com/SynchDSBpel20/MailSender/MailSender", "process"), '@', 'body', 'subject');
    } catch (Exception e) {}


    In my case, I should create a method with params (URL? WSDL, URI, name of operation, param1, praram2, param3)


    Y at - it something like CXF in the ADF library?

    If your question has been answered, can you please mark as answer?
    THX
    Antonis

  • The Web Service of LabVIEW error on restores model ESP

    Hello

    I was hoping that people would be able to help with the following problem:

    I'm currently on the Page Embedded Server (ESP), functionality of the LabVIEW webservices script and keep receiveing an error when you try to view a page.

    I think I put in place the Manager HTTP queries properly - buffered stream with headers

    The correct model is located and used as the page reaches the insertion point variable esp.

    I find that the AddressBook example works fine, unless I try and add an additional variable to the model, then the same error occurs.

    I have attached a sample project which shows the same behavior, and the error is less.

    Tested on LabVIEW 2014 (14.0.1 SP1) 32-bit on 64-bit Windows 7.

    See you soon

    John

    *****************************************************************************************************

    Error-67035 occurred at .vi NI_WebServices.lvlib:Error Converter (ErrCode or status)

    Possible reasons:

    LabVIEW: The Services Web of LabVIEW (Hex 0xFFFEFA25): error in the ESP.

    «"" "String of full appeal:»»"»
    NI_WebServices.lvlib:Error Converter (ErrCode or status) .vi
    NI_WebServices.lvlib:Web Request.lvclass:Render ESP Template.vi
    Test.VI
    Test.vi.ProxyCaller

    *****************************************************************************************************

    Hi John_Neutron,

    I worked on your code today and we managed to reproduce and to fix the error you saw.

    The Web service name ESP file and rendering the page, but it throws the error because the variable you are trying to set was not properly declared. We managed to make the error go away by changing the file text with Notepad like this ESP.

    --------------------------
    <%
    //This is a server side comment
    // Variables:
    var myvariable;
    //
    %>


    This is the test pattern



    It's the body:

    Here's the varaiable


    Variable: @@myvariable


    ---------------------------

    Before, you had / / in front of the variable (making a comment) and you don't have "var" to tell him you have said anything (it's all in the 4th line). Without the appropriate statement, the code generates an error when it is called.

    Vsenior

  • deploy the web service to xp embedded

    Hi all

    I struggle to run a web service on an xp embedded system. The web service works very well in my LV 2011 development environment and I have created an installer for my main application it is the lvws file is included as described in web services FAQ:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7747#toc12

    After the installation on the target computer, I can't access the web service. Also if you call localhost:3580, then I get an access error.

    But in the System Control Panel administrative tools, I can see that the server system OR like many Web server OR Web applications are started.

    For further investigation, I added the 'Distributed System Manager' to my Installer. With this tool, I see that all my web services deployed on my development system, but on the XP embedded system with TEN target is listed.

    I installed my application for a professional reference XP system to exclude that the problem is caused by embedded XP. But the behavior is exactly the same. So far, I tested only local so that settings security like firewalls and ports system should pose no problems. But to be sure I have disabled the firewall without success... I can't access the Web service. I have often found the suggestions in the forum to check if the web service is enabled. But I am not already and then access to http://localhost:3580.

    Any ideas?

    Thank you!

    This help document is somewhat outdated.

    You see 2 different problems: 1) you can not display the Configuration utility and do not install Web using localhost:3580 2) your web service monitoring.

    For the first number-->

    You probably did not understand the "Interface Web NI 2011 infrastructure" in your Setup program.  The doc to help you mentioned does not tell you to do, because it is not necessary for your web service works. However, if you want to change one of the settings of your web server after the installation, you will need this extra setup program.

    For the second question-->

    You probably didn't get your Spec to build Web services as a source file in your Setup program.  The help doc says to put your LVWS file as your installation source, but this is not correct. You must include the technical article to build real web service as a source file (not the web service create out of spec files, like LVWS).

    Let me know if any of these will help you.

    -Jared

  • How to use the web service to update the data?

    Hi team,

    Need help in establishing a procedure for updating data using the web service, in the first instance, I think that it's the same reading webservice but I will produce an error:

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    using this tag soap_request.

    < ns1:Request >

    < ns1:header >

    < ns1:InterfaceName > OSMMVNECreateOrder < / ns1:InterfaceName >

    < ns1:InterfaceId > OSM - XXX < / ns1:InterfaceId >

    < ns1:CorrelationId > TEST-06262015 < / ns1:CorrelationId >

    < / ns1:header >

    < ns1:Mvno > MTI < / ns1:Mvno >

    < ns1:orderId > < / ns1:orderId >

    < ns1:orderType > CHANGE_STATUS < / ns1:orderType >

    < ns1:orderDetails >

    < ns1:subscriberId > 9469273 < / ns1:subscriberId >

    < ns1:newStatusId > 2 < / ns1:newStatusId >

    < / ns1:orderDetails >

    < / ns1:Request >

    the < ns1:subscriberId > 9469273 < / ns1:subscriberId > the Subscriber must search and

    < ns1:newStatusId > 2 < / ns1:newStatusId > will replace the current state.



    any suggestion on how to do it?



    Best regards

    Nelz Ki

    There is no difference between calling a web service to write data, against the appellant for reading data. SOAP is SOAP. He cares not.

    Example to interact with a web service is in Re: PLSQL webservice call

    Regarding your error - stack display Tower full of error to see what said the trace of the error. The data you've posted unfortunately no sense to isolate the error.

  • By using the web service ActionsService to load the account data

    Hello

    We are looking to automate the loading data of an EPM - HFM Application accounts.

    We wre able to charge through the front-end server. About Automation, we were able to configure GOSA strategies for the web service, create the native user in console weblogic and import and use the public key of client web service proxy.

    The URL of the wsdl file that we ask is http://192.168.50.21:7363 / oracle-EMP-fm-Web services/ActionsService? wsdl

    The method we are trying to call is iActionsService.loadData ("clustername", "name the Application", "E:\\testpad\\Hyperion\\data\\DATA.txt", null, ",", DataLoadMode.MERGE, false, false);

    The errors below are found in the file log immediately after the race. Please help us find what needs to be done in the setting of these errors. Are we sending the right params to the web service?

    Do we still need to make other changes to weblogic/em to make this work? Please suggest.

    Oracle EPM-edition of Fusion

    version - 11.1.2.4.0.79

    Thank you and best regards,

    Guna

    Newspapers, we find that

    We might be able to connect to the application - Session is created with the Session id: 5e95de6f-e828-4121-8765-36c186e72355

    An unexpected error has occurred-

    oracle.epm.fm.common.exception.HFMException: EPMHFM-65536: an unexpected error has occurred.

    at oracle.epm.fm.common.exception.ExceptionHelper.handleException(ExceptionHelper.java:45)

    at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:281)

    Error EPMHFM-65925

    java.lang.NullPointerException

    at org.apache.thrift.protocol.TCompactProtocol.writeString(TCompactProtocol.java:325)

    at oracle.epm.fm.thrift.protocol.TMultiplexedProtocol.writeString(TMultiplexedProtocol.java:112)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10236)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10152)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args.write(LoadExtractHandlerService.java:10087)

    at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.send_loadData (LoadExtractHandlerService.java:639)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.loadData (LoadExtractHandlerService.java:629)

    at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:269)

    at oracle.epm.fm.actions.LoadDataAction.execute(LoadDataAction.java:100)

    at oracle.epm.webservices.fm.ActionsService.LoadData(ActionsService.java:315)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    Post edited by: 2837182

    Got it working now.

    Case of a brain freeze. The data file must be located on the server.

  • Access to the Web Service API

    Hello

    I try to access a web page API in the APEX, but still get an error in the ACL.  I tried everything I can think of as well as the multitude of usual information "bits and pieces", which I found on the web.

    USER who needs access to the ACL and the fact that it is an https site makes a difference for settings?

    I can return data from SqlPlus without problem.

    FOR INFO.

    Oracle 11g

    APEX 5

    W2008.

    Pointers would be appreciated!

    Thank you

    Hi Samuistu,

    Samuistu wrote:

    Basically, what I want to do is to download data in a table to a Web site.  A good example of the type of data is here https://www.cryptopia.co.nz/api/GetCurrencies

    Is it possible to get this data into a table that contains the Id column headers, name, etc. of symbol.

    Assuming that you have a table as follows:

    create table crypt_currencies (
      id number,
      name varchar2(128),
      symbol varchar2(8),
      algorithm varchar2(128)
    );
    

    Finally with regard to the features to get the web service data and insert them in the table, for that you can do something like this:

    declare 
    
        l_response clob;
        l_values apex_json.t_values;
        l_data_count integer;
        l_crypt_curr_rec crypt_currencies%rowtype;
    
    begin 
    
        l_response := apex_web_service.make_rest_request (
                            p_url          => 'https://www.cryptopia.co.nz/api/GetCurrencies',
                            p_http_method  => 'GET',
                            p_wallet_path  => 'file:path/to/oracle/wallet',
                            p_wallet_pwd  => 'password' );
    
        apex_json.parse (
            p_values => l_values,
            p_source => l_response );
    
        if apex_json.get_boolean (
              p_values => l_values,
              p_path  => 'Success' ) then
            dbms_output.put_line('Success --> true');
        end if;
    
        dbms_output.put_line ( 'Data Members Count --> '||
                                apex_json.get_count (
                                    p_values => l_values,
                                    p_path  => 'Data' )
                              );
    
        l_data_count := apex_json.get_count (
                            p_values => l_values,
                            p_path  => 'Data' );
    
        for i in 1 .. l_data_count loop
    
            l_crypt_curr_rec := null;
    
            dbms_output.put_line ( 'Id --> '||
                                apex_json.get_number (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Id',
                                    p0      => i )
                                ||', '||
                                'Name --> '||
                                apex_json.get_varchar2 (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Name',
                                    p0      => i )
                                ||', '||
                                'Symbol --> '||
                                apex_json.get_varchar2 (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Symbol',
                                    p0      => i )
                                ||', '||
                                'Algorithm --> '||
                                apex_json.get_varchar2 (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Algorithm',
                                    p0      => i )
                              );
    
            l_crypt_curr_rec.id := apex_json.get_number (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Id',
                                      p0      => i );
    
            l_crypt_curr_rec.name := apex_json.get_varchar2 (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Name',
                                      p0      => i );
    
            l_crypt_curr_rec.symbol := apex_json.get_varchar2 (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Symbol',
                                      p0      => i );
    
            l_crypt_curr_rec.algorithm := apex_json.get_varchar2 (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Algorithm',
                                      p0      => i );
    
            insert into crypt_currencies
                values l_crypt_curr_rec;
    
        end loop;
    
    end;
    

    NOTE:

    • The code above is for purposes of example, if you use it make the necessary changes.
    • Dbms_output calls are given for the purpose of debugging. You can remove that in the actual code.

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for

  • OfficeJet Pro 8600. How can I configure default printer 2 faces to avoid the re-creation of each print job?

    You need to change the default value of the print side single 2-sided print OfficeJet Pro 8600 running on iMac OS X 10.6.8? I can print 2 sides but don't know how to do as a default value. Need help.

  • Pavilion g7 2272ed drivers...

    Hello I was wondering if someone could help me find the correct drivers that I always miss...the drivers, I still need are:Ethernet controller.SM-buscontrollerUSB controllerUSB controller Thank you.

  • Windows 10 compatibility with applications developed in LabView

    We have deployed several applications developed in LabView that are running OK under Win7 and Win8.x. Are there problems of known incompatibility with 10 Windows and applications created with "LV2012 SP1 that read data from cards NiDaq". We should wa

  • FPGA device

    I use a PCI-7833R FPGA, I know that it uses an FPGA virtex II FPGA, but I want to know the exact FPGA device used.  See the attached table.  Where can I find this information?  I want to use the same thing with a 9148 with a Spartan II as well.  Than

  • Bundle of Web authentication on a WLAN controller integrated Catalyst 3750

    We have set up a wifi zone based on a few 1131AG access points and a few Cisco 3750 integrated WLAN controllers. We are now trying to use web authentication for our comments area. No problem by defining a WLAN of COMMENTS and the associated VLAN. We