Create two WCF and ASMX services

We have a set of ASMX style web services that were created using the first contract paradigm using WSDL and XSD provided from an external source.

We want to expose WCF services based on these WSDLs, but at the same time, we also need to continue to provide ASMX services based on the provided WSDLs.

I am curious if there is a way to use a common WSDL-based interface and / or a common set of data objects that are created on the basis of XSD ... Or another option might shut down the WCF service using ASMX ...

Any suggestions or previous experience with support how to simplify the transition without completely rethinking the wheels for both services?

+3
source share
1 answer

Absolutely, this is entirely possible.

The best way to do this is to make WCF and ASMX services simply pass the request to the inner class defined in the assembly referenced by ASMX and WCF.

Refactoring for your particular case to follow this paradigm will be trivial in almost all cases.

+2
source

Source: https://habr.com/ru/post/1775678/


All Articles