Solved

Web Service Parameter Naming Convention

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

615 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