views:

42

answers:

3

I know naming a webservice method is probably a personal preference, however I'm interested to know what you guys would name it, and why?

1:

AccountCreate
AccountDelete
AccountList
AccountUpdate

or

2:

CreateAccount
DeleteAccount
ListAccount
UpdateAccount
A: 

how about:

/Account/Create
        /Delete
        /List
        /Update
dave thieben
+3  A: 

You're obviously building SOAP based Web Services. When choosing names for those, I tend to go with the most natural English representation. In your case, that is your second set of options.

For me, it makes things clearer and easier for people consuming my services if I name them as close to plain English as possible. For instance if people are trying to create something, but they're not really sure what, they can scan through the documentation of the Create operations and find the closest match for what they need.

It's also consistent with how I name the rest of my methods (assuming we're not talking about RESTful URLs).

Justin Niessner
+2  A: 

Number 2, because I allways use [Verb][object] in methods where possible.

Tokk