Submit requests from client to WCF service

I would like you to do the following.

We see SOA as a solution to some of the conceptual issues that we have. We do not want to build the same logic several times. Therefore, you want to make some WCF services and have different clicks to receive data through these services (possibly even Apple applications). The ideal situation is that the wedges are as thin as possible, only being concerned about the performance. All business logic and data access should be eliminated in WCF services.

Now my boss looked at it, and his biggest problem is basically that we are in chaos. It assumes that we will define a new method for each query that we want to execute in the database, something like this.

So how:

  • RetrieveCustomerById
  • RetrieveCustomerByName
  • RetrieveCustomerByStoreId
  • RetrieveCustomerWithPersonalDetailsButWithoutAddressById
  • etc...

Therefore, his idea is for cliënts to build queries and send them to WCF services. WCF services perform queries, apply business logic, and return results.

I'm really interested in the whole con or pro that you guys can come up with. Thank you in advance for what you thought.

+3
source share
4 answers

Is this a SOAP WCF service? Or is a RESTful one?

, , , RESTful, .

:.

/? ID = ID /Customers? = NAME /Customers? StoreID = STORE ?/ ID = & withPersonalDetails = & withPersonalDetails =

, ID,

//{ID}/

URL- .

SOAP, .

, , , , , . , , .

, .

EDIT:

, - : " encapsulation coupling". , . , , , - , , , . , , .

-, , - , , , - , , - - eek!

-, , ( , ), .

-, -? . - , .

, , - . , / - , .

( , , .)

+1

, , , , ,

  • , ( , )?
  • RetrieveCustomerWithPersonalDetailsButWithoutAddressById, CustomerWithPersonalDetailsButWithoutAddress - .
  • - , , object ( , Variant VB6 COM). , .
  • RetrieveCustomerByStoreId , , , .

, DDD, .

+1

, cliënts WCF. WCF , - .

Specification Pattern DDD.

, , 95% .

EntityQueryThe class in WCF RIA Servicesis an example of how a specification template can be used in a client-service architecture.

0
source

All Articles