"Very impressive work. This book is valuable for beginning and intermediate technologists." Dwight Mamanteo, Technical Manager, BEA Systems "Provides explanations of Web services, tuning tips, and discussions on security that will likely be of benefit to developers as they create their Web services." Robert W. Husted, Member, Technical Staff, Requisite Software Build Web services infrastructure based on service-oriented architecture (SOA) Implement enterprise-class Web services using WebLogic and J2EE Complete lifecycle coverage with best practices: design, prototyping, development, testing, deployment, and management Real-world enterprise Web services implementation with J2EE and WebLogic You've seen plenty of theory about Web services. This book is about the reality: what it takes to successfully implement J2EE Web services with BEA WebLogic in complex enterprise environments. Anjali Anagol-Subbarao, one of the world's leading Web services experts, offers powerful insights for every stage of the Web services lifecycle: design, prototyping, development, testing, deployment, and management. Anagol-Subbarao draws on her experience architecting and building Web services infrastructure for HP's worldwide operations and takes on the challenges that face every enterprise implementer. She demonstrates how to design robust Web services that align with business processes, smoothly integrate with existing infrastructure, deliver superior performance and security, and can be managed effectively. Coverage includes Primers on WebLogic Workshop, WebLogic Server, WLI, and J2EE Web services technology Building effectiveservice-oriented architectural (SOA) frameworks Translating designs into working code Designing for end-to-end security and tuning for high performance Testing Web services and deploying them to production environments Addressing the unique challenges associated with managing distributed Web services © Copyright Pearson Education. All rights reserved. Cover......Page 1 Contents......Page 10 Foreword......Page 19 Introduction......Page 22 Chapter 1 Introduction to Web Services......Page 28 Developments Leading up to Web Services......Page 29 Web Services Standards Organizations......Page 31 XML......Page 32 SOAP......Page 35 WSDL......Page 40 UDDI......Page 43 WS- Security......Page 44 Summary......Page 45 Overview of J2EE......Page 46 The J2EE Architecture......Page 47 J2EE Components......Page 48 J2EE Containers......Page 54 J2EE Services and APIs......Page 55 Assembling a J2EE Application......Page 61 Web Services Support in J2EE......Page 63 J2EE 1.4 Specification......Page 64 Summary......Page 68 References......Page 69 Building Blocks of the WebLogic Platform......Page 70 WebLogic Server......Page 71 WebLogic Workshop......Page 73 Workshop Integrated Development Environment......Page 74 Workshop Runtime Framework......Page 75 WebLogic Control Framework......Page 76 WebLogic JRockit......Page 77 WebLogic Integration......Page 78 WebLogic Portal......Page 79 Support for Creating Web Service Clients......Page 80 Summary......Page 81 Understanding the SOA......Page 84 Architecture......Page 85 Infrastructure......Page 86 Implementing the Service Interface......Page 87 Factors Driving the Business Decision......Page 88 Going Live with Web Services: HP Case Study......Page 89 Challenges Faced......Page 90 The Web Services Solution......Page 91 Benefits of the Solution......Page 92 Summary......Page 93 Conforming to Standards......Page 94 Designing WSDL First......Page 95 Selecting SOAP Messaging......Page 96 Publishing Enduring Web Services Contracts......Page 99 Integrating Through Loose Coupling......Page 100 Versioning New Releases......Page 102 Facilitating Asynchronous Communication......Page 106 Exposing Business Logic Components......Page 108 Security......Page 111 Manageability......Page 113 Summary......Page 115 Designing WSDL with XMLSPY......Page 116 XMLSPY WSDL Editor......Page 117 Specifying Types......Page 119 Specifying Services......Page 120 Specifying Messages......Page 121 Specifying Bindings......Page 122 Validating the Completed WSDL......Page 123 Adding Operations to the WSDL......Page 124 Creating a Web Service from the WSDL......Page 128 Web Service as JWS Files......Page 130 Testing the Web Service Using Workshop......Page 131 Testing the Web Service Using a Client......Page 133 Versioning the Interface......Page 140 Versioning the Implementation......Page 141 Summary......Page 143 Building an Asynchronous Web Service......Page 144 Callbacks......Page 146 Conversations......Page 147 Buffering......Page 152 Polling as an Alternative to Callbacks......Page 153 Using SOAP with Attachments......Page 154 Sending a SOAP Attachment......Page 155 Receiving a SOAP Attachment......Page 156 SOAP Attachments in the Real World......Page 157 Transforming XML Messages......Page 158 XQuery Map......Page 159 ECMAScript......Page 162 UDDI Explorer......Page 164 Web Service Control......Page 166 Deploying to Production Environment......Page 167 Manual Creation of Server Resources......Page 168 Viewing and Testing the Assembled Web Service......Page 171 Summary......Page 172 Using Workshop Control Framework......Page 174 Building a Custom Control......Page 175 Building a Database Control......Page 176 Building an EJB Control......Page 178 Using an ISV Control......Page 180 Controls and Software Reuse......Page 183 Binding Java to XML Using XML Beans......Page 184 Understanding XML Beans......Page 185 XML Beans Hierarchy......Page 188 Using XQuery and XPath Expressions......Page 190 Using XML Cursors......Page 191 Using the StAX Parser......Page 192 Comparison to SAX and DOM......Page 195 Summary......Page 198 Building EJBs in WebLogic Workshop......Page 200 Creating an Entity Bean......Page 201 Creating a Session Bean......Page 206 Connecting to EIS Using the Application Integration Framework......Page 210 Understanding Elements of J2CA......Page 211 Components of WLI......Page 212 Summary......Page 225 Chapter 10 Managing Business Processes......Page 226 Orchestration, Choreography, and Collaboration......Page 227 Three Stages of a BPM Solution......Page 228 Building a Business Process in Workshop......Page 229 Importing-Exporting PD4J (Omitted) WS-BPEL......Page 246 Processes......Page 247 Grammer of WS-BPEL......Page 248 Implementing ebXML in WLI......Page 251 WLI and ebXML......Page 254 Summary......Page 259 Overview on Security Considerations......Page 260 How Does SSL Work?......Page 261 Two-Way SSL in WebLogic Server......Page 263 Issues with SSL Encryption......Page 264 XML Firewalls......Page 265 WS-Security Documents......Page 267 WS-Security and Interoperability......Page 268 Designing for Security Using WSS......Page 269 WS-Security in WebLogic......Page 270 Security Standards in Identifying Management......Page 272 Liberty Alliance......Page 273 SAML......Page 274 Summary......Page 275 Understanding Performance Constraints......Page 276 Securing Web Services......Page 277 Factors Impacting Performance......Page 278 HP OpenView Transaction Analyzer......Page 279 SOAP Implementation Options......Page 280 XML Parser Selection......Page 282 XML Compression......Page 285 XML Accelerators......Page 286 SSL Accelerators......Page 287 Improving the Business Logic Layer and Database Performance......Page 288 Leveraging Patterns......Page 289 Tuning EJBs......Page 292 Tuning the JVM......Page 294 Summary......Page 295 Differences from Traditional Testing......Page 296 Extending Current Testing Methods......Page 297 Invest in Testing Tools......Page 298 Building Your Test Suite......Page 299 Test View in WebLogic Workshop......Page 300 Unit Testing......Page 301 Functional Testing......Page 302 Integration Testing......Page 305 Interoperability Testing......Page 308 Performance Testing......Page 310 Load Testing......Page 313 Stress Testing......Page 315 Capacity Planning Testing......Page 316 Summary......Page 317 Why Managing Web Services Is Different......Page 318 Managing at Different Levels......Page 319 Comparing with Traditional IT Management......Page 320 Using JMX Architecture......Page 321 Using JMX on WebLogic Server......Page 323 Using JMX with HP OpenView......Page 325 Using J2EE Management Specification......Page 328 Management Using Web Services (MUWS) Specification......Page 329 WS-Notification......Page 331 Core Capabilities......Page 332 Business Monitoring......Page 333 Controlling Management Functions......Page 334 Other General Evaluation Criteria......Page 336 Lifecycle Management for Web Services......Page 337 WSM......Page 338 Effective Improvements Using LCM4WS......Page 339 Web Services Network Monitoring......Page 341 Summary......Page 343 A......Page 344 B......Page 345 C......Page 346 E......Page 347 H......Page 348 J......Page 349 M......Page 350 O......Page 351 Q-R......Page 352 S......Page 353 T......Page 354 W......Page 355 X-Z......Page 358 This book describes the lifecycle of activities for IT projects -design,development, deployment and management. The concepts are peppered withlessons learned from a real implementation of web services at Hewlett-Packardwith external business partners. Those who want to go beyond understandingconcepts and actually implement web services will find this book a greatreference. Special attention is given to topics one would encounter in largeenterprises -- business relevance, prototyping, methodologies, tying to existinginfrastructure, testing and manageability. One of the world's leading Web services experts offers powerful insights for every stage of the Web services lifecycle from design through management. She demonstrates how to design robust Web services that align with business processes, smoothly integrate with existing infrastructure, deliver superior performance and security, and can be managed effectively