# Component Diagram: Web Service

**URL:** <https://forums.visual-paradigm.com/t/component-diagram-web-service/12138>\
**Category:** UML\
**Created:** [May 25, 2012, 11:59pm UTC](https://forums.visual-paradigm.com/t/component-diagram-web-service/12138 "2012-05-25T23:59:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajarratt](https://avatars.discourse-cdn.com/v2/letter/a/bb73d2/32.png) [@ajarratt](https://forums.visual-paradigm.com/u/ajarratt)\
**Post date:** [May 28, 2012, 11:08am UTC](https://forums.visual-paradigm.com/t/component-diagram-web-service/12138/1 "2012-05-28T11:08:04Z")

</div>

Question for a component diagram for a call and return type web service:

In a component diagram do I show two connections one for a call and repsonse or is it implied that the call and response are part of the same flow?

Any ideas?

---

<div class="post-metadata">

**Author:** ![d6chung](https://avatars.discourse-cdn.com/v2/letter/d/d07c76/32.png) [@d6chung](https://forums.visual-paradigm.com/u/d6chung)\
**Post date:** [May 30, 2012, 10:26am UTC](https://forums.visual-paradigm.com/t/component-diagram-web-service/12138/2 "2012-05-30T10:26:11Z")

</div>

> [@ajarratt](#):
>
> In a component diagram do I show two connections one for a call and repsonse or is it implied that the call and response are part of the same flow?

I find your use of call and response a bit confusing given that we’re talking about components. My understanding of the purpose of a component diagram is to model the structural relationship between components of a system. That is, activity and flow isn’t modelled in a component diagram. I think of it as who provide what for whom.

In an attempt to answer your question though, perhaps you’re asking whether ports require both an incoming (realisation/circle) and outgoing (usage/socket) interface? No, that is not required. You are allowed to specify that a port is both incoming and outgoing or it could be incoming-only or outgoing-only. If you need to specify bi-directional relationship, then you may specify two interfaces going in opposite directions on a port.
