![]() Use the annotation to specify the method in the JWS file that will handle the potential failure of an asynchronous operation invocation. Because the operation invocation did not wait for a response, a separate method in the JWS file must handle the response when it does finally return similarly, another method must handle a potential failure. When you invoke, from within a JWS file, a Web Service operation asynchronously, the response (or exception, in the case of a failure) does not return immediately after the operation invocation, but rather, at some later point in time. Specifies the method that handles a potential failure when the main JWS file invokes an operation of another Web Service asynchronously. The following example shows a simple JWS file that uses both standard JSR-181 and WebLogic-specific JWS annotations, shown in bold: ![]() The documentation in this section lists the level to which you can target each annotation. Some annotations can be targeted at more than one level, such as that can be targeted at both the class- and method-level. You can target a JWS annotation at either the class-, method- or parameter-level in a JWS file. This chapter provides reference information about both of these set of annotations. The JWS annotations you can use in a JWS file include the standard ones defined by the Web Services Metadata for the Java Platform specification (JSR-181) as well as a set of WebLogic-specific ones. A JWS file is an ordinary Java class file that uses annotations to specify the shape and characteristics of the Web Service. It contains the Java code that determines how your Web Service behaves. The Java Web Service (JWS) annotated file is the core of your Web Service. In this programming model, you create an annotated Java file and then use Ant tasks to compile the file into the Java source code and generate all the associated artifacts. The WebLogic Web Services programming model uses the new JDK 5.0 metadata annotations feature (specified by JSR-175). ![]() WebLogic-Specific JWS Annotations Reference.Standard JSR-181 JWS Annotations Reference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |