public static void parseXMLResponse(HttpsURLConnection conn, String xml_response){ 	
    	try {
			if (conn.getResponseCode() == 200 && xml_response.contains("<transaction>")) //http status 200
			{
			    TransactionResponse transaction_response = (TransactionResponse)unmarshalJAXBObjectToXml(TransactionResponse.class, xml_response);
			    
			    if (transaction_response.result_code != null && transaction_response.result_code.equals("0000"))
			    {
			        System.out.println("-----------------------------------------------------");
			        System.out.println("TRANSACTION APPROVED: " + transaction_response.authorization_code);
			    }
			    else
			    {
			        String code = "";
			        if (transaction_response.error_code != null)
			            code = transaction_response.error_code;
			        if (transaction_response.result_code != null)
			            code = transaction_response.result_code;
			        System.out.println("-----------------------------------------------------");
			        System.out.println("TRANSACTION ERROR: Code=" + code + " Message=" + transaction_response.display_message);
			    }
			}
			else{
			    System.out.println("-----------------------------------------------------");
			    System.out.println("INVALID RESPONSE");
			}
		} catch (IOException e) {
			System.out.println("-----------------------------------------------------");
            System.out.println("EXCEPTION: " + e.getMessage());
		}
    	
    }