Solved

Web Service Parameter Naming Convention

Posted on 2010-08-25
2
469 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Read about why website design really matters in today's demanding market.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now