Web Services Implementations

Hi All,
So is the web service technology really happening? 4 yrs down the line i really haven't seen much of it. Anyone out there has a better experience? Is there really a future for webservices over HTML (not applets). Looks like it's going the good old way of pure form submissions to JSPs/Servlets.
Any take on this....
Albert.

The stub generation approaches I was referring to are all implementation decisions on the part of the J2EE product provider. You'll need to refer to the documentation of your J2EE implementation to find out how to invoke your client code, and what, if any, tools need to be run.
Kenneth Saks
J2EE SDK Team
SUN Microsystems

Similar Messages

  • Web Service Implementation Heavily Based on The Singleton Pattern

    Dear all
    I have recently joined a project that is 2/3 through development of a medium sized application providing synchronous and asynchronous implementations for a number of Use Cases exposed as Web Services. The design is one that I have not come across before and am keen to understand.
    Web Service calls enter the application through a singleton, which in other respects is a POJO. This class manages a number of instance variable references to other classes responsible for implementing each Web Service method, including data access using Hibernate. Since the top level singleton class is, well, a singleton, I understand this to mean that all of the other classes maintained as instance variables will themselves only ever have one object instantiated (assuming of course that no other thread of execution instantiates them except our singleton WS entry point). To my way of thinking this turns the whole of the Web Service implementation into a kind of singleton application. This strikes me as a procedural programming idiom that happens to be implemented using Java, since Objects with state are not being used. I have not yet asked the question "why?" of my new colleagues but I would like to ask you what the consequences of this design are likely to be. Particularly considering that this application will be expected to handle concurrent servicing of Web Service requests - and so be thread-safe. Can it be thread safe? Are there likely performance implications? Forgive my ignorance is what I describe known as a Singleton Web Service?
    Regards
    David

    Web Service calls enter the application through a
    singleton, which in other respects is a POJO. I'm confused about this sentence. Is the application somehow separate from the web service? Is the application acting as a service to this web service? How is the application being hosted? Does it run in a container as well?
    This
    class manages a number of instance variable
    references to other classes responsible for
    implementing each Web Service method, including data
    access using Hibernate. If all the references are stateless, preferably interfaced-based, you aren't likely to have thread issues.
    Since the top level
    singleton class is, well, a singleton, I understand
    this to mean that all of the other classes maintained
    as instance variables will themselves only ever have
    one object instantiated (assuming of course that no
    other thread of execution instantiates them except
    our singleton WS entry point). To my way of thinking
    this turns the whole of the Web Service
    implementation into a kind of singleton application.You keep using web service and application. Are we just talking about a web service implementation here?
    This strikes me as a procedural programming idiom
    that happens to be implemented using Java, since
    Objects with state are not being used. You are correct, sir. If services are stateless, and they should be, then they aren't exactly rich objects with state and behavior. It's very procedural, indeed.
    I have not
    yet asked the question "why?" of my new colleagues
    but I would like to ask you what the consequences of
    this design are likely to be. Particularly
    considering that this application will be expected
    to handle concurrent servicing of Web Service
    requests - and so be thread-safe. Can it be thread
    safe? If the web service is indeed stateless, then it should be thread-safe.
    Are there likely performance implications?Maybe. Best to measure if those arise to see if the web service is the cause.
    Forgive my ignorance is what I describe known as a
    Singleton Web Service?I don't know if it's been given a pattern name. If it's a Singleton, then that's true. If it's a service, that applies. If it's deployed on the web, I'd say the label fits.
    %

  • OAAM web services implementation class for WebSphere 6.1

    Hi All,
    My client is running OAAM 10.1.4.5 and looking to migrate to WebSphere 6.1. I'd like to replace the (default) Apache Axis web services implementation class with a custom-built WebSphere 6.1 implementation class. Does anyone have any code they'd been willing to share?
    Regards,
    Steven

    It is may be because BO is not ready for Java 2 and you can find more info about readyness of applications at
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/csec_rsecmgr2.html
    I am not sure if BO is prepared for the very fine-grain access control programming model that Java 2 security is capable of enforcing.
    May be some one from PG should be able to answer readyness of BO with Java2.
    -Gokul.

  • Need Web Service implementation tutorial on SOA11g with weblogic 11g AppSer

    Hi Experts,
    I am new to webservice topic. I don't know ABCD of web service, but i got a task to implement webservice and need prepare xsd file to move 3 fields information from source system to target machine.
    Note: Target system have webservice to capture 3 fields information but I need to prepare a web service to capture 3 fields information from log file (normal text file) through web service (from source system and later link same to target web service).
    My task is to implement web service at source system to fetch 3 fileds data from log file and link to target machine web service.
    Can any one help me out any basic information on it and apreciate if any one provide practical tutorial on web service creation using SAO 11g and weblogic 11g application server.
    Thanks,
    Phani

    thanks you for your response and tutorial.
    I need some more help, can you please help me out how to read data from log file to webservice
    Note: Log file have a xml content but it is saved as .log file thru an third party application. Third party application does not have capability to store log file as xml but it istoring has .log file (normal text file) with XML content.
    If you have any sample code, please provide the same
    Thanks,
    Phani

  • Is there an Web Services implementation (JSR172) for Pocket Pc?

    Hi,
    I'm currently using IBMs J9 MIDP2.0 jvm but can't seem to figure out where to find an web services (jsr172) implementation for PocketPC. Does it even exist? Does IBM provide one?
    I have tried to update WSDD, and this way I managed to download Web Services, bur for x86 and Palm only.
    I've also downloaded the reference implementation from Sun, but this is said to support CLDC 1.0.4 only, stability is not guaranteed on CLDC1.1.
    Thank you,
    Regards Andreas

    It's not an easy question to answer. So many other variables.
    Mac or PC, high speed cable versus lower connection speeds. Network traffic and the speed of your server also play a big part in your visitors experience.
    Add to those your desire to play back a file type that requires the viewer to have a very fast computer. I'd guess that less than a third of the computers in use can properly play most HD files (even the small sized ones).
    Your Mac is a monster! What you view on it isn't close to what I would see on my Mac mini.
    I would suggest you first figure out a display size of your file. Think small.
    I (personally) would avoid H.264 unless you know your target audience would only be using "high end" equipment. Hard to pick your audience for a Web based file.
    There are html "tricks" that can change the display size of your source movie. If you used a 480X360 (4:3 aspect) source you could "bump up" the display to 800X600 without too much loss in visual quality. Those "tags" are scale="tofit" and the to fit size is your height and width used in the html code (not the source file). Saves bandwidth and gives a better user experience.
    Since your file will be "downloaded" (not streamed) you could instruct your visitors to do some other work while your file downloads. Neck stretches, clean their monitor or pour another cup of coffee.
    If your goal is HD your visitors must know that these files are huge and that they take a very modern computer with plenty of horsepower.
    Your only other option is to reduce the file to more "standard" definition.

  • Python Web Services Implementation?

    Has there been any python implementations of the iTunes U Web Services? I was checking out rtunesu ( http://wonderfullyflawed.com/2008/09/12/itunes-u-via-ruby/ ) and was curious if any python equivalent has been developed.
    Thanks!

    Hi Jason,
    There's a little more to it than that I'm afraid.
    To upload a file to Apple (either XML or audio/video/PDF content), you have to POST a multipart MIME form. What you have will POST, but what you're missing is the multipart MIME.
    This is an example of the kind of thing you need to do:
    http://code.activestate.com/recipes/146306/

  • Kerberos-Web Services Implementation

    I 'm working on a Java Web Services project. I need to implement a Kerberos Security System for my project. I dont want to use WS-Security, so everything should be coded from scratch. I have to code two servers, TGS and AC, and then use JAX-RPC handlers to transform/encrypt the SOAP messages between the client and the servers.
    I've searched google but I didn�t found any similar implementation.
    I�ve searched the forums and didn�t find anything really helpful.
    Can someone please help me out?

    Didn't know this was a fucking advetisement agency...

  • Web Services Implementation

    I wish to use some Web Services from sites like www.xmethods.net. Is there any "to the point" tutorial available to do the job with Java?
    Plz reply if anybody has used "or consumed" web services with java from any of such sites.
    [email protected]

    You should take a look at JAX-RPC, which specifies how the WSDL's you find at places like xmethods map to Java. Consuming a web service from e.g. xmethods is typically quite easy and can be done with just a few lines of Java code.
    You can use the JAX-RPC reference implementation from http://java.sun.com/xml/jaxrpc or any of the commercially available implementations, e.g. jBroker Web from Novell from http://www.silverstream.com/Website/app/en_US/JBrokerWeb.
    - Bjarne.

  • How to get original message in web service implementation and proxy

    Hi,
    We have a java web service and its client (proxy) generated from WSDL by JDev wizards. All the parameters are mapped to classes, but we need a way to get the original message we send and receive in order to log it.
    Is there any way to get the SOAP message that is being sent/received?
    Thank you

    If you are using 10.1.3 or later releases, you can use the JAX-RPC handler to gain access to the message. Your SOAP payload can then been manipulated using the SAAJ APIs. You have also the option to log messages directly from OWSM.
    Best,
    -Eric

  • Stateful web service implementation in Flex 2

    Hello Gurus,
    We are trying to invoke a web service located on a remote
    server using MXML to create a purchase order. One of the
    requirements is that we pass a cookie from our end to this web
    service for authentication and session management purposes. Can
    anyone throw some pointers on passing cookie information to
    webservices from MXML or ActionScript?
    A little bit of research resulted in the following link:
    http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Parts&file=rpc_26.html
    An extract from the above document states the following:
    "Stateful web services
    Flex uses Java server sessions to maintain the state of web
    service endpoints that use cookies to store session information.
    But unfortunately there are no examples on how to pass the
    cookie information itself. Any pointers are appreciated . Thanks
    much!

    This issue caused me much confusion and delay, so I hope that what I am about to say is correct.  When Flex calls a web service that requires a stateful connection, the web service "cookie" is stored in the browser.  Flash automatically attempts to access this cookie value, and returns it to the web service when additional web service operations are called.  The cookie value will be placed in the "Request Headers".
    A couple issues that gave me fits:
    1.  Safari browser on Mac had default "/preferences/Privacy/Block cookies" set to "From third parties and advertisers".  This was preventing the cookie from being sent.  I had to change this setting to "never".
    2.  I work inside the Flash API.  Testing my movie never passed the cookie value back, and I have not figured out how to do this when compiling for Flash Player.
         - NOTE: I am able to test compiling as an Adobe Air App just fine.  I did this to get my web service calls/parsing of returned info correct first.  Cookie issue and Cross Domain issues are not issues in Adobe Air, so I find this is a good place to get the web service working.  After working compiling as Adobe Air, switch to compile for Flash Player to fine tuning other issues.
    3. Cross Domain issues.  Lots of posts on this.  Pay close attention.
    Thanks!

  • Web Service  implementation and consumer in different version

    Currently we have a Web Service which is written in J2EE 5 and this web service are consumed by Web Application written in 1.4
    We are using SOAP for connection and JAXB API for parsing. We could like to know if there is any issue which could arise because of the difference in the version of the JDK used by the consumer?
    Assuming that there is a reverse communication happening between J2EE 1.4 and J2EE 5 what are the issue which could arise?
    Edited by: Sanu Sasidharan on Apr 11, 2011 5:31 AM

    If understand the question correctly, the versions of Java used by the server & client are irrelevant.
    A Web service can be consumed even by apps written in another language (C++, for example). The only requirement is that the client send requests to the correct address, and that requests be valid according to whatever XML schema the service uses.

  • What is the most up to date implementation of web services in Java?

    I'm completely new to web services and just got confused. I installed Sun App Server 9 Update 1 Patch 1 and successfully deployed some simple web services with it. Later I found sth that is called Web Services Developer Pack 2.0 but it can't use Sun App Server 9 as a container ... and requires the older version (8.1 as far as I can remember). Does it mean that JWSDP 2.0 is out of date ... and Sun App Serv 9 has bult-in web services implementation?
    Please can anyone highlight me this subject?
    Thanks!
    Artur

    ok ... just answering my own question ;)
    that's what I found on sun's website:
    the Java Web Services Developer Pack will no longer be developed as a discrete release vehicle for the Web services and XML technologies that the Java WSDP shares with Project GlassFish.
    The current release of Java Web Services Developer Pack, Version 2.0, contains the new JAX-WS 2.0 EA, JAXB 2.0 EA, and SAAJ 1.3 EA implementations, the "integrated stack" for Web services. These components are now available as FCS-quality releases in Project GlassFish.
    as far as I know ... correct me if I'm wrong ... Sun App Server 9 is based on Proj Glassfish.

  • Implementing Web Services in Lodestar

    Dear all,
    I'm trying to implement Web services using the Lodestar suite.
    In particular, what I am trying to do is to implement a Web service that executes a Rate Schedule procedure.
    The idea is to receive an XML message in input, perform some logic within the Rate Schedule, and then produce an XML in output.
    Currently, I am able to register the Web service into the Lodestar environment and let clients to invoke it.
    Upon the receive of a message, the proper Rate Schedule is executed and an output XML message is produced.
    Unfortunately, what I am not able to do is to pass the content of the input message of the Web service to the Rate Schedule.
    Do you know how to solve this issue?
    Thanks in advance
    Enrico

    Sorry for such a late reply. There were few architectural changes coz of which web service implementation was taken outside OAE app. So, I was unable to get the debug output.
    Still, I would be interested in knowing the possible root cause of the issue and a possible solution.
    Thanks
    Shruti

  • Implementing Web Service with Stateless Session Bean

    I have a web service that I've built using the WorkSpace Studio tools (create a WSDL, generate the Java code from the WSDL, fill in the skeleton methods in the service implementation class). This service is deployed as a web module within an EAR to WebLogic Server 10.0 and is working great as a web service.
    I'd like to be able to also call the operations on this service via an EJB interface (from a different application on the same server). I followed the guidelines for adding EJB annotations to the web service implementation class (from [http://edocs.bea.com/wls/docs100/webserv/jws.html#wp215790]). I added the @Session annotation to the class, implemented javax.ejb.SessionBean, and added the ejbXXX() methods. This all makes perfect sense, and looked like it was going to work. However, WorkSpace Studio now gives me a compile error on the class that says "EJB backed WebServices are not supported."
    A few internet searches for that error didn't return anything relevant.
    It seems like I followed the instructions correctly. Is there a better way to build a service like this that is both a web service endpoint and a stateless session bean?
    Thanks!
    -Eric

    Having separate EJB and web modules certainly makes things easier, but I have non-trivial (i.e. not feasible to copy) application logic that I'd like to expose with both a bean interface (for intra-application usage) and a web service interface (for public consumption).
    I've tried starting with a "web application" WorkSpace Studio project and adding bean annotations. This produces the error I originally described. I also tried starting with an "EJB" WorkSpace Studio project and adding web service annotations. This fails at deployment time with errors about missing web service descriptors (the error is correct - the web-service-related descriptor elements are missing from the deployment descriptors).
    The documentation explicitly presents this as an option (annotating a class with both web service and session bean annotations), but how does one actually make this work?

  • Implement the web-service API on an external service desk

    Hi,
    I want to implement the web-service API on an external service desk
    system.
    I am working with the IMG and got to the point where I define a logical
    port. At this point I need the web-service to be implemented on the
    external system.
    I have web-service API documentation and also read note 962383 - but I
    did not find any specific instructions how to implement the web-service.
    Can you assist me with documentation for the web-service implementation
    on external system procedure?
    or if someone can share a step-by-step - it would be great.
    Thanks,
    Shelly

    Hello Shelly,
    Please use the following link to Read a blog Service Desk Implementation Guide Part II
    Service Desk Implementation Guide Part II
    This blog describes the following.
    1) Integrate New data in the Service Transaction
    2) Implement new action: send mail to creator on message modification.
    3) Configure an interface to an external service Desk
    4)Implement a new action that send the message to the external system and change automatically the status.
    Hope it helps.
    Cheers,
    Satish.

Maybe you are looking for

  • List View selecting wrong record

    Hi all, I have placed a List view on my dashboard. i am using direct connection with BI and am populating the list view with the data retrieved from the connection. the problem is that when i launch the dashboard and select a record from the list vie

  • Get Process Order List Based on Date Range and Order Status

    Hi all, Iam using BAPI_PROCORD_GET_LIST to get the entire list of Process Orders based on selection criteria as plant. However I have noticed that there's no selection option to get records between start and finish times neither does any option exist

  • Aging Analysis

    Hi, I want to do Aging Analysis in Payables by currency after revaluation. The report available after revaluation gives invoice details etc but in functional currency. I want by Currency and With Aging Is any report available in 11 or 11i. Thanks & R

  • IVI-C in TestStand

    Hello, at the moment Im using the evauation version of TestStand 4.0 if it suits my demands. I have seen in the "Insertion Palette" the IVI-C steps. Whith them it should be possible to connect to a DMM or Scope or... So i installed the  IVI Complianc

  • Enhance Lead Search Criteria

    Dear Friends, Our requirement is to bring Creation date(Created On) field in the search criteria of the Lead search(meaning we should be able to search the leads based on the creation date). For this we created an enhancement in the BSP WD Workbench.