473,503 Members | 2,238 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservice method names standards ?

Hi all,

Can you let me know if there is a standard naming convention for
webservice methods ? I have seen some with a lower case first letter
and some with an upper case first letter. Also what is the standard
naming convention for the properties of classes passed into the
methods?
We have to implement web services in .NET and Java and they need to use
exactly the same naming convention for the exposed methods.

Thanks for the help,
Charles Gamble.

Sep 12 '06 #1
5 4411
"CharlesG" <Ch************@Singularity.co.ukwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Hi all,

Can you let me know if there is a standard naming convention for
webservice methods ? I have seen some with a lower case first letter
and some with an upper case first letter. Also what is the standard
naming convention for the properties of classes passed into the
methods?
We have to implement web services in .NET and Java and they need to use
exactly the same naming convention for the exposed methods.
There is no Web Services naming standard for methods. In part, this is
because web services don't have methods - they have operations.

The Java and .NET naming conventions conflict. Pick one.

John
Sep 12 '06 #2
Hi,

Thanks for the info John. However, I would like to base the decision on
some kind of reasoning, which convention is most popular ?

Thanks,
Charles.

John Saunders wrote:
"CharlesG" <Ch************@Singularity.co.ukwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Hi all,

Can you let me know if there is a standard naming convention for
webservice methods ? I have seen some with a lower case first letter
and some with an upper case first letter. Also what is the standard
naming convention for the properties of classes passed into the
methods?
We have to implement web services in .NET and Java and they need to use
exactly the same naming convention for the exposed methods.

There is no Web Services naming standard for methods. In part, this is
because web services don't have methods - they have operations.

The Java and .NET naming conventions conflict. Pick one.

John
Sep 13 '06 #3
"CharlesG" <Ch************@Singularity.co.ukwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

Thanks for the info John. However, I would like to base the decision on
some kind of reasoning, which convention is most popular ?
Why do you assume that reasoning is involved in what is, essentially, an
matter of taste?

The only practical reasons I've ever heard are shared by the two platforms.
They both use camel case so that word breaks are clearly visible, at a
glance. thisIsAMethod is more readable than this_is_a_method. However,

ThisIsAMethod and
thisIsAMethod

are pretty much the same.

I think there may be some reasoning around "capitalize the important
things". In that sense, I, personally would vote for method names being
important enough to capitalize. The Java camp thinks that class names are
important enough to capitalize, but not method names. This may be because
Java doesn't use properties, as C# does, so they may be capitalizing method
names at the same level as attribute names (which start with lower case).
That makes a sort of sense.

Being "in the .NET camp", I get to use properties, for which I use a leading
capital letter, the same as I do for methods. This leads me to use leading
capitals on my method names.
Of course, it would be simpler to simply document your reasoning by saying
that "John Saunders said so"... ;-)

John

P.S. I was using IBM Rational Application Developer as a tool to prove that
my WSDL can be consumed by Java. I noticed that it actually warns you
against using leading capital letters in method names. You actually get a
little yellow warning icon saying "that method name is not recommended".

Sep 13 '06 #4

"John Saunders" <john.saunders at trizetto.comwrote in message >
P.S. I was using IBM Rational Application Developer as a tool to prove
that my WSDL can be consumed by Java. I noticed that it actually warns you
against using leading capital letters in method names. You actually get a
little yellow warning icon saying "that method name is not recommended".
That's a pretty goofy warning. I was curious about what interesting things
you may have encountered that made it necessary to prove your WSDL can be
consumed by Java. Have you documented anything about that on the web?

Ron
Sep 21 '06 #5
"RYoung" <no@mail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
"John Saunders" <john.saunders at trizetto.comwrote in message >
>P.S. I was using IBM Rational Application Developer as a tool to prove
that my WSDL can be consumed by Java. I noticed that it actually warns
you against using leading capital letters in method names. You actually
get a little yellow warning icon saying "that method name is not
recommended".

That's a pretty goofy warning. I was curious about what interesting things
you may have encountered that made it necessary to prove your WSDL can be
consumed by Java. Have you documented anything about that on the web?
I don't have a document, but IBM does:

Web Services support for Schema/WSDL(s) containing optional JAX-RPC 1.0/1.1
XML Schema Types at
(http://www-1.ibm.com/support/docview...d=swg21207642).

They seem to feel the fact that this is a JAX-RPC issue absolves them from
the responsibility for fixing the bug.

John

P.S. I don't want to leave the impression that Java is bad with web
services. There are some things that the IBM stuff did well. For instance,
it translates SOAP faults in the WSDL into actual exceptions. .NET won't
even include them in a generated WSDL for you.

It was also good to see what code got generated in Java vs. C#. I wouldn't
_want_ my clients to have to jump through hoops in order to use my web
service, just because they happened to choose Java for development.
Sep 21 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2427
by: Norm Dotti | last post by:
I'm using the AppDomain.CurrentDomain.GetAssemblies() method to obtain a list of currently loaded assemblies. This returns the expected assembly name and version values. However, if I make a...
2
1194
by: None | last post by:
Dear All, I am writing an application which needs to send some XML in a SOAP envelope to a Java webservice. I have absolutely no idea where to begin. Can anyone possibly point me to a good...
0
938
by: Ice | last post by:
All - I just wanted to folks thoughts on what "ideal" webservice design is based on their experiences taking into consideration the two observations (and any others you may have) below: 1....
1
4397
by: Thomas D. | last post by:
Hello all, I'm using the IXmlSerializable interface for a project and encounter some problems when testing my webservice in a client application. I know this interface is undocumented and not...
1
3574
by: Nattydreadlock | last post by:
Hi, I've written an ASP.Net webservice which takes somes specific .net objects. Now I want to caal this service by PHP, which normally would be possible, after all that's the main reason of...
3
2483
by: Mike | last post by:
Hi, I'm delevloping a webservice that returns typed datasets with visual studio 2005. The problem is, that the typed data set in the client app is not the same as in the webservice. If I change...
0
2347
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to...
4
1498
by: dan655t | last post by:
Hello, I've come here to get some advise from the experts. Currently I am tasked with modifying a web service that currently supports one product to support multiple products. It needs to be...
3
2776
by: huohaodian | last post by:
I have a webservice class MyService.asmx.cs with: namespace XMLWS { public class Poster : System.Web.Services.WebService
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7291
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.