Solved

Web Service Parameter Naming Convention

Posted on 2010-08-25
2
474 Views
Last Modified: 2013-11-19
I'm developing a webservice with several public methods. As an old VB programmer, I would normally use data type prefixes for my method parameters. For example, I might have method defined as (VB.NET):

Public Function GetSomething(ByVal nThingID As Integer) As String
    Return "something"
End Function

But since this will be a public web method and since the wsdl will define the data types, I'm wondering if my parameter should really just be ThingID (or ThingId). Are there guidelines? Or even some opinionated suggestions?

Thanks in advance.
0
Comment
Question by:ZekeLA
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 33526755
The norm would tend to ditch the old hungarian notation and opt for camel-casing instead (i.e. lower-case first letter for first word, upper-case first letter for subsequent words)

Here's Microsoft's recommendations: http://msdn.microsoft.com/en-us/library/ms229045.aspx
0
 
LVL 1

Author Closing Comment

by:ZekeLA
ID: 33526958
Thanks. I had only found the .net 2 conventions which wasn't as comprehensive.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Checkbox in a dynamic GridVIew is not clickable? 5 26
performance issue in asp web 5 32
tutorial for ebay api 3 34
Query still returning duplicates 5 29
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question