UML class diagram web service

北城余情 提交于 2019-12-22 08:38:25

问题


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


回答1:


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)




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/428377/uml-class-diagram-web-service

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!