Implementing Asynchronous comm. in WebService & its client

Hi Friends,
I am trying to implement Asynchronous communication between a WebService & its Client. I am using Sun JWSDP 1.6.
My doubts are:
1. Is there any difference in WSDL? If yes, then What?
2. What are the differences in WSDL for
a. Client Call-Back or
b. Polling
3. How to use JWSDP to implement such communication?
Thanx in advance.

Thanks swatdba,
I came to know later that JWSDP 1.6 doesnt have support for Asynchrony, but my concern is about WSDL.
* What needs to be published in WSDL for Asynchronous support in WebService?
* I studied WSDL of an Asynchronous BPEL process. It has
2 Service endpoint definition,
2 Ports and
2 Bindings
- One for Request and the other for CallBack
Can anyone explain me what does it mean? Is there any way to create client for that (other than JAX-WS 2.O)?

Similar Messages

  • How to develop Asynchronous Document Based WebServices?

    Hi gurus,
    The scenario is, We are developing an architecture where Asynchronous Document Based WebServices are desired.
    As per my knowledge, This architecture includes some
    work at JMS side.
    Meaning,
    Client -
    > Calling [WebService] -
    > Deletgate --
    >JMQ (Java Message Queue)
    Would appreciate ur thoughts here...
    Regards,
    Arvind Kugasia [[email protected]]

    Hi Arvind,
    this "pattern" - sending JMS message and performing some long asynchronous tasks in MDB is a standard J2EE way.
    That should be supported by any j2ee server that at least covers J2EE 1.3 (where MDB-s are introduced). That includes the SAP Web AS as well and its JSM and EJB implementation as well.
    The message can be sent from a servlet, web service, etc.
    In fact the classic petstore application released from sun as a model for developing J2EE applications uses MDB-s for that purposes :
    http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/sample-app/sample-app1.3.1.html
    Once you buy the parrot from the petstore, you will see the response page while the MDB will perform asynchonously the sending of the mail, charging of the account, etc.
    It doesn't matter if the front end is a web service or a HTTP UI.
    In addition you can google for any J2EE tutorial and MDB explanation.
    However please note that I am speaking how your application will gather the parameters from the web service call, put them in a JMS message and send the message via several lines of java code.
    Perhaps some other frameworks (Apache-Axis, etc.) are doing this automatically for you or are generating the code that sends the message via some wizard.
    That up to my knowledge is not supported for SAP WebAS, but that is only a 10 lines of code inside the web service body, that can be easily created.
    HTH
    Peter

  • Implement cache coherence with webservice

    Need to implement cache coherence with webservice. The scenario is like
    1) Want tol invoke a webservice with the key like "catalog" which will fetch the value like "catalog is retrieved" for the corresponding key from the cache
    2) The Cache will be inserted with the new value like "new catalog" once the old value is evicted after the value is expired.
    3) Client invokes the web service it should fetch the new value for the key instead of returning null value or old value.
    4) No DB interaction is required i.e
    5) Expirey and refresh ahead is required.
    Please can you please help me in implementing this functionality. If you have any existing code sample could you please provide the same. Its very urgent
    :)

    Please help!!!

  • Can a RMI Server trap an exit event of its client  ?

    Hi all,
    Can a RMI Server trap an exit event of its client ??
    For example
    If I close the client using Ctrl-C, can the Server known what one of its client is closed ??

    You could consider allocating a new remote object per client via some login object. In my book I called this the 'remote session' pattern. That way each client can have its own server-side context, i.e. like an EJB session bean, which can have its own advantages. In fact if you're interested in when a specific client disappears, you must already have some client context so this is a clean solution to that as well.
    Then the session object can use the Unreferenced technique to know when the client has gone away unexpectedly, albeit with a 10 minute delay. This can be tuned via the java.rmi.dgc.leaseValue setting at the server. This works because each session object only has one client.
    If you can't do this and you can't control the client code, I'm not aware of any other solution under RMI.
    Except that as a last resort you could do something really fancy with custom socket factories at both ends that both implement a special ping protocol I suppose, but this is getting pretty hairy and you'd need to understand the RMI wire protocol to make it work.

  • Implement asynchronous web calls

    how java going to implement asynchronous web calls in a java based web service

    Are all of the result handlers getting called?
    Declare fault handlers as well, perhaps that will give you
    more information.
    I call multiple operations against the same WebService
    instance and the same Web Service (implemented in VB.net)with no
    chaining, and have no problems
    Tracy

  • How to pass username/password through WebService proxy client to E-BS.

    Hi
    We are using ADF Webservice proxy client to integrate E-Business suite with ADF. It asks for username/password to access details from E-BS. In the generated webservice XSD file, a method is available with 2 parameters.
    1) SOAP header( Contains Username, responsibility and 2 more fields)
    2) Class object(Nested Object)
    However i didn't find "*Password*" field anywhere in it. Then how can I pass "*Password*" along with username to invoke this method?
    When i checked SOAP, the password is defined like this
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>a
    Thanks
    Raja

    hi Dario
    Thank you for your post. It is really helpful. Now I got stuck with a doubt, in this piece of code
    final Binding binding = ((BindingProvider) servicePort).getBinding();
    List<Handler> handlerList = binding.getHandlerChain();
    if (handlerList == null)
    handlerList = new ArrayList<Handler>();
    They didn't mention properly about "*servicePort*". What object is this?
    I checked in Oracle document, even in that I was not clear with that piece of code.
    public class HandlerWS{ 
    @Resource WebServiceContext ctx;
    @WebMethod()
    public String getProperty(String propertyName) {  
    return (String) ctx.getMessageContext().get(propertyName);
    public class Main {
    public static void main(String[] args) {
    HandlerWS test;
    try {
    test = new HandlerWS(new URL(args[0] + "?WSDL"), new
    QName("http://example.org", "HandlerWS") );
    } catch (MalformedURLException murl) { throw new RuntimeException(murl); }
    HandlerWSPortType port = test.*getHandlerWSPortTypePort*();
    What is this HandlerWSPortType object???. Can you give me little more explanation about it?
    Thanks

  • Is this possible?  -- The servlet itselt has to update all its clients.

    Hi,
    I need to update the values of clients pages , when ever a request to the servlet arrives.
    namely the servlet has to update all its client's HTML pages,when ever a new request is sent from any one of its clients.
    for an example.
    consider the value of a variable A in servlet is 1, initially
    Three pages[b] m1,m2,and m3 are accessing that servlet
    and value of[b] A is displayed in m1,m2 and m3
    if m1 calls the servlet and updates the value of A to 2.
    Then this updation has to be reflected in m2 and m3 also.
    This must not be done by the clients,by refreshing itselt, or by sending a request to the servlet at certain intervals.
    The servlet itselt has to update all its clients.
    Regards
    -John-

    Not having used pushlets myself, but having heard about them many times before, I took a look at the article.
    Interesting. It never closes the connection to the client, so can keep sending additional info. It seems to solve the problem of updating the page. But at what cost?
    When does the "updating" of the page stop?
    How do you know if the user is still alive?
    How many "listeners" will it be able to handle at one time?
    Would the users session expire if they left it on this pushlet page?

  • I got ClassCastException when i use the Webservice Deployeble Client.

    hi, i created a webservice deployeble client. when i use the proxys i got ClassCastException
    here it is my code
    Context ic = new InitialContext();
                   out.println("----1---");
                   Object lookuped =
                        ic.lookup(
                             "wsclients/proxies/sap.com/ClientProxyDefinition/in.mobileone.demo.proxy.WSClientProxy");
                   out.println("\n----2---"+lookuped.getClass());     
                   PortableRemoteObject objPortableRemoteObject=new PortableRemoteObject();
                   out.println("\n---3--
                   Object narrowed =
                        objPortableRemoteObject.narrow(lookuped, AdminOperWS.class);
                   out.println("\n---4--" + narrowed);
                   AdminOperWS service = (AdminOperWS) narrowed;
                   out.println("----5---" + service);
                   AdminOperWSViDocument client = null;
                   ClsSuper objClsSuper = new ClsSuper();
                   String strErrorCode = null, strErrorMessage = null;
                   client =
                        (AdminOperWSViDocument) service.getLogicalPort(
                             "Config1Port_Document",
                             AdminOperWSViDocument.class);
                   out.println("----5---" + client);
                   objClsSuper = client.createUser("2", "lakshman", "lakshman", "ad");
    i got the output:
    1-----
    2-----class in.mobileone.demo.proxy.AdminOperWSImpl
    3----
    java.lang.ClassCastException
    plz send solu...
    Thank U

    Hi Lakshman,
    can you please elaborate how you are calling this web service( where you get the stub?)
    Why are you using these lines?
    PortableRemoteObject objPortableRemoteObject=new PortableRemoteObject();
    out.println("\n---3--");
    Object narrowed =
    objPortableRemoteObject.narrow(lookuped, AdminOperWS.class);
    out.println("\n---4--" + narrowed);
    These are used mailny for CORBA objects( while calling EJBs).
    Just remove these line and try.
    Please do come back with the output.
    Regards,
    Piyush

  • EXCEL VBA: Inserting rows code returns error "2147417848 The object invoked has disconnected from its clients"

    I was executing the following code in Excel 2013 that is linked to a button I use to add multiple rows in a chosen section of a worksheet
    Sub Add_Rows_dc()
    Sheet53.Unprotect ("xxx")
    X = Range("C1").Value + 1 'Section Counter
    Y = ListSheet.Range("I" & X).Value 'Existing rows counter
    Z = ListSheet.Range("H" & X).Value 'Position counter
    Righe = InputBox("How many rows would you like to add?", , "1")
    If Righe < 1 Then GoTo err ' test for invalid row number
    RigheSheet.Rows(X).Copy
    Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
    GoTo Fine
    err:
    Mess = MsgBox("PLEASE INSERT A VALID NUMBER OF ROWS", vbCritical)
    Fine:
    'Formulas update
    Z = ListSheet.Range("H" & X).Value 'Position counter update
    Range("U" & Z - Righe - 2 & ":AF" & Z - 2).FillDown
    Sheet53.Protect "xxx", , , , , True
    End Sub
    From time to time it returns me the error "2147417848 The object invoked has disconnected from its clients" and the debug point out the line
    Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
    I cannot find any specific reason due to the fact that the error seems randomic, sometimes the code is perfectly executed, sometimes not.
    I wrote this piece of code in Excel 2010 and never encountered such problem before reusing it in Excel 2013
    Has someone an insight or a suggestion?
    Thank you very much

    Re:  strange error
    Try it this way...
    (might work, might not)
    Sub Add_Rows_dc_R1()
     Dim X As Double
     Dim Y As Double
     Dim Z As Double
     Dim Righe As Variant
     Dim Mess As Long
        Sheet53.Unprotect ("xxx")
        X = Range("C1").Value + 1 'Section Counter
        Y = ListSheet.Range("I" & X).Value 'Existing rows counter
        Z = ListSheet.Range("H" & X).Value 'Position counter
        Righe = InputBox("How many rows would you like to add?", , "1")
        If Righe < 1 Then GoTo errX  ' test for invalid row number
         RigheSheet.Rows(X).Copy
         Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
        GoTo Fine  
    Fine:
    'Formulas update
     Z = ListSheet.Range("H" & X).Value 'Position counter update
     Range("U" & Z - Righe - 2 & ":AF" & Z - 2).FillDown
     Sheet53.Protect "xxx", , , , , True
    Exit Sub
    errX:
    Mess = MsgBox("PLEASE INSERT A VALID NUMBER OF ROWS", vbCritical)
    End Sub
    Jim Cone
    Portland, Oregon USA
    free & commercial excel programs (n/a xl2013)
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • The object invoked has disconnected from its clients

    Hi
    I decided to take the plunge and update our server and take it up to SP1
    I updated it at weekend and it all seemed fine.
    I could log in and it all seemed wonderful, and I breathed a sigh of relief. Yes.
    Err NO...
    Come in this morning and I cannot remotely log in.
    I go locally to the machine and try to login but get this message "The object invoked has disconnected from its clients"
    I wondered if anyone has encountered this error and managed to fix it?
    Thanks.

    Hi,
    Thanks for your posting in Windows Server Forum.
    Can you able to login successfully after this error occurs?
    Did you try to take the console of server?
    Please try to find out the logs to see if there is any detailed error message during this issue. Also please try to login with admin account and check the result. If this can’t solve, you can try to start with safe boot mode and login into the server and try
    to find some logs related to the issue.
    Hope it helps!
    Thanks,
    Dharmesh

  • Implementing security for a webservice

    Hi,
    I am working on a services app development project where our app/service is going to serve some consumer application requests in the form of JMS or webservice requests. Please let me know what is the best solution to implement security in this scenario? I am looking for answers pertaining to authentication( validating the user/ client app) and authorization(whether the client can make this request).
    Please dont give me the links from java site , unless they are very lucid. Please ... I am looking for straight forward answers in this forum.
    ( I am a microsoft guy moved into J2EE and honestly, i never felt comfortable with the documentation in Sun site to be simple or easily understandable. [no offense intended to j2ee evangelists :) ] )

    I would start with SSL for this and build in application authorization via a handshake listener, provided the SSLSocket is exposed. But you're going to have to look at Java documentation for that, there's no point in me giving you my own version of what it says when it's already documented. I have to say that if you think you're going to get a reliable answer that doesn't cite or quote from official Java documentation, you have very strange expectations, and frankly a very strange way of doing your job.

  • Consume Webservice using Client Proxy

    I wanted to consume the .NET webservice in SAP. I've below question, can anyone clarify me please?
    1. Can we use client Proxy to consume the external webservice? I read in some document that this can be used if we are using XI message interface.
    2. The webservice requires an user ID & password, how can i pass the authentication details to call the webservice if I use the Client proxy?
    Thanks in advance
    BM

    1. Can we use client Proxy to consume the external webservice? I read in some document that this can be used if we are using XI message interface.
    2. The webservice requires an user ID & password, how can i pass the authentication details to call the webservice if I use the Client proxy?
    -> 1) You can configure the server to use its own soap runtime. Check out transaction lpconfig.
    -> 2) You may user transaction sm59 and configure a rfc connection of type HTTP to extenal server. This allows you to pass
             a user/password permanently.
    regards, Stefan

  • Error while sending request to Webservice from Client app on Weblogic

    Hi Everybody,
    As part of web service development and deployment, I created one simple webservice and tried to deploy it on Apache Tomcat 5.5 and then weblogic 9.2. It worked fine on Apache Tomcat but it didn't work on Weblogic. Here are the steps I followed.
    1) Created a webservice within one Dynamic Web project
    2) Created a Client application
    3) Deployed both (by exporting war files from eclipse3.2) on Tomcat Apache locally on the same machine (localhost)
    4) Invoked client in the browser which allows to send simple request (Hello!) to Webservice
    5) Invoked webservice method call from the Client browser window
    6) Received success response back from webservice.
    Then, I deployed same war files on Weblogic 9.2 (different machine on the network)
    - Both got deployed successfully and reached to ACTIVE state on Weblogic and became ready to accept requests.
    - When invoked Client application on the browser, it worked.
    - From that client application browser window, I tried to invoke webservice call, I got the exception as below:
    exception: java.net.ConnectException: Connection refused: connect
    I will greatly appreciate any advice on this. Let me know if more information is needed.
    Thanks in advance.
    Gaurang Prajapati

    Have you given the correct ip or machine name in the client?

  • Could I get result in xml from webservice (my client is java application)?

    Hi,
    I have a client which is a java application to call to my existed webservice and webservice return object result is okie. But I would like to get the result which is wrapped in xml file, not object? Can webservice do that? (If not, I have to wrap the result in xml by hand).
    Anyone who know please help me. Very urgent, I have to have answer in 1 day.
    Thank in advance.

    The result when we call to my webservice is an object which contain data, I don't want to get this object, I would like to gain an equivalent xml instead of object ( I don't know if webservice support this).
    Yes, the last way is convert result java object to xml. But I think web service should support get xml results because client call to webservice is whatever, right?

  • How to set SSL from an Webservice EJB client

    I want to invoke a web service from a stateless session EJB. How do I
    configure Weblogic 9.0/8.1 so that the transport uses SSL? I have a set of
    SSL related properties that I want to set e.g. Client Authentication
    Enabled, Private Key file, Client Certifiicate file etc.
    Note that I am NOT using weblogic native programming (i.e.e jws
    files/controls and annotations) to create the web service client. It is a
    simple EJB that was developed outiside weblogic and runs in the weblogic
    container.
    How do I set the SSL related properties in this case?
    Thanks for any help.
    Shantanu Sen

    You configuring both the server and client side? And how exactly is you're client implemented?
    A bit difficult but basic way to do this is with SSLSocket and giving that the necessary keystore which holds you're client certificate (key) and the server CA.
    Then push you're soap envelope with http-headers up the socket?

Maybe you are looking for

  • Error while trying to change the Column description in Table Control

    Hi, I have created a table control using the wizard in Module Pool. When i try to change the column description of the table control or adjust any other element which is already available on the screen and not in table control. It gives me an error U

  • FCP 7 and FCP X on Same Computer, Problems?

    I am a user of FCP 7 and I want to start to learn how to use FCP X. If I install FCP X on the same computer as I have FCP 7, will there be any conficts or issues? Thanks in Advance Mac Pro 2.66 GHZ Quad -  Core Intel Xeon OS X Lion 10.7 10 GB Ram

  • Are you considering to buy an eReader?

    If you are considering to buy an eReader, as a recent Sony consumer, I suggest you don't! My eReader was bought for me less than a month ago. It was my first eReader and I was incredibly excited so I went out and bought a load of accessories includin

  • How do I uninstall and stop using AirPort?

    Hi All, I've been running AirPort for a year or so to get internet while I had two computers in my home, but I no longer need it as now I only have one. I basically want to stop using the AirPort (uninstall and disconnect it) and just go back to havi

  • Arch is mounting / as read-only post-install

    Okay, so I have no idea what I'm missing (I've done several Arch installs.) Machine is i686, no unusual hardware, and it's had Arch installed on it in the past. I run through the configuration, partitions, packages, etc., and when I reboot, Arch moun