Creates a folder in the logged in user's personal workspace, creates a new document and adds it to that folder, then deletes the folder. It uses FolderClient.java.
Performs various tests on notifications, tags, bonds, links, external artifacts, locks, copy and move operations, and searches. It uses FolderClient.java and MembershipClient.java.
This example takes four arguments:
Endpoint of the GeneralArtifactService Web service
User name of a user in the system
Password of the user
String that the example will search for in the logged in user's artifacts
Subscribes to, retrieves, and modifies the presence of the logged in user and retrieves the buddy list of the same user. It uses MembershipClient.java.
The following steps describe how to compile and run the basic Web services samples in JDeveloper.
Create a new project. Right-click the application in which you want to create your project and select New Empty Project and create a new, empty project.
Right-click your new empty project and select Project Properties. From the tree view, select Project Content. In the text field Default Package, enter oracle.beehive.ws. (The basic Web services samples are in the package oracle.beehive.ws.example and assume that the generated proxy classes are in the package oracle.beehive.ws.proxy.) Click OK.
Generate proxy classes for each Oracle Beehive Web service. The following steps generate the proxy classes for MembershipService:
Right-click your project and select New.
In the New Gallery window in the Categories pane, expand Business Tier and select Web Services. In the Items pane, select Web Service Proxy. Click OK to launch the Create Web Service Proxy wizard.
In Create Web Service Proxy - Step 1 of 7: Web Service Description, in the text field WSDL Document URL, enter http://<Oracle Beehive host>:<Web services port>/ws/MembershipService?WSDL. Click Next.
In the next window of the Create Web Service Proxy wizard, click Next. If you have set the default package to oracle.beehive.ws in your project, the wizard will generate the proxy classes in the package oracle.beehive.ws.proxy.
Secure the proxy you generated:
In the System Navigator, expand the package oracle.beehive.ws.proxy. Right-click MembershipServiceProxy and select Secure Proxy.
In the Secure Web Service Proxy Wizard, select Use Username to Authenticate. For Password Type, select Plain Text. Deselect all other options in the wizard.
Repeat these steps for each of the Oracle Beehive Web service. All the proxy classes for each of the Web services should be in the same package, oracle.beehive.ws.proxy.
Ensure that the following libraries are included in your project:
Oracle XML Parser v2
J2EE
JAX-RPC Client
Commons Logging 1.0.3
Compile one of the basic Web services samples. Ensure that you put the sample in the package oracle.beehive.ws.example in the same project as you generated the Oracle Web services proxy classes. Most of the samples take three arguments:
Web services endpoint, for example http://www.example.com:7777/ws/MembershipService