TCP communication with SSL and XML format