phpwcfinteropdatacontractmessagecontract

Does the message contract provide interoperability across different languages?


I am reading about WCF services. I am new to the WCF services. I read that WCF provides interoperability. I want to know in which context it provides the interoperability. Is it providing the interoperability in the context of consuming the .net wcf web services from any other language (e.g. php) or for any different purpose. I have read the following article.

http://blogs.msdn.com/b/drnick/archive/2006/11/27/mixing-message-contract-attributes.aspx

In this way if we provide the OperationContract for all the methods in wcf web service by passing or returning MessageContract for some method and DataContract for some method then what will happen in php or any other language ? *Whether the method having DataContract as parameter or return type are available in php or any other language ? or Whether the method having MessageContract as parameter or return type are available in php or any other language ? or Both are available in php or any other language *


Solution

  • At least messagecontract should provide a workable solution consuming with PHP, according to https://github.com/geersch/WcfServicesWithPhp5.

    And I can find a similar post for DataContracts at http://www.rizalalmashoor.com/blog/calling-a-wcf-service-from-php/.

    And comparing the way these two contract types are consumed from PHP, I think it would not give a problem combining the two in the same WCF service.