Web Service Development Using C # .NET - Compatibility Check

I would like to get some information about the list of issues that need to be considered when developing web services on the .NET platform using WCF to make sure that it is compatible with most clients (Java, .NET, etc.) ...) .

I used to see cases where we developed services that were easily used by .NET clients, but at the moment when we tested the service with other platforms, the service broke down.

I have a few points as follows:

  • Always use POCO data types
  • Stick to BasicHttpBinding if WSHttpBinding is not required

My main problem is with Data Contract objects that are serialized and transmitted over the cable.

Thanks in advance.

+3
source share
2 answers

My suggestion was to use the WS-I Compliance Test after you create your service.

Check out: http://www.ws-i.org/deliverables/workinggroup.aspx?wg=testingtools

WS-I means the interaction of Web services, if your services pass almost all the tests, you can be 100% sure that they work with different clients.

+2
source

- WCF - , WS- *. , wsHttpBinding " " .

BasicHttpBinding - , , , .. : wsHttpBinding, , basicHttp, , wsHttp. .

DataContract - - .NET XML- (XSD ), , . , [DataContract] WCF .

, , , SOAP, , , . - WCF, , WCF , - -!

- WCF , .

+3

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


All Articles