Reputation: 65205
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?
AccountCreate
AccountDelete
AccountList
AccountUpdate
or
CreateAccount
DeleteAccount
ListAccount
UpdateAccount
Upvotes: 2
Views: 242
Reputation: 4502
Number 2, because I allways use [Verb][object] in methods where possible.
Upvotes: 3
Reputation: 245479
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).
Upvotes: 3