Distributed web service.  What technology to use?

Hi all,
I need advice on what technology, architecture and platforms to use for the following:
I have 1 thousand remote clients. These clients must receive notifications from my server on certain events that happen specific to that client.
I would like to create a web based application that the client can log into and then whenever the specific event occurs it must show on his/her screen - I don't want the web page to refresh every 10 seconds and check a database (or some variable on the server) to check for the event. I want the server to send a message to that persons browser notifying them of the event.
What is the best way to do this?
Regards,

Sounds like applets would do the job. Will require installation of the JRE on clients.
One problem: applets can open socket connections only to the computer from which they were loaded. Unless you sign them. If there is a web server sitting at port 80, where do you put the push server... A hack is to use port 443 (HTTPS) for the push. 80 and 443 are probably most often open in firewalls.
If a user has a proxying firewall no push scheme will get through. There may be other push-unfriendly firewall schemes too, such as forcefully closing all connections after a few minutes' timeout.
Also - If I could have a java app/applet on the client's machine -
what is best practice to maintain a thousand connections if I
use sockets? (usually I spawn a thread for new sockets, but
I surely can't do that with 1000 clients?)1000 threads is indeed a bit on the high side. If the client never sends anything back you could simply not read from the sockets in the server. No need for per-client threads then. If you need to read use a NIO selector. I'd probably code a selector even if I didn't need to read from the clients, just for cleanliness.

Similar Messages

  • What Web Services Strobe Media Playback Uses.

    HI,
    Am I posting correct question or I am wrong
    Does strobe media playback uses any web service.
    If it uses or not please let me know .

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

  • What web service & xml will be used for deleting the packged epub/pdf file from Admin Console

    What web service & xml will be used for deleting the packged epub/pdf file from Admin Console?
    I am able to delete the files from Admin console directy but not able to get which web service is calling on deleting the file from admin console:
    Mangal

    Hi Jim,
    I tired following web service and xml to delete the packaged ebook but it is giving me error instead of response:
    Web Service & XML
    http://myserver_url/admin/ManageResourceKey
    <request action="delete" auth="builtin" xmlns="http://ns.adobe.com/adept">
    <nonce>" . $nonce . "</nonce>
    <expiration>'. $expiration .'</expiration>
    <resourceKey>
    <resource>resource_id</resource>
    <resourceItem>1</resourceItem>
    </resourceKey>
    </request>
    Error Message
    <error xmlns="http://ns.adobe.com/adept"
    data="E_ADEPT_DATABASE http://myserver_url/admin/ManageResourceKey
    Cannot%20delete%20or%20update%20a%20parent%20row:%20a%20foreign%20key%20constraint%20fails %20(`adept`.`distributionrights`,%20CONSTRAINT%20`distributionrights_ibfk_2`%20FOREIGN%20K EY%20(`resourceid`)%20REFERENCES%20`resourcekey`%20(`resourceid`))"/>
    Magal Varshney

  • Error while calling .svc web service from pl/sql using utl_dbws

    Hello Folks,
    I am calling a .svc web service from pl/sql using utl_dbws and encountering the following error
    javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    Can you help me find what am I doing wrong?
    Thanks
    Rk

    Hi,
    Here are the details
    1. What version?
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    2. What error message ... we need the full and complete error stack not your interpretation of it.
    ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Messag
    3. "I am calling means what?" We need the full and complete statement showing the values of all parameters.
    The input to the web-service is a xmltype containing address information and the web-service returns a string
    CREATE OR REPLACE FUNCTION get_id
    RETURN VARCHAR2
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.CALL;
    l_wsdl_url VARCHAR2 (32767);
    l_namespace VARCHAR2 (32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return VARCHAR2 (32767);
    BEGIN
    l_wsdl_url := 'http://test.com/test.svc?wsdl';
    l_namespace := 'http://test.org/';
    l_service_qname := UTL_DBWS.to_qname (l_namespace, 'SName');
    l_port_qname := UTL_DBWS.to_qname (l_namespace, 'BasicHttpBinding_ISName');
    l_operation_qname := UTL_DBWS.to_qname (l_namespace, 'Iden');
    l_service :=
    UTL_DBWS.create_service
    (wsdl_document_location => urifactory.geturi
    (l_wsdl_url),
    service_name => l_service_qname
    l_call :=
    UTL_DBWS.create_call (service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname
    l_xmltype_in :=
    SYS.XMLTYPE
    ('<IdenRequest xmlns:i="http://www.w3.org/XMLSchema-instance" xmlns="http://test.org/SNameIden.WCFService">
    <address />
    <zip>12345</zip>
    <state>AA</state>
    <street>W Test </street>
    </address>
    </IdenRequest>'
    l_xmltype_out :=
    UTL_DBWS.invoke (call_handle => l_call,
    request => l_xmltype_in);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    l_return := l_xmltype_out.EXTRACT ('//Iden/text()').getstringval();
    RETURN l_return;
    END;
    /

  • SWA: Web Services call with attachment using 10.1.3 preview?

    Has anyone managed to figure out how to invoke a web service with an attachment (using SWA, SOAP with Attachments) with the new 10.1.3 preview release?
    Or are there any samples/documents that can point me in the right direction on how to do this?
    Thanks!
    ....Andrzej

    Finally got 10.1.3 installed, and sure enough, there is an example for the use of SWA (SOAP with Attachments), both as client and as server.
    But the notes say it won't run with Oracle Lite DB. Makes me wonder why?
    Kinda sucks, since that is what we're using for our proof of concept. <sigh>

  • 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

  • A user that consumes a Web service is authorized to use then in BackEnd?

    Hello,
    I need to help me please
    Can you validate that a user that consumes a Web service is authorized to use this service?.
    I mean, I have a backend system, which has an RFC, which we published in PI as Web Services, and a third application consumes it with SOAP Adapter. How I can check that the user is consuming the service is authorized (role / profile) in the backend to run this service?
    I searched SAML, but I will not check certificates, I need to check that the user is authorized in the backend, do I need IDM?
    Thanks in advance.

    Hello,
    Please go to back end system and see the authorization profile of the user consuming the service. He must have SOAP Run time aurhorization for object S_SERVICE for the specific service. Also, the user needs application authorization for the underlying RFC call.
    Thanks,
    Venu

  • How to deploy and debug java web service in eclipes or using any other soft

    Hai,
    can any one tell me how to deploy and debug java web service in eclipes or using any other software.
    i have used tomcat web server and jdk1.4.0 to develop web service.
    we have used web service to interact with MS outlook .
    bye
    sudhakar.m

    Hi Sudhakar,
    If you are used to working with ant then you can very well use eclipse to deploy your web service.
    You would usually have the ant script in the source root working directory. From eclipse if you select the build file from the navigator view and right click you will see a run ant option in the pop up menu.
    Select that option and you would be able to see each targets with a checkbox select option. So define each target maybe one for wsdl2java conversion, one for compilation and one for deploying your web services. You can either make all of them run by having depends option on or you can run them individually as it takes your fancy.
    I am not sure about debugging a web service yet.
    Hope this helps
    Aviroop
    The truth is out there? Does anyone know the URL?

  • RESTful Web service in ECC without using netweaver gateway

    Can anyone explain how to create RESTful Web service in ECC without using netweaver gateway?

    Hi,
    Follow this link.
    Mobilize ALV Reports - Part 1 Create RESTful service

  • Using credentials with a web service -- what our my options?

    Hi All,
    I'm trying to determine what options I have in regards to
    setting credential requirements on my web services. The two options
    seem to be:
    -Basic authentication
    -SOAP header authentication.
    I see that the WebService class has a "setCredentials"
    method, but I haven't had much success with it. Here's the
    documentation reference:
    http://livedocs.adobe.com/labs/flex/3/langref/mx/rpc/AbstractService.html#setCredentials()
    It says: "Set the credentials for the destination accessed by
    the service ... Note that services that use a proxy or a
    third-party adapter to a remote endpoint will need to
    setRemoteCredentials instead."
    Great, I'm not using a proxy, so I figured it would work. I
    thought I would try it with SOAP header auth. I setup a simple
    ASP.NET web service that users SOAP header auth, and decided to
    test it out. Attached is my complete MXML (I also tried using SSL).
    The Flash player threw the following error:
    [MessagingError message='Authentication not supported on
    DirectHTTPChannel (no proxy).']
    at mx.messaging.channels::DirectHTTPChannel/setCredentials()
    at mx.messaging::ChannelSet/setCredentials()
    at mx.messaging::MessageAgent/setCredentials()
    at mx.rpc::AbstractService/setCredentials()
    at SoapHeaderAuthenticatedServicesTest/handleLoad()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractService/dispatchEvent()
    at mx.rpc.soap::WebService/
    http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc.wsdl::WSDLLoader/private::checkLoadsOutstanding()
    at
    mx.rpc.wsdl::WSDLLoader/mx.rpc.wsdl:WSDLLoader::resultHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at private::DirectHTTPMessageResponder/completeHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    at [io]
    Interesting -- "Authentication not supported on
    DirectHTTPChannel (no proxy)" -- but the docs made it sound like
    that's precisely when you were to use setCredentials. If using a
    proxy, you would use setRemoteCredentials.
    So... what's up? How do I use setCredentials? And is it for
    use with SOAP header authentication, Basic authentication, or
    something else?

    quote:
    Originally posted by:
    pete
    ...Other times you see operations requiring credentials in
    SOAP headers...
    Pete
    This is what I'm currently pursuing. I did not have much
    success with Basic authentication (didn't work at all in IE, and,
    as you mentioned, even in browsers where it worked, if the
    username/password is wrong, the Flex UI can't intercept the login
    failure, and the user gets that ugly login popup).
    But, I'm not having much success. Here's what the SOAP
    request *should* look like, for my test web service that uses SOAP
    headers for authentication. I used a Visual Studio generated proxy
    class to make this call, and it returned the expected data from the
    web service (i.e., the SOAP authentication worked).
    <?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:Header>
    <AuthHeader xmlns="
    http://intranet/WebServices/">
    <UserName>TestUser</UserName>
    <Password>TestPassword</Password>
    </AuthHeader>
    </soap:Header>
    <soap:Body>
    <HelloWorld xmlns="
    http://intranet/WebServices/"
    />
    </soap:Body>
    </soap:Envelope>
    Now, I want to set this up in Flex as well. Here's what I
    tried:
    // Called when the WSDL is finished loading
    public function handleLoad(event:Event):void{
    var qName : QName = new QName( "
    http://intranet/WebServices/",
    "AuthHeader" );
    var authXml : XML = <AuthHeader>
    <UserName>TestUser</UserName>
    <Password>TestPassword</Password>
    </AuthHeader>;
    var auth : SOAPHeader = new SOAPHeader( qName, authXml );
    service.addHeader(auth);
    service.HelloWorld();
    No errors are thrown by Flex, however, the SOAP
    authentication fails (I get the expected "access denied" response
    from the web service). I used Wireshark to see what traffic was
    being sent back and forth, and this is what I see for the request
    from Flex:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:s="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header></SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <tns:HelloWorld xmlns:tns="
    http://intranet/WebServices/"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Emphasis mine. Note that the SOAP header is empty -- what's
    going on?

  • What is needed to develop web services with DI Server using C #?

    Hi,
    What is needed to develop web service using DI Service ad C#?
    Does anyone have any examples?
    thanks,
    Willian

    Login C# sample
    u2018 Create Service WebReference
    LoginWebRef.LoginService loginService = new LoginWebRef.LoginService();
    // service command login call
    string sessionID = login.Login(
    "localhost",
    "COM_OBS_AUT_TEST",
    LoginWebRef.LoginDatabaseType.dst_MSSQL2005, true,
    "sa", "xx",
    "manager", "manager",
    LoginWebRef.LoginLanguage.ln_English, true,
    "localhost:30000");
    Business Partners add C# sample.
    // Create Service WebReference
    BPWebRef.BusinessPartnersService bpsService = new
    BPWebRef.BusinessPartnersService();
    // MsgHeader class
    BPWebRef.MsgHeader msgheader = new BPWebRef.MsgHeader();
    msgheader.SessionID = DIServerSessionID;
    msgheader.ServiceName = MsgHeaderServiceName.BusinessPartnersService;
    msgheader.ServiceNameSpecified = true;
    bpsService.MsgHeaderValue = msgHeader;
    // fill business partner class
    BPWebRef.BusinessPartner bp = new BPWebRef.BusinessPartner();
    bp.CardCode = "MyBPCardCode";
    u2026
    // service command call
    BPWebRef.BusinessPartnerParams bpParams = bpsService.Add(bp);

  • What web service client library to use?

    I am creating a standalone Java application (NOT a web server), which will be a client to a remote server via SOAP web services. I need this to run in Java 1.4, and I need to keep the app small (hopefully <1 megabyte). Axis is too big - it's around 5-8 megs with all the dependencies.
    Isn't there some simple way to do this with just the classes built into the JDK? If not, then 1) why not? and 2) what third party lib can I use without bloating the size of my application?

    You were right and I was wrong on the size of Axis - it is 2.2 megabytes for version 1.4. I should have checked more carefully before posting. OTOH, it's 15.5 MB for version 2.
    Neither one is suitable for my purposes, however. My code is around 200K and is downloaded in a browser: it seems really lame to increase that by an order of magnitude just so that I can access a web service.
    I'm working on BCScomputer's tip of using JWSDP; 100K for client jars would be OK with me.
    .Net, Cocoa, and AppleScript all have very easy-to-use built-in support for client access to SOAP Web Services. I'm somewhat surprised that it's this much work to create web service clients in Java; for all the hype surrounding Java and Web Services, this should be build into the JRE. It seems really silly to me that I'm downloading and expanding this 60 meg monster (JWSDP) to do the same thing as 3 lines of AppleScript.

  • What technologies to use in web based application...??

    Hi,
    I have to develop a web-based application that will be used to display configured tests to user as well will allow user to add new tests and modify/delete already configured tests. What technologies shall i use to develop this application. And what will be fast to learn.
    What is your opinion on applet-servlet approach here.
    Please suggest.
    Thanks,
    Deepak

    What you've got sounds good.
    If you're not going to build EJBs then you probably don't need JBoss.
    Tomcat is the servlet engine for JBoss so you're getting the same thing but lighter by just using it.
    The important thing is to make sure you have a nice separation of concerns. If you separate all of the database access by creating data access objects (DAO) objects that return plain old Java objects (POJO) then you can, if you choose, easily swap in Hibernate or another ORM Tool.

  • What Web service client does Omniportlet use?

    Does the omniportlet uses direct SOAP calls for Web service or use AXIS calls??
    Thanks
    JO

    Hello,
    As you may know OracleAS / JDeveloper has its own Web Service runtime and set of Tools. Omniportlet uses the Oracle AS Web Service Client API and WSDL tools to invoke dynamically SOAP based Web Services.
    I am curious to know why are you asking this question? Do you have specific requirements?
    Regards
    Tugdual Grall

  • Web Services - What is the right strategy to follow?

    Hi,
    I want to consume web services directly into the database, the application is all to be within the database no website or clients. Based on the calls to the external provider I then want to be able to send request back. I want to use pl/sql inside the database as opposed to java.
    I have the wsdl file and jdeveloper has generated quite a lot of java objects based ont this. This is about as far as I have got. I read somewhere about loading java web services client directly into the database.
    Any guidance would be appreciated.
    Thanks David

    Hi Sunil,
    Thanks for the link, I also found what I think is a pretty up to date solution at:
    http://www.oracle.com/technology/pub/articles/mensah_dws.html
    I am sure this is possible all in jdeveloper but to many wizards, frameworks and options that you could want!
    Regards
    David

Maybe you are looking for

  • Exception HELP

    I have just began a second start at JAVA and I am having issue creating an exception that works..i have an app that will accept grades...average them...and if someone puts a value over 100 it should thorw an exception...or under 0 it should..i cant g

  • Do I need a convertor/transformer?

    I am moving from the UK to the USA in a few weeks and note that the voltages in the two countries are different. I bought my MacBook in the UK but I have an apple two pin plug to connect my MacBook to a wall socket in the US. Do I also need some sort

  • PowerBook G4 install error message

    Hello I've got another thread about the nightmare that is installing this **** OS here on a PowerBook in this forum. But, I just got a new error and I think that it deserves its own thread. Background: Installing 10.5, PowerBook G4, 1GB RAM. Hard Dri

  • IPhone 4 won't turn on when plugged into computer nor charger

    My refurbished iPhone 4 has the latest iOS 5.1.1 update and my mom's computer has iTunes version 10.6.3.25. However, recently it has been having issues holding a charge and now as of yesterday it won't turn on period. When it does it's only for a spl

  • Ssl comms in applet to stunnel server

    I'm using j2sdk1.4.2_08 in windows xp. I'm trying to do SSL comms in an applet to a 'stunnel' server. I followed all the useful directions I could find, but I keep getting 'No trusted certificate found' at the SSLStartHandshake statement. Running as