Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET Design Patterns
This is the forum to discuss the Wrox book Professional ASP.NET Design Patterns by Scott Millett; ISBN: 978-0-470-29278-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 6th, 2011, 01:55 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Request-Response Pattern


I'm trying to apply the case study to an actual application. In the case study, there is a CreateCustomerRequest and CreateCustomerResponse message. In this case, a customer would be "user". In my application, a user can register themselves or an administrator can create a user from the admin area. When a user registers, they enter minimal data about themselves. When an admin creates a user, that data is added, plus the administrator can add additional details, such as add the user to a list of user groups and change the state of the account (e.g. Pending, Approved, Disapproved).

Having said all this, would it be recommended to create two different sets of Request-Responses: CreateUserRequest, CreateUserResponse and RegisterUserRequest, RegisterUserResponse?
Reply With Quote
  #2 (permalink)  
Old September 20th, 2011, 09:04 AM
elbandit's Avatar
Wrox Author
Points: 599, Level: 8
Points: 599, Level: 8 Points: 599, Level: 8 Points: 599, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts

Hi getoutofmylabratory!

Thanks for buying the book an sorry for the late reply!

Yes this seems like two use cases, you could share some of the logic behind the scenes when creating the user.

I hope this answers your question!

Reply With Quote
The Following User Says Thank You to elbandit For This Useful Post:
getoutofmylaboratory (September 20th, 2011)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request and Response properties? lornarmac BOOK: Beginning ASP.NET 4 : in C# and VB 3 November 26th, 2010 02:09 PM
XML request and get response praveenkumar .NET Web Services 0 May 23rd, 2007 04:13 AM
Request and Response from server in XML snarreddi XML 3 December 24th, 2004 07:20 AM
Request-response in Tomcat sherbir Servlets 0 September 4th, 2004 04:26 AM

All times are GMT -4. The time now is 09:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.