I have a legacy ASP application written in JScript. At the moment it uses its own database tables for user accounts and authentication. The customer data for this app is being moved into Microsoft Dynamics CRM 4.0, and I need to modify the ASP site's authentication to look up user credentials in Dynamics CRM instead.
Here's the possible approaches I've come up with so far:
- Move all the authentication tokens into explicit cookies instead of relying on Session variables; then rewrite the login pages, etc. as .aspx pages, and connected to the Dynamics web service from within these pages using the WSDL-generated wrapper class.
- Create a COM wrapper around the WSDL-generated wrapper class, and invoke this using Server.CreateObject() from within the legacy ASP pages
- Write a JSON wrapper around the WSDL interface, and call this from within legacy ASP using the MSXML2.ServerXMLHTTP COM object or something similar
- Call WSDL from ASP directly and parse the results using MSXML or something.
I'm thinking option 1 is probably the best at this stage, but I'm hoping someone out there has tried this before and can share the benefit of their experience!