def _Dynamic_SendMessage(self, request, response):
    from_jid = self._GetFrom(request.from_jid())
    log_message = []
    log_message.append('Sending an XMPP Message:')
    log_message.append('    From:')
    log_message.append('       ' + from_jid)
    log_message.append('    Body:')
    log_message.append('       ' + request.body())
    log_message.append('    Type:')
    log_message.append('       ' + request.type())
    log_message.append('    Raw Xml:')
    log_message.append('       ' + str(request.raw_xml()))
    log_message.append('    To JIDs:')
    for jid in request.jid_list():
      log_message.append('       ' + jid)
    self.log('\n'.join(log_message))

    for jid in request.jid_list():
      if self._ValidateJid(jid):
        response.add_status(xmpp_service_pb.XmppMessageResponse.NO_ERROR)
      else:
        response.add_status(xmpp_service_pb.XmppMessageResponse.INVALID_JID)
Implementation of XmppService::SendMessage.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/xmpp/xmpp_service_stub.py/XmppServiceStub._Dynamic_SendMessage