Hi all, I have some basic WebService questions
#1
Let's say I have a business class named "Customer". The customer would be
able to log in and update their personal information like so
void UpdateCustomerInformation(Customer customer)
changing information such as their telephone number etc. Now the customer
class would have information in it such as "Decimal CreditLimit". This
should not be modifyable by the customer but only by a sales manager.
Should I ignore this setting if the current user is not a SalesManager, or
should I have two different methods that accept two different types of
parameter?
#2
On a similar subject to #1, what if a customer can see all of their own
information (CreditLimit for example) but only look up a subset of
information about other customers? Instead of returning concrete types like
Customer would it be a good or bad idea for my WebMethods to pass
pre-defined XML back and forth? For example
void UpdateCustomer(string customerXml)
string GetCustomerInformation(Guid customerId)
I appreciate any help/comments
Pete