WCF ChannelFactory vs. SOA Principles?

Separates a project containing the wcf interface and datacontracts, and using them through ChannelFactory to use the service based on SOA principles?

My architect advises that generating proxies using the Add Service Reference is preferable.

+3
source share
4 answers

I think it depends on some things: your infrastructure, security policies, management, etc.

We develop our WSDL (service and message contracts) and XML schemas (data contracts), and then use svcutil.exe * to create a proxy server. At this point, we have code that we can use to use or support the service. Of course, I'm just talking about code, output.config will be modified with the correct behavior, bindings and endpoints as they are resolved.

Once the service is inserted, it exits the XML gateway. From now on, we can start testing services with the help of "Add a link to a service ..." If you just want to save time and transfer your pre-generated proxy server to someone else or your WSDL files will not be displayed (since they are behind an XML gateway that does not respond to them), then what you are doing seems fine.

, " ..." .

* Java - (WSDL2Java/ClientGen/ IDE).

0

datacontracts SOA, . , . /datacontracts , (, , ).

, - , , SOA, . , , , , , .

ChannelFactory (, dotnet), /datacontracts dll ( " " "svcutil". Exe'). , , stubbing, ..

0

- , , -, . , -. :

SOA , /, OO.

, SOA ( ) ( ) , "" SOA.

WS- * ( , ..), , , , , .

WS- * WSDL, , SOA, , , (WS - *).

, factory, - , " ", , IDE - WSDL , .

-, , , - , .

, .

0
source

The standards that we carefully reviewed and adopted at my company are that we distribute service contracts in two ways. As a joint assembly upon delivery to teams within the company and as WSDL when provided to customers and other third parties. This is the standard that we discussed with Microsoft during the design / process analysis, and they agreed that this is the right approach.

0
source

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


All Articles