Christian Weyer: Smells like service spirit

What's first?

TechEd Europe 2003 samples: WEB390

You can now download a ZIP archive with all samples shown in my talk "WEB390: Ouch! Common XML Web services headaches (and possible solutions)" at TechEd Europe 2003 in Barcelona. This archive contains nearly all samples I have been talking about and showed. However, it does not yet contain the SQLCLR project with which you can dynamically invoke XML Web Services from within SQL Server - this is due to ongoing article writing efforts - sorry! Stay tuned for this ...

Here is a sneek preview of the contents:

  • Leverage existing XML Schemas
    This sample solution shows you how to use existing XML Schemas in an ASMX Web Services project (it uses Scott Short most excellent library introduced in a MSDN Magazine article). Additionally it enables you to validate the incoming SOAP request against either an external schema or the internal and automatically generated Schemas reflected in the WSDL description.
  • Accessing the SOAP message
    This sample solution shows you how to access the SOAP Envelope messages both on the client and on the service side.
  • Dynamically call services
    This sample solution shows you how to dynamically invoke XML Web Services without the need of adding a WSDL web reference to a client at design time. Just give the DynWSLib a WSDL at runtime, set some properties and off you go!
    There are two testing application for the lib:
    - SimpleDynWSClient:
      This is a very simple test app which shows you the basic steps involved in using the DynWSLib to dynamically invoke Web Services.
    - WSLibTester:
      This is a much more sophisticated testing application which enables you to test XML Web Services in a more professional way. It compeletely visualizes a generic client app where you simply have to provide the WSDL to your Web Service.
  • Common types and 'Type Fidelity?'
    This sample solution shows you how to make it possible to use a common types library (assembly DLL) which holds the types/classes for your tiered applications in a Web Services world. It uses a small helper library which has essentially one method to 'safely' convert the original Web Service proxy's type to your targeted common type.
  • Asynchronous programming
    This sample solution shows you how to asynchronously call XML Web Services from a Windows Forms app.

 

DISCLAIMER:
The sample is provided as is. Be sure that it is actually only a sample and does not in any sense conform to any coding guidelines and has not been proven to be a stable product! The code has not been reviewed by third parties or even been refactored for optimization - be sure that it is still much improvable.
The author cannot be made responsible for any damage or inconveniencies but is willed to accept any questions and comments to this sample.
Please notice that this code is only a technology demo and should not be included unedited into any serious project.
The code is not documented.

Comments

No Comments