Click here to Skip to main content
15,881,812 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Document Archiving Pin
Brady Kelly18-Mar-08 5:10
Brady Kelly18-Mar-08 5:10 
GeneralVisio UML - add to the built in types. Pin
DanB198317-Mar-08 12:01
DanB198317-Mar-08 12:01 
GeneralWeb Service for DataBase call Pin
lokeshgupta1314-Mar-08 6:37
lokeshgupta1314-Mar-08 6:37 
GeneralRe: Web Service for DataBase call Pin
Mark Churchill16-Mar-08 1:15
Mark Churchill16-Mar-08 1:15 
GeneralRe: Web Service for DataBase call Pin
Rob Philpott17-Mar-08 2:36
Rob Philpott17-Mar-08 2:36 
GeneralASP.net 3.5 and SQL Server Reporting Pin
camby7512-Mar-08 9:27
camby7512-Mar-08 9:27 
GeneralRe: ASP.net 3.5 and SQL Server Reporting Pin
pmarfleet16-Mar-08 1:54
pmarfleet16-Mar-08 1:54 
GeneralIntegration services Pin
sprague29511-Mar-08 11:31
sprague29511-Mar-08 11:31 
We have to create some integration web services and were thinking about best practices. Should we favor flattening out the object model or be verbose (leave less room for interpretation/error)?


Example 1. Complex Types – The employeeListItem would be used to provide summary information about the employees. The salaryEmployee and hourlyEmployee would be used to provide details.

<employeeListItem>
<employeeId/>
<firstname/>
<lastname/>
<type/> (‘Salary’ or ‘Hourly’)
</employeeListItem >

<salaryEmployee>
<employeeId/>
<firstname/>
<lastname/>
<dateOfHire/>
<officeId/>
<salary/>
</salaryEmployee >

<hourlyEmployee>
<employeeId/>
<firstname/>
<lastname/>
<dateOfHire/>
<officeId/>
<hourlyrate/>
<hoursPerWeek/>
</ hourlyEmployee >

Example 2. Flatten objects – Just one type here all the details are provided in one object. When an employee is of type ‘Salary’ the ‘hourlyRate’ and ‘hoursPerWeek’ will be unused.

<employee>
<employeeId/>
<firstname/>
<lastname/>
<officeId/>
<type/>(‘Salary’ or ‘Hourly’)
<salary/>
<hourlyRate/>
<hoursPerWeek/>
</ employee >


Of course our objects are not as simple as this example but this general idea. So what would you guys favor 1 type or 3 types in this scenario?
GeneralRe: Integration services Pin
Pete O'Hanlon11-Mar-08 11:44
mvePete O'Hanlon11-Mar-08 11:44 
GeneralArchitecture 101.... Pin
daniel.byrne11-Mar-08 7:36
daniel.byrne11-Mar-08 7:36 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 7:42
led mike11-Mar-08 7:42 
GeneralRe: Architecture 101.... Pin
daniel.byrne11-Mar-08 7:48
daniel.byrne11-Mar-08 7:48 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 7:58
led mike11-Mar-08 7:58 
GeneralRe: Architecture 101.... Pin
daniel.byrne11-Mar-08 8:06
daniel.byrne11-Mar-08 8:06 
GeneralRe: Architecture 101.... Pin
Scott Dorman11-Mar-08 8:20
professionalScott Dorman11-Mar-08 8:20 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 8:56
led mike11-Mar-08 8:56 
RantRe: Architecture 101.... Pin
jtvberg11-Apr-08 10:11
jtvberg11-Apr-08 10:11 
GeneralRe: Architecture 101.... Pin
Pete O'Hanlon11-Mar-08 11:17
mvePete O'Hanlon11-Mar-08 11:17 
GeneralClass Design Help Pin
mark_w_4-Mar-08 22:27
mark_w_4-Mar-08 22:27 
GeneralRe: Class Design Help Pin
Steven Campbell5-Mar-08 10:31
Steven Campbell5-Mar-08 10:31 
GeneralRe: Class Design Help Pin
mark_w_5-Mar-08 22:36
mark_w_5-Mar-08 22:36 
QuestionGenral architecture question. Pin
joysnlove3-Mar-08 14:06
joysnlove3-Mar-08 14:06 
GeneralRe: Genral architecture question. [modified] Pin
mark_w_4-Mar-08 22:36
mark_w_4-Mar-08 22:36 
GeneralRe: Genral architecture question. Pin
Pete O'Hanlon5-Mar-08 1:04
mvePete O'Hanlon5-Mar-08 1:04 
GeneralManaging Application ImageLists Pin
Tristan Rhodes3-Mar-08 2:05
Tristan Rhodes3-Mar-08 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.