jQuery in Action, 3rd edition
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Represent Web Services in Sequence Diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Represent Web Services in Sequence Diagram" Watch "Represent Web Services in Sequence Diagram" New topic

Represent Web Services in Sequence Diagram

mario buonopane

Joined: Apr 07, 2011
Posts: 2
in my use case i have to invoke existing Web Services. How can i represent the invocation of this Web Services in a Sequence Diagram?
At the moment i simply have inserted, in my sequence diagram, the object "xxxxx" with stereotype <<Web Services>> and i have put synchronous messages to it with the name of the services i except to have. Do i need to introduce any JAXB layer/object or wrapping design pattern?

Yegor Bugayenko
Ranch Hand

Joined: Feb 11, 2011
Posts: 79
Depends on what level of abstraction you're working on. If your sequence diagram explains how SuD is communicating with third-parties - JAXB is not important. It's not necessary to know for a reader how exactly Java will be converted to XML. What is important is how and when data are being sent between components.

SCEA, PMP, read my blog: www.yegor256.com
Sharma Ashutosh

Joined: Apr 06, 2001
Posts: 346
In my assignment also i need to do that. I have shown the Web Services client, the message class(request) , the response class and the Web Services as a Entity. I provided a note in the sequence diagram that i am not showing tool generated classes and JAXB classes. That's it.

Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Anil Chowdary
Ranch Hand

Joined: Jan 20, 2009
Posts: 43
Object with stereotype <<Web Service>> should be good enough for the assignment submission. You no need to show(In fact you should avoid) any API/Framework related classed in the diagram.

jQuery in Action, 3rd edition
subject: Represent Web Services in Sequence Diagram
It's not a secret anymore!