Architecting Web Services
Chapter 3: XML Technical Primer
- Listing 3-1: Sample XML Schema
Chapter 4: Using XML
- Listing 4-1: DOM node IDL
Chapter 6: Building a Web Services Call
- Listing 6-1: CompoundInterest Interface
- Listing 6-2: calcInteraction.xsd
- Listing 6-3: calcInteraction.dtd
- Listing 6-4: Standard doPost Method in Visual Age
- Listing 6-5: Standard doGet Method in Visual Age
- Listing 6-6: Alternative doGet Method
- Listing 6-7: stagingTask Method
- Listing 6-8: Parsing and Capturing the Request Data
- Listing 6-9: Validating the Request Document
- Listing 6-10: Updated stagingTask Method
- Listing 6-11: Skeleton of the getRate method
- Listing 6-12: The getRate Method
- Listing 6-13: Sample calcInteraction Request
- Listing 6-14: calcInteraction Response
- Listing 6-15: weatherCheck Request Schema
- Listing 6-16: weatherCheck Response Schema
- Listing 6-17: Weather Web service interaction schema
- Listing 6-18: Base Listener for Weather Web Service
- Listing 6-19: Calling the S3Weather Component
- Listing 6-20: Writing the Response from Scratch
- Listing 6-21: Response Template
- Listing 6-22: Building the Response from a Template
- Listing 6-23: Global.asa Code for Caching the Response Template
- Listing 6-24: Final ASP Page for Weather Web Service
- Listing 6-25: Visual Basic Test Client for weatherWS
Chapter 7: Building a Web Services Workflow
- Listing 7-1: Reservation system's makeReservation method
- Listing 7-2: Service variables schema
- Listing 7-3: Amenity element schema
- Listing 7-4: Availability criteria schema
- Listing 7-5: Availability request schema
- Listing 7-6: Availability results schema
- Listing 7-7: Availability Response Schema
- Listing 7-8: Sample null result payload for an availability request
- Listing 7-9: Integrated hotel availability interaction schema
- Listing 7-10: The reservationWS interface schema
- Listing 7-11: Hotel detail response schema
- Listing 7-12: Detail interaction schema
- Listing 7-13: The reservationWS interface with availability interaction
- Listing 7-14: U.S. address data type schema
- Listing 7-15: Credit card data type schema
- Listing 7-16: Reservation request schema
- Listing 7-17: Reservation response schema
- Listing 7-18: Reservation interaction schema
- Listing 7-19: The reservationWS interface schema with reservation interaction
- Listing 7-20: Basic HTML output for an availability form
- Listing 7-21: XML data payload for hotel availability form
- Listing 7-22: Availability form interaction
- Listing 7-23: The reservationWS interface schema with availability form interaction
- Listing 7-24: XML data payload for reservation form
- Listing 7-25: Reservation form interaction schema
- Listing 7-26: The reservationWS interface schema with reservation form interaction
- Listing 7-27: The clsListener initial implementation
- Listing 7-28: HRSWS test consumer subroutine
- Listing 7-29: The getSessionID and updateSession stored procedures
- Listing 7-30: Schema validation with the MSXML4 parser
- Listing 7-31: Calling getSessionID stored procedure from the processRequest function
- Listing 7-32: Availability form responder logic
- Listing 7-33: Availability form sample response
- Listing 7-34: setAvailabilityCriteria stored procedure
- Listing 7-35: The wsFetchAvailability method
- Listing 7-36: Availability request responder logic
- Listing 7-37: Availability request response
- Listing 7-38: The getHotelContent stored procedure
- Listing 7-39: The wsFetchHotelContent function
- Listing 7-40: Hotel detail responder logic
- Listing 7-41: Hotel detail request response
- Listing 7-42: Reservation form responder logic
- Listing 7-43: Reservation form response
- Listing 7-44: The getAvailabilityCriteria stored procedure
- Listing 7-45: The getRoomTypes stored procedure
- Listing 7-46: Reservation interaction responder code
- Listing 7-47: Response from reservation request
- Listing 7-48: Web services listener with integrated security
- Listing 7-49: The getConsumerID stored procedure
- Listing 7-50: Responder code for authentication check and error handling
- Listing 7-51: XSL template node creation and response modification
Chapter 8: Consuming Web Services
- Listing 8-1: The Weather Forecaster Response Schema
- Listing 8-2: The Weather Forecaster Request Schema
- Listing 8-3: The callWeatherWS() Method
- Listing 8-4: The Mortgage Calculator Request/Response Interface Schema
- Listing 8-5: The Mortgage Calculator Presentation Code
- Listing 8-6: The Mortgage Calculator Consumer Code
- Listing 8-7: availabilityRequestTemplate.xml
- Listing 8-8: detailRequestTemplate.xml
- Listing 8-9: reservationRequestTemplate.xml
- Listing 8-10: The Hotel Detail View Integration
- Listing 8-11: The checkAvailability Method
- Listing 8-12: The makeReservation Method
- Listing 8-13: The checkAvailability Response Stylesheet
Chapter 9: The Direction of Web Services
- Listing 9-1: The WSDL file for a stock quote Web service
- Listing 9-2: An ebXML order transaction