def get_callback_info():
    """Retrieves the messageId and replyToAddress from the message header.
    This is used for async calls."""
    messageId = None
    replyToAddress = None
    from soaplib.wsgi_soap import request
    headerElement = request.header
    if headerElement:
        headers = headerElement.getchildren()
        for header in headers:
            if header.tag.lower().endswith('messageid'):
                messageId = header.text
            if header.tag.lower().find('replyto') != -1:
                replyToElems = header.getchildren()
                for replyTo in replyToElems:
                    if replyTo.tag.lower().endswith('address'):
                        replyToAddress = replyTo.text
    return messageId, replyToAddress
