This xml describes the behaviour of an XML-RPC implementation of a weather service. The automaton format is the same as for the client i.e. in terms of send, recv actions. Although again, these mirror the actual operations - the mediator performs a send whereas the service itself will receive these messages.
The key difference, is that a service must colour its automaton with a protocol and ** an endpoint address ** so that the mediator knows how to interact with the services.
<protocolName>XMLWeatherService</protocolName>
<attributes>
<ProtocolBinding>XMLRPCServerBinding.xml</ProtocolBinding>
<ServerHost>http://127.0.0.1:8081</ServerHost>
</attributes>
Here we using the XMLRPC server binding to colour the protocol and also point that the service is hosted on the localhost at port 8081. Note, this must reference where the service is (it does not perform and hosting); therefore, if the service is hosted at port 8087 then the tag value would be http://127.0.0.1:8087