Products

  1. webMethods CAF 7.1.1
  2. BPM Designer 7.0
  3. BPM Designer 7.1
  4. MWS 7.0
  5. MWS 7.1

Article Types

  1. Sample Applications
  2. Core Concepts
  3. External References
  4. Webinars

Key Subjects

  1. Web Services
  2. Database
  3. JavaScript
  4. JSF Controls
  5. Task Development
  6. Task Inbox
  7. Task Assignments
  8. Task Events
  9. Debugging
  10. Web Application
 
MOST POPULAR
  1. CAF JavaDocs
  2. Designer Online Help
  3. CAF Java(Script)Docs
  4. CAF Samples for webMethods 7.1...
  5. Confirmation Dialog Tutorial
  6. CAF and JSF
  7. JSF Binding Expressions
  8. Dynamic Panel Switch Applicati...
WHATS NEW
  1. Session State Mgmt
  2. Print Table
  3. Popup Dialog

Use web service to write/update data

This samples demonstrate how to use web service to get,update and add new data.
Create the Default View


The Default view has tabs that allow users to access the three different views in the application. When the user clicks a tab, the application uses an Import View control to display the appropriate view. The views available from the tabs in the Default view are:
*
Add Customer tab to display the addCustomer view on which a user supplies data to add a customer. The application invokes a Web service to add the customer, using the data the user supplies as input to the Web service.
*
Update Using WSD tab to display the updateCustomerwithWS view on which a user can update the information for a customer. The user provides a customer ID and clicks a button. In turn, the application invokes a Web service to display the current information for the customer with the specified customer ID. After the user provides updated information and clicks another button, the application invokes another Web service to update the customer information.
*
Update Customer tab to display the updateCustomer view, which is another view on which a user can update the information for a customer. Although the updateCustomer view is included in the sample, this article does not describe how to create this view. This view uses a deprecated technique; that is, using a flow service on the Integration Server to generate a Web Service Connector rather than generating the Web service connector from a Web Service Descriptor (WSD).
Note: The Default view does not use a Web service.
*
To specify the names the application is to display on the tabs, you associate the tabList property with the Choices property of the Toggle Tabs control.
From the Project Explorer view, open Project > WebContent > default.view, where Project is the name of the project you created for this application.
c
Select Read-only Array.
d
Click Finish.
3
Add a page bean property named selectedTab. This property will hold the tab that the user selects. The application uses it to determine the view to display.
c
Click Finish.
4
From the Palette view, drag a Toggle Tabs control (Control > Toggle > Toggle Tabs) inside the Form control in the Default view.
5
From the Bindings view, drag the Tab List property onto the Toggle Tabs control in the Default view.
Designer updates the Choices property of the Toggle Tabs control. It adds an Option Group to the Choices property and binds the Value property of the Option Group to the Tab List property.
6
From the Bindings view, drag the Selected Tab property onto the Toggle Tabs control in the default view.
7
Add a page bean property named importView. The getter method for this property identifies the name of the view that the application is to display based on the selected tab.
c
Click Finish.
8
From the Palette view, drag a Block Panel control (Control > Panel > Block Panel) into the View Root.
9
From the Palette view, drag an Import View control (Control > Logic > Import View) into the Block Panel control.
10
Bind the Import View control to the Import View property so that the application imports the view based on the setting of the Import View property.
b
Set the Value tab to the following:
Related Topics 
 
 
Powered by webMethods
Samples and utilities are "working examples" that can be used to test and build production-quality solutions.
Most are not eligible for technical support through webMethods Customer Care.
webMethods makes no guarantees pertaining to the functionality, scalability, robustness, or degree of testing of these utilities and samples.