70518

Descripción

Apunte sobre 70518, creado por javakidson el 22/08/2013.
javakidson
Apunte por javakidson, actualizado hace más de 1 año
javakidson
Creado por javakidson hace más de 10 años
64
0

Resumen del Recurso

Página 1

Designing Services and  Method granularityCohesiondefines how methods are grouped into different services. The method within a service are cohesive if they perform similar activities with closely related dataTypes  of CohesionFunctional Cohesionmethods in a service are grouped together because they perform different aspect of single taskSequential cohesionmethods in a service a grouped because they are called during the same phase in a processCommunication cohesionmethod in a service are grouped together because they accept the same data as parametermethod granularityAs a general rule design method that perform an entire transactionAs a general rule if you cannot respond to a request within 5 sec, you should divide the request into multiple methodUsing RESTUnlike SOAP and most other web services implementations, Restful web services do not require the use of XMLMessage and Data Contractswhenever possible  use data contract because it is simpler to define and provide more flexibility by allowing you to use different messaging technique. Choose a message contract only when you need to conform to existing standard, such as when you need to replace an existing SOAP web service or when you need to pass information in the header separate from the data itselfUsing SOAP HeadersSystem related info like custom login credentialuser token, preferences, application or operating system identification and versions, TimeStamps should be communicated through SOAP headers  as opposed to being put in the body of messagesCustom SOAP headers using Generic Classes( create an instance of generic System.ServiceModel.Channels.MessageHeader using the data you need to pass to the header and then adding it to the OperationContext.Current.OutgoingMessageHeaders collection on the client. On the server read the header by calling the generic OperationContext.Current.IncomimhMessageHeaders.GetHeaderAsynchronous: one way operation that does not return response immediately but can return a response using a callback. Client of asyncronous service are not immediately aware of error that might occurSynchronous: A two-way request response operation. The client submits a request and waits until the service returns a response. Synchronous services can return  fault messages which behaves like exception Message Exchange PatternStatefulStateless ( as general rule use stateless where possible)VersioningFollowing this versioning technique ; increment the version number only when an update might cause another application to fail, and have other applications always prefer the version they were compiled and tested in. Updates must provide both backward and forward compatibility (forward compatibly means application compiled with the updates will work on a computer without the update)

New Page

Mostrar resumen completo Ocultar resumen completo

Similar

INGLÉS. Frases Literales...
JL Cadenas
Julio Cortázar
crisferroeldeluna
Historia de la Filosofía
Guillermo Carril
linea del tiempo de la evolución del microscopio
elsa garcia
FGM-11. DERECHOS Y DEBERES DE LOS MIEMBROS DE LAS FUERZAS ARMADAS
antonio del valle
estrellas del cielo en la tierra
paopin28
FORMAS DE HACER NEGOCIOS INTERNACIONALES
yandsbernardo
TEST DEL MODERNISMO Y GENERACIÓN DEL 98
iranzu90 pascal
Simulacro Prueba ICFES
pulidonomesque
GoConQr. EJEMPLOS...
Ulises Yo
Test de signos musicales
mariajesus camino