IBM WebSphere MQ Version 6 And Web Services

2y ago
52 Views
2 Downloads
4.44 MB
476 Pages
Last View : 4m ago
Last Download : 2m ago
Upload by : Abby Duckworth
Transcription

Front coverWebSphere MQ Version 6and Web ServicesInteroperable Web Services using .NET, Axis,and IBM WebSphere Application ServerWebSphere MQ transport forSOAP, .NET, and Java classesAsynchrony andtransactionalitySaida DaviesCraig BothGary O’ConnorSushil SharmaPaul SlaterOpe SoyannwoJerry L Stevensibm.com/redbooks

International Technical Support OrganizationWebSphere MQ Version 6 and Web ServicesOctober 2006SG24-7115-00

Note: Before using this information and the product it supports, read the information in“Notices” on page xvii.First Edition (October 2006)This book includes an update of the material present in WebSphere MQ Solutions in aMicrosoft .NET Environment, SG24-7012Version 1 Release 1 (or earlier) of Microsoft .NET FrameworkVersion 1 Release 1 (or earlier) of Microsoft .NET SDKVersion 6 Release 0 of IBM WebSphere MQVersion 6 Release 0 of IBM Rational Application DeveloperVersion 6 Release 0 of IBM WebSphere Application Server for IBM AIXVersion 6 Release 0 of IBM WebSphere MQ V6.0 - SupportPac MA0VVersion 1 Release 4 of IBM Java SDK Copyright International Business Machines Corporation 2006. All rights reserved.Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADPSchedule Contract with IBM Corp.

ContentsFigures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiTables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvNotices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviiTrademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviiiPreface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xixThe team that wrote this IBM Redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxBecome a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiiiComments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxivPart 1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Chapter 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.1 Object-orientation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.2 Self-description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.3 Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Chapter 2. Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.1 Programming models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.2 Overview of the chapters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Chapter 3. Technologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.1 Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143.1.1 Universal Resource Identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143.1.2 Extensible Markup Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.1.3 Universal Description Discovery and Integration . . . . . . . . . . . . . . . 163.1.4 Understanding Web Services Description Language . . . . . . . . . . . . 163.2 Simple Object Access protocol (SOAP) . . . . . . . . . . . . . . . . . . . . . . . . . . 183.3 Microsoft .NET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193.3.1 .NET Framework and the Common Language Runtime . . . . . . . . . . 203.3.2 Internet Information Services and Active Server Pages . . . . . . . . . . 203.3.3 COM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213.3.4 Visual Studio .NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213.4 IBM WebSphere Application Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223.4.1 Java 2 Platform, Enterprise Edition . . . . . . . . . . . . . . . . . . . . . . . . . . 223.4.2 IBM Rational Application Developer for WebSphere Software . . . . . 233.4.3 SOAP/Java Message Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233.5 Apache Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Copyright IBM Corp. 2006. All rights reserved.iii

3.6 WebSphere MQ V6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Part 2. Web Services and security considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Chapter 4. WebSphere Services with WebSphere MQ. . . . . . . . . . . . . . . . 294.1 SOAP over Hypertext Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . 304.2 SOAP over WebSphere MQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314.3 Client applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324.3.1 Axis clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334.3.2 Microsoft .NET clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344.3.3 Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344.4 The SOAP layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354.4.1 SOAP message styles and encodings . . . . . . . . . . . . . . . . . . . . . . . 354.4.2 Interoperability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374.4.3 WebSphere MQ SOAP Uniform Resource Indicator. . . . . . . . . . . . . 394.5 SOAP/WebSphere MQ sender . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414.6 SOAP/WebSphere MQ listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424.7 Service applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424.8 Service deployment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434.9 WebSphere MQ infrastructure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444.9.1 The request queue and the response queue . . . . . . . . . . . . . . . . . . 444.9.2 Queue manager connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444.9.3 WebSphere MQ channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454.9.4 Security and error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464.9.5 Advanced features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Chapter 5. SOAP/WebSphere MQ implementation. . . . . . . . . . . . . . . . . . . 495.1 Setting up the environment and using the samples . . . . . . . . . . . . . . . . . 515.1.1 Setting the environment variable WMQSOAP HOME . . . . . . . . . . . 515.1.2 Running the amqwsetcp.cmd/sh command . . . . . . . . . . . . . . . . . . . 515.1.3 Using the Installation Verification Test to verify installation . . . . . . . 525.1.4 Executing the setupWMQSOAP.cmd/sh script . . . . . . . . . . . . . . . . . 535.2 The development process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535.3 SOAP formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575.3.1 Specifying Remote Procedure Call-style encodingor Document-style encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585.4 The deployment process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595.4.1 Deployment utility syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645.4.2 The SOAP/WebSphere MQ Universal Resource Indicator . . . . . . . . 655.4.3 Request queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 705.4.4 Response queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 725.4.5 Queue manager connection types . . . . . . . . . . . . . . . . . . . . . . . . . . 725.5 Customizing the deployment process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 735.5.1 Illustrating the Microsoft .NET customized deployment . . . . . . . . . . 74ivWebSphere MQ Version 6 and Web Services

5.5.2 Illustrating the Axis customized deployment . . . . . . . . . . . . . . . . . . . 775.5.3 Using complex objects in Java and Microsoft .NET . . . . . . . . . . . . . 805.5.4 The use of mixed package names . . . . . . . . . . . . . . . . . . . . . . . . . . 815.6 The WebSphere MQ transport for SOAP listener . . . . . . . . . . . . . . . . . . . 815.6.1 Microsoft .NET listener runtime syntax . . . . . . . . . . . . . . . . . . . . . . . 835.6.2 Methods to start listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835.6.3 Stopping a listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855.6.4 The role of identity context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855.6.5 Listener transactionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865.7 Permanent and temporary dynamic response queues . . . . . . . . . . . . . . . 885.8 WebSphere MQ transport for SOAP error handling . . . . . . . . . . . . . . . . . 905.8.1 Report messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 915.8.2 Message integrity options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 925.9 Microsoft .NET asynchronous interface . . . . . . . . . . . . . . . . . . . . . . . . . . 935.9.1 Using Microsoft .NET short-term asynchrony . . . . . . . . . . . . . . . . . . 945.10 WebSphere Application Server and CICS Transaction Serverinteroperability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005.10.1 WebSphere Application Server interoperation . . . . . . . . . . . . . . . 1015.10.2 CICS interoperation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1045.11 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104Chapter 6. Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1076.1 Concepts of security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1086.1.1 Security services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1096.1.2 Security mechanisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1106.2 Security considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1106.2.1 Application layer security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1116.2.2 Transmission layer security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1126.3 Concepts of cryptography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1136.3.1 Cryptography. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1136.3.2 Message digest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1156.3.3 Digital signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1166.3.4 Digital certificates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1176.4 Introduction to Secure Sockets Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . 1206.4.1 Concepts of Secure Sockets Layer . . . . . . . . . . . . . . . . . . . . . . . . . 1206.4.2 CipherSuites and cipherSpecs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1216.5 Secure Sockets Layer support in WebSphere MQ . . . . . . . . . . . . . . . . . 1216.6 Working with WebSphere MQ and Secure Sockets Layer . . . . . . . . . . . 1236.6.1 Configuring WebSphere MQ for secured communication . . . . . . . . 123Part 3. Implementing synchronous Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139Chapter 7. Environment setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1417.1 Software prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142Contentsv

7.2 Software installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1427.2.1 Installing IBM WebSphere MQ V6 . . . . . . . . . . . . . . . . . . . . . . . . . 1427.2.2 Installing Microsoft .NET Framework Redistributable V1.1 . . . . . . . 1457.2.3 Installing Microsoft .NET Software Development Kit V1.1 . . . . . . . 1457.2.4 Verifying the installation of WebSphere MQ transport for SOAP . . 1467.2.5 Installing WebSphere Application Server V6 for AIX . . . . . . . . . . . 1467.2.6 Installing Rational Application Developer V6 . . . . . . . . . . . . . . . . . 1477.3 Environment setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477.3.1 Basic WebSphere MQ administration . . . . . . . . . . . . . . . . . . . . . . . 151Chapter 8. Axis Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1598.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1608.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1628.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1628.3.1 Implementation of Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 1638.3.2 Preparing the WebSphere MQ environment . . . . . . . . . . . . . . . . . . 1638.4 Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1648.4.1 Common deployment steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1658.4.2 Executing a simple deployment to a local default queue manager . 1678.4.3 Executing a deployment to a local queue manager withspecific request and response queues . . . . . . . . . . . . . . . . . . . . . . 1708.4.4 Executing a deployment to a remote queue manager . . . . . . . . . . 1718.5 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1808.6 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1848.7 Using the Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1868.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186Chapter 9. Axis client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1879.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1889.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1909.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1909.3.1 Proxy code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1909.3.2 A client for a local Axis service . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1929.3.3 A client for a remote .NET service . . . . . . . . . . . . . . . . . . . . . . . . . 2009.3.4 The WebSphere MQ environment . . . . . . . . . . . . . . . . . . . . . . . . . 2059.4 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2089.4.1 Unable to put a request to queue . . . . . . . . . . . . . . . . . . . . . . . . . . 2089.4.2 Specified request queue does not exist . . . . . . . . . . . . . . . . . . . . . 2089.4.3 Response not received . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2099.4.4 Cannot find the client-config.wsdd file. . . . . . . . . . . . . . . . . . . . . . . 2099.4.5 Incorrect message format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2109.5 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2109.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211viWebSphere MQ Version 6 and Web Services

Chapter 10. .NET Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21310.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21510.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21710.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21710.3.1 Implementation of the Web Service . . . . . . . . . . . . . . . . . . . . . . . 21710.3.2 Compiling the Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22110.4 Preparing the WebSphere MQ environment . . . . . . . . . . . . . . . . . . . . . 22210.5 Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22710.5.1 Common deployment steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22810.5.2 Executing a simple deployment to a local defaultqueue manager. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22910.5.3 Executing a deployment to a local queue managerwith specific request and response queues . . . . . . . . . . . . . . . . . . 23010.5.4 Executing a deployment to a remote queue manager . . . . . . . . . 23210.6 The SOAP/WebSphere MQ listener . . . . . . . . . . . . . . . . . . . . . . . . . . . 23510.7 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23610.8 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23910.9 Using the Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24110.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241Chapter 11. .NET client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24311.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24411.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24411.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24511.3.1 Proxy code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24511.3.2 Implementing .NET client to make synchronous calls. . . . . . . . . . 24611.3.3 Implementing the .NET client to make asynchronous calls. . . . . . 25211.3.4 Preparing the WebSphere MQ environment . . . . . . . . . . . . . . . . . 25611.3.5 Setup for client mode and server binding mode connection . . . . . 25811.4 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26211.5 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26611.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266Chapter 12. WebSphere Application Server Web Service . . . . . . . . . . . . 26912.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27012.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27212.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27212.3.1 Creating and implementing the Web Service skeleton . . . . . . . . . 27212.3.2 WebSphere MQ and WebSphere Application Server setup . . . . . 27712.3.3 Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28412.4 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28512.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287Chapter 13. WebSphere Application Server client . . . . . . . . . . . . . . . . . . 289Contentsvii

13.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29113.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29213.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29213.3.1 WebSphere MQ setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29413.4 Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29513.5 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29813.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300Part 4. Asynchrony and transactionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301Chapter 14. Long-term asynchronous functionality (MA0V). . . . . . . . . . 30314.1 Overview of asynchronous facilities . . . . . . . . . . . . . . . . . . . . . . . . . . . 30414.2 Installation of MA0V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30514.3 The SOAP/WebSphere MQ InstallationVerification Testing and MA0V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30614.4 Developing a client to use long-term asynchrony . . . . . . . . . . . . . . . . . 30714.5 Response queues and asynchronous clientID . . . . . . . . . . . . . . . . . . . 31114.6 Illustration of client software modification . . . . . . . . . . . . . . . . . . . . . . . 31314.6.1 Asynchronous request notification . . . . . . . . . . . . . . . . . . . . . . . . 31314.6.2 Trapping an AsyncResponseExpectedException . . . . . . . . . . . . . 31414.6.3 Instantiating an asynchronous response listener . . . . . . . . . . . . . 31414.6.4 Implementing an asynchronous callback . . . . . . . . . . . . . . . . . . . 31514.6.5 Stopping the response listener . . . . . . . . . . . . . . . . . . . . . . . . . . . 31614.7 Building client applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31614.7.1 Microsoft .NET client applications . . . . . . . . . . . . . . . . . . . . . . . . . 31714.7.2 Java client applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31714.8 Long-term asynchrony and error handling . . . . . . . . . . . . . . . . . . . . . . 31714.9 ResponseListener start/finish notification . . . . . . . . . . . . . . . . . . . . . . . 31914.10 Maintaining the side queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32114.10.1 Removing queue mapping entries from the side queue . . . . . . . 32114.10.2 Removing redundant context objects from the side queue . . . . . 32414.11 Uninstalling MA0V SupportPac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32514.12 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326Chapter 15. Implementing long-term asynchronousWeb Service clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32715.1 The Web Service. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32815.2 Implementation of long-term asynchrony . . . . . . . . . . . . . . . . . . . . . . . 32915.3 Executing the .NET client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33715.4 Executing the Axis client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338Chapter 16. Transactional functionality (MA0V) . . . . . . . . . . . . . . . . . . . . 33916.1 Overview of MA0V transactional functionality . . . . . . . . . . . . . . . . . . . . 34016.2 Transactional demonstration samples. . . . . . . . . . . . . . . . . . . . . . . . . . 343viiiWebSphere MQ Version 6 and Web Services

16.2.1 Microsoft .NET client transactionality . . . . . . . . . . . . . . . . . . . . . . 34316.2.2 Developing a transactional Microsoft .NET client . . . . . . . . . . . . . 34516.3 Axis client transactionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34816.3.1 Developing a transactional Axis client. . . . . . . . . . . . . . . . . . . . . . 35016.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354Chapter 17. Implementing transactionality. . . . . . . . . . . . . . . . . . . . . . . . 35517.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35617.2 Java. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35817.2.1 Invoking the service within a transaction. . . . . . . . . . . . . . . . . . . . 35817.2.2 Processing the response within a transaction . . . . . . . . . . . . . . . . 36417.3 Microsoft .NET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36617.3.1 Invoking the service within a transaction. . . . . . . . . . . . . . . . . . . . 36717.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372Part 5. Web Services and WebSphere MQ clustering . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373Chapter 18. Using WebSphere MQ clustering with Web Services . . . . . 37518.1 Benefits of WebSphere MQ clustering with Web Services . . . . . . . . . . 37618.2 An example scenario. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37618.2.1 The client invocation and the WebSphere MQ sender . . . . . . . . . 37718.2.2 The Web Service and the WebSphere MQ listener . . . . . . . . . . . 37918.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379Appendix A. WebSphere MQ using .NET classes . . . . . . . . . . . . . . . . . . 381WebSphere MQ .NET classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382Environment setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386Interacting with queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387Working with messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387Putting a message on a WebSphere MQ queue. . . . . . . . . . . . . . . . . . . . 388Getting a message off a WebSphere MQ queue . . . . . . . . . . . . . . . . . . . 388Sending messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389Receiving messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389Application development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389Simple WebSphere MQ put operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 389Simple WebSphere MQ get operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 392Request and reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395The .NET monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404Appendix B. WebSphere MQ using Java classes. . . . . . . . . . . . . . . . . . . 405Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406Using the WebSphere MQ Java classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406What are WebSphere MQ Java classes? . . . . . . . . . . . . . . . . . . . . . . . . . 407Contentsix

Environment setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409Interacting with queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409Working with messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409Putting a message on a WebSphere MQ queue. . . . . . . . . . . . . . . . . . . . 410Getting a message off a WebSphere MQ queue . . . . . . . . . . . . . . . . . . . 411Application development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411Simple WebSphere MQ put operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 412Simple WebSphere MQ get operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 414Request-and-reply messaging pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . 416Transaction participation with SOAP/WebSphere MQ . . . . . . . . . . . . . . . . . . 422Web Service client transaction participation . . . . . . . . . . . . . . . . . . . . . . . 423Web Service transaction participation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424Appendix C. Deployment utility quick reference . . . . . . . . . . . . . . . . . . . 425Sample deployment command lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429Appendix D. Additional material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431Locating the Web material . . . . . . . . . . . . . . . . . . . . . . . .

WebSphere MQ Version 6 and Web Services Saida Davies Craig Both Gary O’Connor Sushil Sharma Paul Slater Ope Soyannwo Jerry L Stevens Interoperable Web Services using .NET, Axis, and IBM WebSphere Application Server WebSphere MQ transport for SOAP, .NET, and Java classes Asynchrony and transactionality Front cover

Related Documents:

- IBM Sterling B2B Integrator Version 5.2.3 - IBM Sterling File Gateway Version 2.2.3 - IBM Sterling Connect:Direct Version 4.6 - IBM WebSphere Message Queue Version 7.0.1 - IBM WebSphere Message Broker Version 8.0 - IBM WebSphere Transformation Extender Design Studio Version 8.4 - IBM WebS

WebSphere 8. Welcome to the F5 Deployment Guide for IBM WebSphere. This document provides guidance for deploying the BIG-IP Local Traffic Manager (LTM) with IBM WebSphere 8. The BIG-IP system can optimize IBM WebSphere at many layers: in front of the IBM HTTP . Servers, between HTTP Servers and WebSphere Application Servers, or to eliminate .

In the three volumes of the IBM WebSphere Portal V4.1 Handbook, we cover WebSphere Portal Enable and Extend. The IBM WebSphere Portal V4.1 Handbook will help you to understand the WebSphere Portal architecture, how to install and configure WebSphere Portal, how to administer portal pages using WebSphere Portal; it will also discuss the

Successful MDM deployments using IBM WebSphere Customer Center and IBM WebSphere Data Integration Suite. Page 1 Introduction This document has been created to show the complementary nature of IBM WebSphere Customer Center (formerly known as DWL Customer), a Master Data Management Information Accelerator, and the IBM WebSphere

A guide to IBM WebSphere Portal, Version 5.1 Page 2 A guide to IBM WebSphere Portal, Version 5.1 Page 3 This white paper is intended to help IBM clients, independent software vendors (ISVs) and application architects plan their use of WebSphere Portal. It explains a range of WebSphere Portal features, including portal application and

Exploring IBM WebSphere ILOG JRules Integration with IBM WebSphere Process Server Page 4 Figure 1: BPM Integration with IBM WebSphere ILOG JRules While the orientations of the technologies may be orthogonal, they depend upon a contractual relationship that is typical in an SOA. For example, in the case of SOAP, the service signature is defined .

IBM WebSphere Portal Version 5 Family Enable WebSphere Application Server IBM HTTP server WebSphere Portal Server Out-of-the-Box Portlets Collaboration Services API Portal Toolkit WebSphere Translation Server WebSphere Studio Site Developer Content Management Personalization Portal Document Manager

WebSphere security and IBM Cognos 8 directly or - more common – for single signon between IBM WebSphere Portal and IBM Cognos 8. 1.2 Applicability While for creation of this document IBM Cognos 8 BI MR2 and IBM WebSphere 6.0.2 were used the technique described in here applies to all versions of IBM Cognos 8.