Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camel Caps SOAP method names

Tags:

soap

One of my co-workers is developing SOAP API for php application and he is wondering if CamelCaps names are some kind of convention for SOAP methods?

Our current API has lower_caps_and_underscores, but it seems somewhat strange when compared with random subset of other SOAP APIs, and we wouldn't really want to annoy consumers of API with our wrong convention.

like image 202
dpavlin Avatar asked Nov 16 '25 09:11

dpavlin


1 Answers

In almost all standard SOAP API, I have seen, had CamelCaps. You may want to look standard SOAP API. i.e. google SOAP api

I think so Underscore may annoy users. You can follow either of them however more important is to follow any single standard naming conventions.

Other important thing to consider for naming a service is, naming should clearly establish a meaning and a context of the what service will do in a particular context.

i.e.

GetCustomerHistoryById = Get a single customers history by id
GetCustomersHistory = Get all customer's history

like image 165
Sun Avatar answered Nov 18 '25 20:11

Sun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!