What are the best practices for naming WCF endpoints and methods? What are the conventions you usually follow?
preguntado el 27 de agosto de 11 a las 18:08
I'm not aware of any specific naming conventions here - just use something "appropriate", define a standard, and stick to it :-)
If you're dealing with SOAP web services, those are typically more geared towards functions / methods - e.g. your methods would be something like
UpdateCustomerOrder or stuff like that. Try to come up with a consistent naming - don't use
Get.... una vez,
Fetch.... the other time, and
Load.... the next time. Same for saving: don't use
Put... - settle on one and stick to it.
If you're more into the REST style of WCF - then you're dealing more with recursos, e.g. you would have
Inventory as resources in your URL, and then use the basic HTTP verbs (
GET, PUT, POST, DELETE) to handle the basic CRUD operations.