
This is a HTNG 2.0 web service sample that implements payment posting 
(http://htng.org/PWSWG/2006/04/SingleGuestItinerary#PostPayment)

The sample was developed using a small part of Activity.wsdl designed by Guest Itinerary WG. 
The WSDL that was used can be found in the \Schema subfolder.
Please note, no custom Fault conditions were defined in the WSDL.


The following pre-requisites are required on the system in order to build and run the sample :

MS IIS
MS .NET Framework v2.0
MS Visual Studio 2005
MS Web Service Enhancements v3.0


How to build/test :

1. Using IIS management, create a virtual folder named ActivityService under Default Web Site, 
and specify the \ActivityService subfolder of the demo package as its physical location (full path must be provided).
When asked, grant execution permissions on the virtual folder.

2. Verify that ASP.NET is enabled on the system (Win2003 server only)

3. Verify that ASP.NET 2.0 (not 1.x!) mappings (asmx, aspx etc.) are defined for the virtual folder.
If not, run the Visual Studio 2005 Command Prompt tool, and execute the following command : 
aspnet_regiis.exe -s W3SVC/1/ROOT/ActivityService

4. Open and build the solution in Visual Studio 2005

5. Run the client application and perform tests

Three username/password sets are accepted by the service : AAA/aaa, BBB/bbb and CCC/ccc.
Try using an invalid logon to check that authentication fails.
Try posting a payment with a tip exceeding 20% of the principal amount.

Open \ActivityService\InputTrace.xml and \ActivityService\OutputTrace.xml 
to check out the content of the SOAP messages, and some other trace information.

Have fun!

Alex Lobakov (PAR Springer-Miller Systems)
