/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Authors :
 *  JP Rosevear <jpr@ximian.com>
 *  Rodrigo Moya <rodrigo@ximian.com>
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU Lesser General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
 * USA
 */

#ifndef E_GW_MESSAGE_H
#define E_GW_MESSAGE_H

#include "soup-soap-message.h"

G_BEGIN_DECLS

SoupSoapMessage *e_gw_message_new_with_header (const gchar *uri, const gchar *session_id, const gchar *method_name);
void             e_gw_message_write_string_parameter (SoupSoapMessage *msg, const gchar *name,
						      const gchar *prefix, const gchar *value);
void             e_gw_message_write_string_parameter_with_attribute (SoupSoapMessage *msg,
								     const gchar *name,
								     const gchar *prefix,
								     const gchar *value,
								     const gchar *attrubute_name,
								     const gchar *attribute_value);
void             e_gw_message_write_base64_parameter (SoupSoapMessage *msg,
						      const gchar *name,
						      const gchar *prefix,
						      const gchar *value);
void e_gw_message_write_int_parameter (SoupSoapMessage *msg, const gchar *name, const gchar *prefix, glong value);


void             e_gw_message_write_footer (SoupSoapMessage *msg);

G_END_DECLS

#endif
