Win a copy of Head First Android this week in the Android forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

confused over use of Web Service Broker

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using Web service broker pattern to interface with a system which has exposed its functionality through Web services . There can be many web services but I have just exposed one method in the WebServiceBroker implementation i.e invokeService(serviceName,parameterList) .
Another alternative I could think is to provide seperate methods in WebServiceBroker which can be used by bisiness methods , but doing so is giving an impression of WebServiceBroker being a businessdelegate and this also decrease the flexibility as each time a new service is added the WebServiceBroker interface needs to be changed .
Can some one suggest me if there is anything wrong with the first approach .

Thanks and Regards,
Chiku
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've researched this topic when I was doing my assignment.
I think that your are mixing up Proxy and Web Service Broker. Web Service Broker is basically a class which acts as an endpoint for web service, which methods are invoked after a web service request is processed. And Proxy may be used when you need to wrap other system web service calls into some class (I think it's your case)
 
chiku awasthi
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so the methods in the proxy will be similar to business delegate ( most of them ), are there any other patterns which can be used in above cases .
 
Dmitri Ericsson
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, they will be similar, but business delegate is designed to be presentation layer pattern, and Proxy is in the business logic.
Check out the thread I've started some time ago, it's almost the same question as you ask:
https://coderanch.com/t/483154/Architect-Certification-SCEA/Session-Facade-Business-Delegate-Client
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic