Our Portfolio

Progressive API Conversion

Progressive had a proof-of-concept API for insurance price quotes written in PHP. They wanted it converted to C# for better client compatibility; the API was designed to be installed locally on customer web servers so they can integrate insurance quotes into their sites. The API needed to deliver results in both XML and JSON formats. The final deliverable included four .NET projects: the main web services solution, the class library, a web site project with front-end templates that consume the various services as a reference for client customization and a unit test project (using NUnit) as a way of checking the server was set up properly. In addition, I provided documentation on how to set up the projects and a CHM file documenting the code.

One challenge I encountered: while the only differences between the JSON and XML web services was the format of the code (internally they both use the same function and translate the XML into JSON via XSL if needed), .NET 2.0 insists all web services reply in XML. Newer versions make it easy to overcome this, but getting rid of the XML tags in 2.0 is torturous enough I felt it called for a good hack.

csharp php api conversion documentation nunit tdd