Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Style question: SOAP method naming.

by gellyfish (Monsignor)
on Aug 23, 2006 at 08:05 UTC ( [id://569033]=note: print w/replies, xml ) Need Help??


in reply to Style question: SOAP method naming.

I would say that on the whole SOAP "method" names have tended to be in camelCase because that is the convention in the languages that some of the earliest published services were made in (e.g. Java .) Of course this only really matters if you are using "rpc/encoded" envelopes rather than "document/literal" but you probably want to consider what the toolkit is going to do with the method name in framing the response - if you go with the lower case underscore separated names you are likely to have a body payload with an element name of something like: my_perl_method_nameResponse which is the worst of both worlds and horrible IMO, however this is going to be of concern if people are examining the Envelope or the WSDL manually. Personally nowadays I would tend to think of web services in terms of the message-centric document/literal style rather than the method-centric (and therefore less implementation neutral) rpc/encoded in which case the design and naming issue becomes one of what is most appropriate for the XML documents that are being exchanged.

/J\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://569033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found