Any tool to intercept and see the message, check XMPP request and response?

We are creating chat application. We would like to test by intercepting packet and check the request and response. Is there is any third party tool available through which i can do this. Please suggest if there is any such too. How wireshark can help me to do this?