There is a UML symbol for external entities. System B could be displayed as an external entity on a diagram for System A.
The symbol is a circle with a line below.
You would indicate the dependency upon System B and could attach a note to the diagram stating that communication occurs via web service.