408 SOA Solutions Using IBM Information Server
// get value from result BO
DataObject tradesOutput = operationResult.getDataObject("output");
int result = tradesOutput.getInt("orderNumber");
return result;
}
.........................
}
2.9.2 Microsoft Visual Studio 2005 Professional Edition
Now we demonstrate the development and testing of a client application
accessing IBM Information Server and WebSphere Integration Developer
generated services using SOAP over HTTP in the .NET environment. A thick
client environment, and a thin client environment are described here.
Thick client
In this environment, a visual basic client application invokes the Update Credit
Card customer business function implemented using WebSphere Integration
Developer services. Figure 2-400 on page 408 shows the aggregate WID
generated service invoked by the visual basic application.
Figure 2-400 Thick client visual basic application using Visual Studio .NET
Figure 2-401 on page 409 through Figure 2-410 on page 414 describe the main
steps in developing and testing the thick client application:
1. After launching Visual Studio (not shown here), create a project named
A2ZCSR in location C:\Net Projects and Solution Name (A2ZCSR) for
creating an application with a Windows user interface as shown in
Figure 2-401 on page 409, and click OK.
2. Click Add Web Reference in the Solution Explorer for A2ZCSR in
Figure 2-402 on page 410.
3. Then type in the URL where the Web services are to be found
(http://lead.itsosj.sanjose.ibm.com:9080/A2ZSCA_CreditCardWeb/sca/Updat
eCustomer?wsdl) and click Go as shown in Figure 2-403 on page 410.
4. One service is found, as shown in Figure 2-404 on page 411.
A2Z Financials
Business Function
Update Credit Card customer
(Thick client)
WebSphere Integration Developer
Services (SOAP over HTTP only)
UpdateCustomer_UpdateCustomerInfoProcessHttpService
Chapter 2. Financial services business scenario 409
5. Modify the Web reference name (UpdateCustomer) from the default and click
Add Reference which makes it available to this application. Next create the
user interface form with controls as shown in Figure 2-405 on page 411.
6. Select the UpdateCustomer button and define the action to be taken when it
is clicked as shown in Figure 2-406 on page 412 and Figure 2-407 on
page 413. The UpdateButton_Click code defines the action to be taken when
the UpdateCustomer button is clicked.
7. To test the code, select Start Without Debugging from the Debug menu as
shown in Figure 2-408 on page 413.
8. Provide details about a customer and click the UpdateCustomer button as
shown in Figure 2-409 on page 414 to view the successful update message
shown in Figure 2-410 on page 414.
Figure 2-401 Thick client visual basic application 1/10
Note: A portion of the code is shown in Example 2-33 on page 414, where
the single WID generated service is initialized and invoked as highlighted
(UpdateCustomer_UpdateCustomerInfoProcessHttpService).
410 SOA Solutions Using IBM Information Server
Figure 2-402 Thick client visual basic application 2/10
Figure 2-403 Thick client visual basic application 3/10
Chapter 2. Financial services business scenario 411
Figure 2-404 Thick client visual basic application 4/10
Figure 2-405 Thick client visual basic application 5/10
412 SOA Solutions Using IBM Information Server
Figure 2-406 Thick client visual basic application 6/10

Get SOA Solutions Using IBM Information Server now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.