Converting ASMX to WCF Web Service

前端 未结 2 371
南旧
南旧 2021-02-02 18:31

I need to upgrade our web services to use WCF instead of ASMX. If the signatures of the web services stays the same, will existing clients that already call the ASMX service ha

2条回答
  •  悲哀的现实
    2021-02-02 18:56

    If you use the BasicHttpBinding for your new WCF service, and implement the same methods with the same message structure, existing callers should be able to call into this new WCF service without any change on their part.

    There's also an AspNetCompatibilityRequirements attribute in order to get around some potential compatibility issue - see the MSDN documentation on it.

    Marc

提交回复
热议问题