10 Rules to justify a true Web service

No.of Views1054
Bookmarked0 times
Downloads 
Votes0
By  helloraj   On  16 Feb 2010 00:02:30
Tag : Web Service , General
10 Rules to justify a true Web service
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

We may written a lot of web services or asked to consume a web services by our application. Every Technology got its own definition and behaviour to proof it .Here is the 10 rules to justify your service is a true Web service.


1. Web service Uses WSDL

A Web Service should expose its service contract using WSDL.  If it can't give you a WSDL document

, it's probably just XML over HTTP.

2. Web service Uses SOAP

All messages sent from and received by the Web Service must use SOAP formatting.  If it's not using SOAP it's probably just XML over HTTP.

3. Web service  Uses XSD

 


All data types in the SOAP payload must be XSD compliant.  No platform native types are allowed.  If it's not using XSD it's probably just XML over HTTP.

4. Web service Uses XML

The underlying messages should of course be formatted using XML.

5. No Arbitrary Binary Data


The message payload should 7 bit ASCII and should contain no embedded binary blobs.  Any binary data passed over a Web Service should be sent using either SwA, DIME or MTOM (preferably MTOM).

6. Transport is likely to be HTTP


Although not a requirement, the majority of Web Services today use HTTP as the transport.  Compliant Web Services should definitely work over HTTP.

7. Discovery can be through UDDI


Again although not a requirement, it should be possible to host the Web Service endpoint using UDDI.


8. Agreed Versions of Specifications


The versions of the above specifications (WSDL, SOAP, XSD, XML, HTTP, UDDI) should be in line with the latest version of the WS-I Basic Profile (http://www.ws-i.org/) - to ensure Web Service compliance between vendors.

9. Operations should be Document Style

Operations to/from a Web Service should be Document/Message Style (e.g. SendOrder(order o)).  RPC style should be avoided (e.g. SetOrderLine1(orderId id)).

10. Should be compliant with WS-*

Compliant Web Services should be able to accept WS-* payloads and extensions for Security, Reliability and Transactions (although not all stacks today support these yet).Thank you for reading.

 
Sign Up to vote for this article
 
About Author
 
helloraj
Occupation-Not Provided
Company-Not Provided
Member Type-Fresh
Location-Not Provided
Joined date-23 Jul 2009
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
    Another article of our series that talks about accessing URL shortening services programmatically. This article is talking about is.gd shortening service, how you can use it, and how to access it via your C#/VB.NET application.
    Published Date : 30/Aug/2010
    This is the first article of our series that talks about accessing URL shortening services programmatically. Here we introduce new concepts like the REST API. We also have a brief discussion of URL shortening services APIs and how you can access them. In addition, we are going to talk about .NET support for the REST API and tools and techniques available that would help us during our journey through the API. A working example built using C# and WinForms is available at the end of this a
    Published Date : 29/Aug/2010
    Flex Communication with ASP.NET WebService
    Published Date : 16/Feb/2010
    Using the OneWay Web Service Attribute
    Published Date : 15/Feb/2010
    Access web service WSDL file in dynamically in client side using C#
    Published Date : 15/Feb/2010
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top