• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

webservice design pattern

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to understand which one is the best design pattern for my requirement.

We are the servers needs to provide the web service to clients. Clients send the request with the request we need to search the field in our database and send the multiple values as response.

Suggest which design pattern fit.

 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks bit vague when you say like that. What options have you looked at here? You can send a SOAP response or similar in this case? What particular issues you have faced?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We are the servers needs to provide the web service to clients. Clients send the request with the request we need to search the field in our database and send the multiple values as response.



You need to flesh out your requirements before starting to think about abstractions like design patterns.

The first question that occurs to me is what are your clients expecting?

The big choice for a web service is SOAP versus RESTful architecture. Are your clients committed to one or the other?

Are they accessing your service by web browser or custom client software?

Do clients ever update your database with new data or are all transaction read only?

Bill
 
Laxman Nagalla
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks William for your response.

Below is my answer for your questions.

The first question that occurs to me is what are your clients expecting?

Response: Clients expects is they will send the request of one field we need to search the field in our DB and send the response back with few fields in that record.

The big choice for a web service is SOAP versus RESTful architecture. Are your clients committed to one or the other?
Response: No one is committed for any web service. We thought we can implement in SOAP service.

Are they accessing your service by web browser or custom client software?
Response: through web browser

Do clients ever update your database with new data or are all transaction read only?

Response: All the transaction are read only.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is very clearly suitable for a RESTful architecture service. With utterly no reason to consider SOAP.

REST is an "architecture" ie a Design Pattern controlled by a fixed meaning for the HTTP methods - in your case all user requests are GET - which implies returning the present state of a resource. A traditional web service in other words.

Bill

 
Get out of my mind! Look! A tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic