The following sample web services are provided with WebLogic Workshop. They are located in the samples project, which is the default project when you start WebLogic Workshop for the first time.
Follow the links below for more detailed information on each sample, including instructions for running the sample.
A web service that demonstrates use of an EJB control (AccountEJBControl.jcx), which represents the AccountEJB Entity Bean and exposes its business interface to web services. This sample is not related to AccountPublish.jws and AccountSubscribe.jws.
A web service that demonstrates use of a JMS control (AccountPublishJMSControl.jcx) to publish a message to a JMS topic. This sample is paired with AccountSubscribe.jws, which subscribes to the JMS topic to which AccountPublish.jws publishes. This sample is not related to AccountEJBClient.jws.
A web service that demonstrates use of a JMScontrol (AccountPublishJMSControl.jcx) to subscribe to a JMS topic. This sample is paired with AccountPublish.jws, which publishes to the JMS topic to which AccountSubscribe.jws subscribes. This sample is not related to AccountEJBClient.jws.
A web service that demonstrates an asynchronous interface to a legacy system (LegacySystem.jws) that does not support asynchrony. It does so by "polling" the legacy system: calling it repeatedly to see if it's done. AdvancedTimer does the polling for the client, invoking a client callback if and when the legacy system responds.
AdvancedTimer uses the @jc:timer timeout= repeats-every= tag.
A web service that demonstrates how to secure a web service using basic authentication (username and password authentication).
A web service that demonstrates the @common:message-buffer tag to queue high-traffic requests. Uses a Timer control to delay sending a response back to the client, simulating waiting for a slow back-end service to respond to requests from this web service. The start method is buffered, allowing clients to continue processing immediately after submitting a request.
Demonstrates asynchronous communication between two web services, where the target web service requires a client certificate.
A web service that demonstrates use of the @jws:conversation tag to control the lifetime of a conversational instance of the web service and provide data persistence.
Conversation.jws implements a synchronous polling interface for the asynchronous HelloWorldAsync web service. A polling interface is necessary if you wish to serve clients that cannot accept asynchronous callbacks due to security arrangements such as firewalls.
Conversations also provide correlation, whereby requests from multiple simultaneous clients are tracked and responses are directed to the right client.
Demonstrates the referencing of externally defined roles and principals.
Demonstrates use of conversations and Web Service controls.
A sample that demonstrates use of a database control by managing customer records. CustomerDBClient is a client of CustomerDBControl.jcx. Together they demonstrate construction of a Database control and use of a Database control by a web service. CustomerDBControl.jcx demonstrates use of SQL's CREATE, DROP, INSERT, UPDATE, and SELECT statements.
A web service that demonstrates use of a JMS control defined in a JCX file. CustomJMSClient is a client of the CustomJMSControl.jcx JMS control.
A web service that demonstrates how to pass dynamically generated SQL statements to a database control.
A very simple web service with a single synchronous method. Illustrates a WebLogic Workshop web service in its simplest form.
A simple asynchronous web service that illustrates the use of a callback. Uses a Timer control to provide a delay that simulates waiting for a slow back-end service to do some work, then notifies the client of the result via a callback. HelloWorldAsync is used by the Conversation.jws sample, but is also a standalone web service.
A web service that demonstrates some of the features of the declarative and the programmatic security models supported by WebLogic Workshop.
A web service that demonstrates exposing a Java control with an asynchronous web service. Also demonstrates the use XQuery maps, and WS-Security.
A web service that demonstrates exposing a Java control with a synchronous web service.
A web service that receives SOAP requests via a JMS queue.
A sample that uses a database to store players and their lucky numbers. LuckyNumberDBClient uses the LuckyNumber.jws web service to generate random numbers in the range [1,20] inclusive, then checks for winners in a database and returns the number drawn and the list of winners, if any. The database is managed using the LuckyNumberDBControl.jcx Database control. LuckyNumberDBControl.jcx creates and manages a PLAYERS table in the database and implements queries against it. Demonstrates using SQL's CREATE, INSERT, SELECT and DROP statements in a database control.
Demonstrates the ability to modify a Web Service control's JCX file to change the Java signature of one or more methods while still adhering to the public contract of the called web service. QuoteServiceControl.jcx was originally generated from the QuoteService.jws web service. But one method in QuoteServiceControl.jcx has had a parameter removed and replaced with a hard-coded value in the accompanying XML map. Thus, the outgoing XML message is the same, but the Java signature visible to clients of the Web Service control is simplified.
A web service that demonstrates creating a control factory with a Web Service control.
A web service that demonstrates use of a JMS control declared locally in a web service's JWS file.
A simple web service that demonstrates use of the Timer control. Uses the @jc:timer timeout= tag.
A web service that demonstrates use of the EJB control TraderEJBControl.jcx, which represents the TraderEJB Stateless Session Bean and exposes its business interface to web services.
A web service that demonstrates the declarative and the programmatic security models supported by WebLogic Workshop, including basic authentication to secure a web service, calling a secure service through a service control, and calling back a secure service through a callback interface.
The WS-Security Callback sample demonstrates asynchronous communication between two web services both of which are secured with WS-Security security.
The WS-Security ReqResp sample demonstrates synchronous communication between two web services both of which are secured with WS-Security security.
The WS-Security UserToken sample demonstrates synchronous communication between two web services both of which are secured with WS-Security security, especially the use of username and password in WS-Security.
Related Topics