We need to integrate third party SOAP api with our system. As we are SaaS solution provider, we need to support all version of third party. We have configuration that Customer A has version 1.8, Customer B has version 2.0. (Version may took months for new version.)
What I am looking for is a general strategy for creating a library that can work with all versions.
As a solution I think to create multiple namespace version wise in single C# library.
- TP1.DLL
- Namespace - TP1_v1.8
- Entity1 (Proxy class)
- Entity2 (Proxy class)
- Namespace - TP2_v2.0
- Entity1 (Proxy class)
- Entity2 (Proxy class)
- Namespace - TP1_v1.8
I want wrapper class for all entity irrespective of version. so i will call that wrapper class and it will initialize object with required version.
How can i do that ? Is it right way to handle a situation like this?
If any further information is needed, let me know!
Thanks!
Ankur Kalavadia