0

My problem is that I don't know if SOAP and Rest Web Services are modeled like this in a deployment diagram. I've been searching the internet and this is all I've found.

My objective is to model a web application that consults two Web Services, one SOAP (on a remote machine) and one REST (on my local machine).Deployment diagram

alvgama
  • 19
  • 2
  • Looks okay (syntactically). What is your issue? SO is not meant for reviews, so please focus on a single question. – qwerty_so Jan 19 '23 at 22:57
  • My problem is that I don't know how to model a Web Service that is SOAP and another that is REST in a deployment diagram. – alvgama Jan 19 '23 at 23:04
  • Maybe you're lucky and someone has too much time. But basically this question is way too broad. – qwerty_so Jan 20 '23 at 11:10

1 Answers1

0

Your question about SOAP and REST in deployment diagram has two parts: the services and the communication protocol:

  • the services expose an API and process incoming request. In your diagram, this is represented with respective API components on the web server, which seem to expose the API to the outside words, and dispatch the requests to backend execution environments.
  • the communication protocol, which use an http communication path from outside world to the web server, and use dedicated SOAP over http and REST over http with the backend execution environments.

This seems perfectly fine, if this is what you're doing. The only question that I'd have, is whether you'd have some client-side code, in which case, the browser should be an execution environment, and the JavaScript would materialise components executing inside the browser.

The dashed dependency arrows that you seem to use to clarify between which components the communication takes place, are however ambiguous, because nothing in the UML specs relate this dependency to the communication.

A less ambiguous way would be to use sockets and lollipops on the components, and have the dependencies between these elements. If in the web server side, you don't really have different API components but the web controller is dispatching to the backend, you could replace them by sockets and use a «REST» and «SOAP» stereotype and draw the interface dependency to the interfaces provided by the backends.

Christophe
  • 68,716
  • 7
  • 72
  • 138