Building WebLogic Server RPC Web Services 03/02/04
Roadmap <ul><ul><li>Definition of a WLS Web Service </li></ul></ul><ul><ul><li>WLS Web Service architecture </li></ul></ul...
Definition of a WLS Web Service <ul><ul><li>Service oriented technology or architecture </li></ul></ul><ul><ul><li>Web bas...
WLS Web Service Architecture <ul><ul><li>Implemented by a WLS provided servlet in front of the service </li></ul></ul><ul>...
WLS Web Service Architecture, contd. © 2002 BEA Systems, Inc.
WLS Web Service Architecture, contd. © 2002 BEA Systems, Inc.
WLS Web Service Architecture, contd. © 2002 BEA Systems, Inc.
Ant Tasks for Building WLS Web Services <ul><ul><li>BEA provides several Ant tasks that can be used to create a WLS Web Se...
servicegen Ant Task <ul><ul><li>Converts Java class or SS EJB into a web service </li></ul></ul><ul><ul><li>Creates web-se...
autotype Ant Task <ul><ul><li>Used for support of non-built-in datatypes </li></ul></ul><ul><ul><li>Generates the serializ...
clientgen Ant Task <ul><ul><li>Used to build client side jar file for invoking the web service </li></ul></ul><ul><ul><li>...
wsdlgen Ant Task <ul><ul><li>Used to generate a WSDL file from a web service EAR file </li></ul></ul><ul><ul><li>Available...
web-services.xml DD <ul><ul><li>Found in WEB-INF in the web service WAR file </li></ul></ul><ul><ul><li>Configures the WLS...
Web Service Example <ul><ul><li>Stateless Session EJB component </li></ul></ul><ul><ul><li>Uses non-built-in datatypes </l...
Q & A © 2002 BEA Systems, Inc.
© 2002 BEA Systems, Inc. The E-Commerce Transactions Company™ www.bea.com
© 2002 BEA Systems, Inc. Bill Kemp Developer Relations Engineer BEA Systems Inc. [email_address]
Upcoming SlideShare
Loading in …5
×

RPC Webservices Bea User's Group March 2004

607 views

Published on

An overview of building RPC based web services

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
607
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

RPC Webservices Bea User's Group March 2004

  1. 1. Building WebLogic Server RPC Web Services 03/02/04
  2. 2. Roadmap <ul><ul><li>Definition of a WLS Web Service </li></ul></ul><ul><ul><li>WLS Web Service architecture </li></ul></ul><ul><ul><li>Ant Tasks for building WLS Web Services </li></ul></ul><ul><ul><li>web-services.xml </li></ul></ul><ul><ul><li>Example of a stateless session EJB converted to an RPC style webservice </li></ul></ul><ul><ul><li>Q & A </li></ul></ul>© 2002 BEA Systems, Inc.
  3. 3. Definition of a WLS Web Service <ul><ul><li>Service oriented technology or architecture </li></ul></ul><ul><ul><li>Web based and accessed over HTTP or HTTPS </li></ul></ul><ul><ul><li>Described and invoked by XML, WSDL, XML Schema, SOAP, JAX-RPC, UDDI </li></ul></ul><ul><ul><li>Service is implemented by a Java class or a stateless session EJB </li></ul></ul><ul><ul><li>Runtime is implemented by a servlet </li></ul></ul><ul><ul><li>Is not a WLW Web Service, yet </li></ul></ul>© 2002 BEA Systems, Inc.
  4. 4. WLS Web Service Architecture <ul><ul><li>Implemented by a WLS provided servlet in front of the service </li></ul></ul><ul><ul><li>Servlet filter chains may be added to enhance the handling of the request and response </li></ul></ul><ul><ul><li>Service implementation is a Java class or a stateless session EJB created by the service provider </li></ul></ul><ul><ul><li>Leverages the WLS Web Container </li></ul></ul>© 2002 BEA Systems, Inc.
  5. 5. WLS Web Service Architecture, contd. © 2002 BEA Systems, Inc.
  6. 6. WLS Web Service Architecture, contd. © 2002 BEA Systems, Inc.
  7. 7. WLS Web Service Architecture, contd. © 2002 BEA Systems, Inc.
  8. 8. Ant Tasks for Building WLS Web Services <ul><ul><li>BEA provides several Ant tasks that can be used to create a WLS Web Service </li></ul></ul><ul><ul><li>Some of the tasks also have command line equivalents </li></ul></ul><ul><ul><li>servicegen – builds the service from a Java class or stateless session EJB </li></ul></ul><ul><ul><li>autotype – generates the serializer/deserializer classes for non-built in datatypes </li></ul></ul><ul><ul><li>clientgen – builds the client side jar file </li></ul></ul><ul><ul><li>wsdlgen – generates WSDL from web service artifacts </li></ul></ul>© 2002 BEA Systems, Inc.
  9. 9. servicegen Ant Task <ul><ul><li>Converts Java class or SS EJB into a web service </li></ul></ul><ul><ul><li>Creates web-services.xml, the web service deployment descriptor </li></ul></ul><ul><ul><li>May create serializer/deserializer classes for non-built-in datatypes </li></ul></ul><ul><ul><li>Packages the web service in a WAR file and adds it with the service implementation to an EAR file for deployment </li></ul></ul>© 2002 BEA Systems, Inc.
  10. 10. autotype Ant Task <ul><ul><li>Used for support of non-built-in datatypes </li></ul></ul><ul><ul><li>Generates the serializer/deserializer class </li></ul></ul><ul><ul><li>Generates the holder class for the datatype </li></ul></ul><ul><ul><li>Generates the XML Schema datatype </li></ul></ul><ul><ul><li>Generates the datatype mapping information used in web-services.xml </li></ul></ul><ul><ul><li>Inputs can be a Java class file, an EJB jar file, URL of a WSDL, or XML Schema of the datatype </li></ul></ul><ul><ul><li>Output depends on input </li></ul></ul><ul><ul><li>Available as a command line utility </li></ul></ul>© 2002 BEA Systems, Inc.
  11. 11. clientgen Ant Task <ul><ul><li>Used to build client side jar file for invoking the web service </li></ul></ul><ul><ul><li>Generates the client-side interface and stubs for JAX-RPC static invocation </li></ul></ul><ul><ul><li>Generates a client side WSDL </li></ul></ul><ul><ul><li>Generates the serializer/deserializer classes for parameters and return types </li></ul></ul><ul><ul><li>Available as a command line utility </li></ul></ul>© 2002 BEA Systems, Inc.
  12. 12. wsdlgen Ant Task <ul><ul><li>Used to generate a WSDL file from a web service EAR file </li></ul></ul><ul><ul><li>Available as a command line utlility </li></ul></ul>© 2002 BEA Systems, Inc.
  13. 13. web-services.xml DD <ul><ul><li>Found in WEB-INF in the web service WAR file </li></ul></ul><ul><ul><li>Configures the WLS Web Service runtime </li></ul></ul><ul><ul><li>Contains types, type-mapping, components, and operations for the web service </li></ul></ul><ul><ul><li>The existence of web-services.xml is recognized by WLS at deployment which maps the Context URI to the WLS Web Services Servlet </li></ul></ul>© 2002 BEA Systems, Inc.
  14. 14. Web Service Example <ul><ul><li>Stateless Session EJB component </li></ul></ul><ul><ul><li>Uses non-built-in datatypes </li></ul></ul><ul><ul><li>Returns an array of abstract datatype </li></ul></ul><ul><ul><li>Codec and Holders built with autotype </li></ul></ul><ul><ul><li>Web service built with servicegen </li></ul></ul><ul><ul><li>Static client to invoke web service </li></ul></ul><ul><ul><li>Client side jar file built with clientgen </li></ul></ul><ul><ul><li>Example of using wsdlgen to create a WSDL file </li></ul></ul>© 2002 BEA Systems, Inc.
  15. 15. Q & A © 2002 BEA Systems, Inc.
  16. 16. © 2002 BEA Systems, Inc. The E-Commerce Transactions Company™ www.bea.com
  17. 17. © 2002 BEA Systems, Inc. Bill Kemp Developer Relations Engineer BEA Systems Inc. [email_address]

×