In this lesson, you create a ManagedBean based on a public service deployed to the Unwired Orchestrator runtime environment.
From the Windows Start menu, select Start|Program|Sybase|Sybase WorkSpace|UO 5.1|Start UO to start Unwired Orchestrator.
From the main menu bar, select Window|Open Perspective|Other.
When the Select Perspective window opens, select Web Application Development and click OK.
In the Enterprise Explorer view, select Service Container|MyServiceContainer, right-click, and select Connect from the context menu.
Deploy the SalesEmailSend service package:
In the WorkSpace Navigator, expand MySybStore_Tutorials/Tutorial_Resources/Service_Development/Message/.
Right-click SalesEmailSend.svcpkgdef and select Deploy Package from the context menu.
When the Deployment Status dialog box opens and states that deployment was successful, click OK.
Select the Data Bindings tab and expand ManagedBean.
In the Enterprise Explorer, expand Service Containers|MyServiceContainer|Packages|SalesEmailSend|Services|SalesEmailSend|Interfaces,drag SalesProcessingEmailSendService to the Data Bindings view, and drop it on the session icon.
When the New Managed Bean Wizard opens, accept the defaults and click Next.
Click Next on the ManagedBean Configuration page,.
Click Finish.
Reselect the Data Bindings tab to see the new ManagedBean.
Create the sendmail.jsp Web page:
Select File|New|Web Page from the main menu bar.
If you do not see Web Page on
the list, click Other. When the New dialog
box opens, select Web Application Development|Web
Page and click Next.
When the New Web Page File wizard
opens, select MySybStore_Tutorials_Web/webroot to
populate the Enter or Select the Parent Folder field,
enter sendmail
in the File
Name field, and click Next.
Select JavaServerPages_Basic in the Available Templates list, and click Finish to use the template for your Web page.
The sendmail.jsp is created and displays in the editor.
In the Data Bindings view,
locate the salesProcessingEmailSendService_SOAP_HTTP_Port ManagedBean and
drag and drop it onto the text “Drag
and drop Web page content here
” in
the design pane.
The Create JSF Components wizard opens.
Select the sendInvoker.fault attribute, click Move Down twice to move it to the end of the list, and click Next.
When the Create JSF components to map to managed bean attributes page displays, click Finish to complete the page layout creation.
Select File|Save from the main menu bar to save the page.
In the WorkSpace Navigator, expand SybStore_Tutorial_Web/webroot.
Right-click sendmail.jsp and select Run from the context menu. Click Finish to run this page on EAServer.
You have successfully created the sendmail.jsp page that contains a DataWindow that includes a Unwired Orchestrator service.