Chapter 2. Getting started with web services
Listing 2.1. A sample XML document
Listing 2.2. Extract from the XML schema This schema is sourced from http://schemas.xmlsoap.org/soap/envelope/ and is copyrighted by Martin Gudgin. describing a SOAP 1.1 envelope
Listing 2.3. Locating a named child element under a given DOM element
Listing 2.4. A SOAP RPC request sent over HTTP
Listing 2.5. Example illustrating the use of multiRef in SOAP encoding
Listing 2.6. Example of a SOAP 1.1 Fault
Listing 2.7. Example of a SOAP 1.2 Fault
Listing 2.8. WSDL binding in action
Listing 2.9. Declaring a port type
Listing 2.10. Sample brokerage service
Listing 2.11. Service invocation using pregenerated stubs
Listing 2.12. Service invocation using dynamic proxy
Listing 2.13. Service invocation using DII
Listing 2.14. Command for generating a C# client stub
Listing 2.15. Sample C# client, BrokerageClient.cs, using the generated stub to retrieve a stock quote
Chapter 3. Extending SOAP for security
Listing 3.1. Simple SOAP header entry example to add sender information
Listing 3.2. SOAP Header element attributes
Listing 3.3. Extract from com.manning.samples.soasecimpl.example2.WSSecurityUsernameHandler: Reads a username from the WS-Security header and saves it in the MessageContext
Listing 3.4. Extract from com.manning.samples.soasecimpl.example2.Example2-SoapBindingImpl: Reads username from MessageContext and uses it as part of the business logic