Question

How do I draw a class in UML that uses a web service?

Was it helpful?

Solution

You could also use WSDL (Web Services Description Language) UML profile with the appropriate WSDL stereotypes.

That would give for example:

--------------------
| <<wsdl:service>> |
--------------------
|   MyWebService   |
--------------------
|                  |
--------------------
|                  |
--------------------
{URI="/MyWebService"}

A full UML example involving many components of a web service would be:


(source: xml.com)

OTHER TIPS

Sounds like a sequence diagram, with client and service instances, where the client makes the call to the service. If the request is synchronous, you'll see the return come back to the client; if not, there's no return.

I would have draw the web service as an interface.

I would put a boundary around the web service to indicate it's located outside my system boundary.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top