Can a web service query a database at set intervals?

Can someone verify if this is feasible?
I need to display live data via browsers .  I would like to have the query to the database executed server side and have the web service provide the data to the browsers.
Here is what I propose :
I would like to have a web service run on a web server for an intranet.
Have the web service  query a database every 20 seconds and update the data into a table or an array variable. 
On the browser side I want the browser to refresh every 20 seconds with the updated data from the web service.
Any other recommendations would be greatly appreciated.
Thank you.
Chris W.

Hi ChrisTW1,
Thank you for posting in MSDN forum.
Based on your issue, I suggest you can try to use the JS to call the web service to set the intervals. For more information about how to use the JS to call the web service to set the intervals, please see:
http://www.codeproject.com/Tips/647322/Calling-ASP-NET-Webservice-using-JavaScript-on-Reg
In addition, since
this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. If you have any issues about the set the
intervals for the web service, I suggest you can post this issue directly to the WCF forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf, maybe
you will get more help.
Hope it help you!
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • SMS web service in PLSQL(Database)

    hi all
    any one can help me to call this web service in PLSQL(Database)
    URL :=*http://IP../SMS_web_service?WSDL*
    Function 1: login
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <Login xmlns="http://tempuri.org/">
    <UserName>username</UserName>
    <Password>password</Password>
    </Login>
    </soap:Body>
    </soap:Envelope>
    Function 2: Send SMS
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <SendSMS xmlns="http://tempuri.org/">
    <xmlData> SMS Info (Message text + Mobile No.)</xmlData>
    <token>'_Function 1 (result)_ '</token>
    </SendSMS>
    </soap:Body>
    </soap:Envelope>
    Thanks

    Have the short version here: http://www.liberidu.com/blog/?p=1249, with demo script here: http://www.liberidu.com/blog/images/demo02.sql
    The longer one here: Re: Using utl_dbws to call web service
    It should give you a start how to set it up, I guess...
    Edited by: Marco Gralike on Jul 21, 2009 11:01 PM

  • How to call web services from oracle database 10g

    Hi all ,
    How can i call web services from oracle database 10g ?
    thanks ...

    abdou123 wrote:
    but how can i get complex result
    for example
    i pass input parameter like National Id Number
    and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
    An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}.

  • Siebel CRM Web services query limit 100 rows

    Hi everyone,
    A have an little problem here.
    I need get accounts, contacts and oportunitys from Siebel CRM in clound using SIEBEL web service query methods BUT this web service allow me only 100 rows per query and I need more because at this moment I am using ODI interfaces for load XML response file into database tables and ODI don´t have an loop and so on...
    My question is:
    Is possible eliminate this limitation in administrative painel or something like?
    Thanks in advice..
    José Rodrigo
    Edited by: user7286844 on 27/09/2011 14:07

    What version of Siebel are you using? There was a bug in some versions when session management was used but it worked okay in other scenarios, e.g., when the user id and password were passed in the URL. This bug (id 12-1KXYCJ7 and 12-1KXYCJ7) has been fixed (more than once by the look of it). I have not noticed the same in 8.1.1.1.

  • How Can I find SQL Query in Database

    Dear Experts,
    How Can I find SQL Query in Database.

    Hi,
    U mena what query got executed in db? u can try V$SQL for it.
    Regards
    Bharath

  • Can a Web Service be Consumed from within JSX

    Hi all,
    In CS5, can a web service be consumed from within JSX, and if so - how?
    TIA,
    mlavie

    Kris,
    Thanks! Exactly what I needed!
    mlavie

  • Is posible built web services on oracle8i database

    I want to know if is possible built web services over Oracle8i database and what tool i need

    Grrr....still not working....I couldn't really get it to work under 8.1.7 or even 9iR1 as the SOAP code depends a lot on XMLTYPE (I assume it's possible to work around, but I don't have the time).
    I installed 9iR2 and then created a general purpose database....I then had to do a initxml.sql at xmltype was still not installed with the database; xml loaded but complained about dbms_registries (is this important?).
    I then coded up the required soap utility code as described in the article, essentially I used the demosoap package, but renamed it to edmssoap.
    I coded up my invokation function/package...tried running it and got this...
    SQL> exec dbms_output.put_line(price_service.get_contract_price('10761', '4', '2002-08-13'));
    -- I turned this on for debugging in my code...
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body>
    <calculateContractPrice xmlns="http://mpzarde.palmtreebusiness.com:6060/edms/"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <param0 xsi:type="xsd:int">10761</param0>
    <param1 xsi:type="xsd:int">4</param1>
    <param2 xsi:type="xsd:string">2002-08-13</param2>
    </calculateContractPrice>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1222
    ORA-29270: too many open HTTP requests
    ORA-06512: at "EDMS.EDMSSOAP", line 76
    ORA-06512: at "EDMS.PRICE_SERVICE", line 13
    ORA-06512: at line 1
    On OC4J console I got this...
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
    at com.evermind.server.http.EvermindServletOutputStream.flush(EvermindServletOutputStream.java:261)
    at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:462)
    at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    My wsdl is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="PriceCalculationWebService" targetNamespace="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <documentation>WSDL for Service: PriceCalculationWebService, generated by Oracle WSDL toolkit (version: 1.0)</documentation>
    - <types>
    <schema targetNamespace="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.xsd" xmlns:tns="http://com.palmtreebusiness.edms.web.service/PriceCalculationWebService.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
    </types>
    - <message name="calculateContractPriceInput">
    <part name="param0" type="xsd:int" />
    <part name="param1" type="xsd:int" />
    <part name="param2" type="xsd:string" />
    </message>
    - <message name="calculateContractPriceOutput">
    <part name="output" type="xsd:double" />
    </message>
    - <portType name="PriceCalculationWebServicePortType">
    - <operation name="calculateContractPrice">
    <input message="tns:calculateContractPriceInput" />
    <output message="tns:calculateContractPriceOutput" />
    </operation>
    </portType>
    - <binding name="PriceCalculationWebServiceBinding" type="tns:PriceCalculationWebServicePortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    - <operation name="calculateContractPrice">
    <soap:operation soapAction="urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService/calculateContractPrice" />
    - <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService" />
    </input>
    - <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService" />
    </output>
    </operation>
    </binding>
    - <service name="PriceCalculationWebService">
    - <port name="PriceCalculationWebServicePort" binding="tns:PriceCalculationWebServiceBinding">
    <soap:address location="http://localhost:6060/edms/priceCalc" />
    </port>
    </service>
    </definitions>
    And my invoking function is:
    CREATE OR REPLACE PACKAGE BODY price_service AS
    FUNCTION get_contract_price(contractkey IN VARCHAR2, productkey IN VARCHAR2, evaldate IN VARCHAR2) RETURN NUMBER IS
    req edmssoap.request;
    resp edmssoap.response;
    BEGIN
    req := edmssoap.new_request('calculateContractPrice', 'xmlns="http://mpzarde.palmtreebusiness.com:6060/edms/"');
    edmssoap.add_parameter(req, 'param0', 'xsd:int', contractkey);
    edmssoap.add_parameter(req, 'param1', 'xsd:int', productkey);
    edmssoap.add_parameter(req, 'param2', 'xsd:string', evaldate);
    resp := edmssoap.invoke(req, 'http://mpzarde.palmtreebusiness.com:6060/edms/priceCalc',
    'urn:com-palmtreebusiness-edms-web-service-PriceCalculationWebService/calculateContractPrice');
    dbms_output.put_line(resp.doc.getstringval());
    RETURN edmssoap.get_return_value(resp, 'output', 'xmlns="http://mpzarde.palmtreebusiness.com/edms/"');
    END;
    BEGIN
    utl_http.set_persistent_conn_support(TRUE);
    END;
    What am I missing? Do I need to grant port or something?
    TIA,
    Marty

  • SOAP web service: query parameter?

    Hi guys,
    I'm a newbie when it comes to web services and I've hit a problem that I didn't expect. I've exposed several SOAP services using the JAX-WS and WebLogic which are working fine. I've tried implementing an access key security mechanism such as Amazon does by adding a filter in front of the service's handling servlet to check for an access key sent as an HTTP query parameter. So basically, the service that was exposed at the following URL:
    http://localhost/company/service
    must now be accessed using the following URL:
    http://localhost/company/service?accessKey=123
    The filter checks the accessKey parameter and short-circuits the request if the wrong access key is sent.
    While this approach works well with JAX-RS web services, it doesn't seem to be working as well with JAX-WS web services: adding the parameter makes WebLogic return a 404 error instead of processing the request. I'm convinced I've seen web services being called with query parameters and that this can be done, but I don't see how. Any ideas anyone?
    Cheers!

    It seems that the servlet generated by Workshop doesn't handle extra parameters too well. I've managed to get it working by tweaking the filter so that it lets WSDL retrieval requests pass through but still filters the other requests. Everything is working fine.

  • Consuming a web service from the database

    Hello,
    We have 10.2.0.2.0 database,oas 10.1.3.0.0, jdeveloper 10.1.3.
    We have to call our webservice deployed to the OAS from the database. The webservice is deployed and works fine (we can call it from a java application).
    The web service itself and the client proxy have been generated by the jdeveloper.
    The proxy has been loaded to the database and wrapped into a plsql package function using Jdeveloper "Load java and stored procedure deployment profile".
    When we run the function we receive the following error:
    calling http://z0001-app0821-s.hodc.ad.allstate.com:7779/amcddout_dvlp/DDRequesterWSSoapHttpPort java.lang.NoClassDefFoundError      at HTTPClient.HttpURLConnection.<clinit>(HttpURLConnection.java:166)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.createConnection(HttpSOAPConnection.java:697)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:347)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:796)      at java.security.AccessController.doPrivileged(Native Method)      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:149)      at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)      at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(Unknown Source)      at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)      at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)      at com.amc.dd.ws.test.runtime.DDRequesterWSSoapHttp_Stub.sendMessage(DDRequesterWSSoapHttp_Stub.java:77)      at com.amc.dd.ws.test.DDRequesterWSSoapHttpPortClient.sendMessage(DDRequesterWSSoapHttpPortClient.java:42)      at com.amc.dd.WsTest.callWS(WsTest.java:12)
    Has anybody had the same problem?
    Thank you
    Kate

    Hi, I've dropped and reloaded all jars, and it started to work.
    Just in case someone else is struggling with the same problem, here is our configuration:
    10.2.0.2.0 database,oas 10.1.3.0.0, jdeveloper 10.1.3.
    Here is the command I've used to load the libraries:
    loadjava -u %CONN_STR% -r -v -f -genmissing -s -grant public %ORACLE_HOMEj%\soap\lib\soap.jar %ORACLE_HOMEj%\lib\dms.jar
    %ORACLE_HOMEj%\jlib\javax-ssl-1_1.jar %ORACLE_HOMEj%\j2ee\home\lib\servlet.jar %ORACLE_HOMEj%\j2ee\home\lib\mail.jar
    %ORACLE_HOMEj%\j2ee\home\lib\activation.jar %ORACLE_HOMEj%\j2ee\home\lib\http_client.jar
    %ORACLE_HOMEj%\j2ee\home\lib\ejb.jar %ORACLE_CALLOUT%\dbwsclientws.jar %ORACLE_CALLOUT%\dbwsclient
    And here are the priviledges that must have been granted to the user:
    dbms_java.grant_permission( 'myuser', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    dbms_java.grant_permission( 'myuser', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' )
    dbms_java.grant_permission( 'myuser', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' )

  • Can "SPML Web Service Complex Data Type field" take multiple values ?

    In Generic Technology Connector's -SPML design parameters section, Can we give multiple values in SPML Web Service Complex Data Type field?
    If not, how can i call methods directly instead of calling them through a values of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type?
    I need 'SPML Web Service Complex Data Type' to hold multiple values.And based on the request it has to initiate appropriate method of action.
    Presently i have three methods add,modify and delete which i am calling through a single value of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type.
    I want to replace this single value with multiple menthods , so that a direct interaction between the method,OIM and target can be established.
    Edited by: 821054 on 16/02/2011 04:23

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Invoke Web Service in 9i database using UTL_HTTP

    I am trying to explore Oracle's UTL_HTTP package to invoke external web service without having to use java stored procedure. I downloaded a demo scripts from OTN web site (http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html) and bumped into problems when invoking it.
    select * from book_quote
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "APPS.DEMO_SOAP", line 71
    ORA-06512: at "APPS.BOOK_SERVICE", line 13
    I checked the wsdl at the given website and it's valid. Is the database machine unable to connect to the internet? If so how can I enable it?
    Can anyone help?
    Thanks,
    Tom

    Hi,
    You need to use Adaptive Web Service Model for that.
    Check the tuorial in the link for accessing web services.
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16
    Regards
    Pankaj

  • Specifying multiple books in WS2 web services query

    Hi,
    I am wondering if anybody has managed to use web services to query data and restrain by more than 1 book of business. According Oracle Support this can be done though the use of searchspec to determine the Book. I have tried this with no success
    Here is a SOAP message with just a single Book reference. It returns no results?
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <ContactQueryPage_Input xmlns="urn:crmondemand/ws/ecbs/contact/">
    <ListOfContact xmlns="urn:/crmondemand/xml/Contact/Query">
    <Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58')"><Id />
    </Contact>
    </ListOfContact>
    </ContactQueryPage_Input></soap:Body></soap:Envelope>
    For multiple books the searchspec would be
    <Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58') AND ([BookId] = 'AHIA-N3S76')"><Id />
    Any guidance is appreciated.
    Edited by: user10730659 on 11-Nov-2012 20:59

    Hi Christina,
    Thanks for your response. I had a typo in my initial description the searspec should have read:
    <Contact searchspec="([ContactFirstName] = 'John') AND (([BookId] = 'AHIA-N3S58') OR ([BookId] = 'AHIA-N3S76'))"><Id />
    Have you been able to specify the BookId in the searchspec successfully?
    I dont get an error thrown just no results returned - when I just specfiy 1 book. I normally set the book Id in the query but when using multiple books this won't work, hence why I am looking to use the searchspec...

  • Can MDM Web Services pull rich content?

    Is it possible to pull images, PDF's and other rich content out of MDM using web services?  We are attempting to find the best method to front the information from our MDM repository to a Ecommerce website.  This is a non-sap website built on .NET 4.0 framework so .NET API's did not work since SAP only supports .NET 3.5.
    What options should we consider to retrieve our catalog data to an external site?
    Thanks in advance

    Hi Klimek,
    I don't think current MDM web service support rich content retrieval, you have to use kinds of API to implement this function. Considering the fact your .NET framework doesn't work, you can try to encapusulate this part of function into  the web service by using JAVA API, and deploy the customized web service onto the relevant server.
    I'm not sure whether we could retrieve the binary data from database level, anyway you can take a try.

  • Ann: Web Services Enable your Database

    This article, published by the Web Services Journal, will give you an overview on how to turn your database into a web services provider and consumer
    http://otn.oracle.com/tech/webservices/content.html
    Kuassi

    Hi Noyesbox,
    Have you updated the firmware on your printer so the firmware datecode shows version 20110826?
    You can find the download, if needed, here.  After selecting an operating system you will see a firmware option with the download and directions.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Which versions of Oracle can consume web services

    Hi there,
    We have many versions of Oracle ranging from 7.3.4 to 9.2.0.4 and are looking at them talking to a central app via a web service. Does anybody know whether the following versions can consume a web service
    7.3.4
    8i
    9i has a utl_http package which seems to be the method used in one example I have. This package also exists in 8i but I don't know whether it can be used for web services in that version.
    Any help would be much appreciated.
    Thx
    Gary

    Pl define "compatible" and "support up to that version" - if you are planning to use database links, then either version (XE or SE) will suffice. Pl note that XE cannot be patched and that functionality is limited - Oracle® Database Express Edition

Maybe you are looking for