Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Services Proxy Pattern

 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
To access a web service, I am going to use Proxy design pattern in my architecture.
But how much detail I need to provide about the proxy class?
The proxy class is supposed to be generated by tool and it contains communication detail like form a SOAP message,
which is hard to show in diagram.
Can I just hide all of proxy class implementation detail and make assumption that it will generated by tool?

Best,
 
Dmitri Ericsson
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I've used this pattern for web services, I've just shown a class e.g. ExternalSystemService, put a stereotype saying that it's a Proxy and commented that business logic uses this class and JAX-WS libraries to connect external systems via web services. I didn't show any generated objects for web service messages.
 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Dmitri! I really appreciate.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!