Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Web Service Parameter Naming Convention

Posted on 2010-08-25
2
Medium Priority
?
518 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 1000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

721 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