What should I know when developing interoperable WCF web service?

后端 未结 3 1217
北海茫月
北海茫月 2020-12-15 13:35

I\'m starting this Wiki to collect best practices about creating interoperable web services (not clients) in WCF. Please share your experience if you know any feature which

3条回答
  •  执笔经年
    2020-12-15 14:30

    Fairly simple:

    • avoid any .NET specifics like Exceptions (turn them into SOAP faults)

    • don't use any binding that start with net like netTcp, netNamedPipes, netMsmq and so forth - use wsHttpBinding for secure WS-* services, and basicHttpBinding for maximum reach / compatibility with even the weirdest client platforms

    • don't use the NetDataContractSerializer

提交回复
热议问题