Download Programming WebLogic Web Services
Transcript
Impl emen ti ng We bLo gic We b Ser vic es write the business-logic code for the Java implementation class to make the Web Service behave as you want. It is assumed that you have read and understood the design issues discussed in Chapter 4, “Designing WebLogic Web Services,” designed your Web Service and that you know the types of components you need to create. Note: BEA recommends that you implement your Web Service operation with only a stateless session EJB or a Java class, and not with a JMS consumer or producer. In most of the book, it is assumed that your Web Service is implemented with either an EJB or a Java class. All JMS-specific information is in its own chapter: Chapter 16, “Creating JMS-Implemented WebLogic Web Services.” Examples of Implementing WebLogic Web Services WebLogic Server includes examples of implementing WebLogic Web Services in the WL_HOME/samples/server/examples/src/examples/webservices directory, where WL_HOME refers to the main WebLogic Platform directory. For detailed instructions on how to build and run the examples, open the following Web page in your browser: WL_HOME/samples/server/examples/src/examples/webservices/package-summary.html Implementing a WebLogic Web Service: Main Steps The following procedure describes the high-level steps to implement a WebLogic Web Service. Later parts of this document describe the steps in more detail. Although some of the steps are mandatory, others are optional, depending on the type of Web Service you are implementing. 1. Write the Java code for the back-end components that make up the Web Service. See “Writing the Java Code for the Components” on page 5-3. 2. If you need to process information in the SOAP request or response or directly access the SOAP attachments, create SOAP message handlers and handler chains. See Chapter 12, “Creating SOAP Message Handlers to Intercept the SOAP Message.” 3. If your back-end components use non-built-in data types as parameters or return values, generate or create the Java code for the data type as well as the serialization class that converts the data between XML and Java. See “Implementing Non-Built-In Data Types” on page 5-5. 5-2 Programming WebLogic Web Services
Related documents