473,659 Members | 2,680 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 4421
"CharlesG" <Ch************ @Singularity.co .ukwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.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******** *************@m 73g2000cwd.goog legroups.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.goo glegroups.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_metho d. 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.saunder s at trizetto.comwro te 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.comwro te in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>
"John Saunders" <john.saunder s at trizetto.comwro te 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
2441
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 webservice call and then call AppDomain.CurrentDomain.GetAssemblies() it returns an additional assembly name, with gibberish values such as "udmsmlb1", "janolvnq", etc. and always a version number "0.0.0.0".
2
1202
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 place to read about how to go about doing this? I've not dealt with XML much in the past. Also, instead of creating an XML document every time with nodes which are the same, but some different values, is there a way of templating that XML? ie. I...
0
948
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. Calls to webservices are still RPC-based i.e. explicit method names are used e.g. "GetWeather" as opposed to generic "Send" with "function" contained in the message sent. 2. Lack of clarity of what the request/response entities should be i.e....
1
4415
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 intended for use, but I think this is the only solution for my situation. I searched the web, in the hope finding the answer, without any luck, so my final hope is with you. Let me explain the situation: I have an 'export'-wrapper to my regular...
1
3586
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 existence for web services. I have three function:
3
2493
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 the property 'NullValue' of the row to (empty) the dataset on the client does still throw an exception. I added a column to see if the project updates the reference.cs - and it does! This is the generated code from the original dataset:
0
2379
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 provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
4
1506
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 backwards compatible so other products still work with the same method calls and the new products need to have methods with the same names, but different logic. Currently we keep some credential information from the client that consumes the...
3
2789
by: huohaodian | last post by:
I have a webservice class MyService.asmx.cs with: namespace XMLWS { public class Poster : System.Web.Services.WebService
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2750
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 we have to send another system
2
1737
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.