source: trunk/third/libsoup/libsoup/soup-soap-message.h @ 21108

Revision 21108, 4.5 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21107, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2003, Novell, Inc.
4 */
5
6#ifndef SOUP_SOAP_MESSAGE_H
7#define SOUP_SOAP_MESSAGE_H 1
8
9#include <time.h>
10#include <libxml/tree.h>
11#include <libsoup/soup-message.h>
12#include <libsoup/soup-soap-response.h>
13
14G_BEGIN_DECLS
15
16#define SOUP_TYPE_SOAP_MESSAGE            (soup_soap_message_get_type ())
17#define SOUP_SOAP_MESSAGE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_SOAP_MESSAGE, SoupSoapMessage))
18#define SOUP_SOAP_MESSAGE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_SOAP_MESSAGE, SoupSoapMessageClass))
19#define SOUP_IS_SOAP_MESSAGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_SOAP_MESSAGE))
20#define SOUP_IS_SOAP_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOUP_TYPE_SOAP_MESSAGE))
21#define SOUP_SOAP_MESSAGE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_SOAP_MESSAGE, SoupSoapMessageClass))
22
23typedef struct _SoupSoapMessagePrivate SoupSoapMessagePrivate;
24
25typedef struct {
26        SoupMessage parent;
27        SoupSoapMessagePrivate *priv;
28} SoupSoapMessage;
29
30typedef struct {
31        SoupMessageClass parent_class;
32} SoupSoapMessageClass;
33
34GType             soup_soap_message_get_type (void);
35
36SoupSoapMessage  *soup_soap_message_new (const char *method, const char *uri_string,
37                                         gboolean standalone, const char *xml_encoding,
38                                         const char *env_prefix, const char *env_uri);
39SoupSoapMessage  *soup_soap_message_new_from_uri (const char *method, const SoupUri *uri,
40                                                  gboolean standalone, const char *xml_encoding,
41                                                  const char *env_prefix, const char *env_uri);
42
43void              soup_soap_message_start_envelope (SoupSoapMessage *msg);
44void              soup_soap_message_end_envelope (SoupSoapMessage *msg);
45void              soup_soap_message_start_body (SoupSoapMessage *msg);
46void              soup_soap_message_end_body (SoupSoapMessage *msg);
47void              soup_soap_message_start_element (SoupSoapMessage *msg,
48                                                   const char *name,
49                                                   const char *prefix,
50                                                   const char *ns_uri);
51void              soup_soap_message_end_element (SoupSoapMessage *msg);
52void              soup_soap_message_start_fault (SoupSoapMessage *msg,
53                                                 const char *faultcode,
54                                                 const char *faultstring,
55                                                 const char *faultfactor);
56void              soup_soap_message_end_fault (SoupSoapMessage *msg);
57void              soup_soap_message_start_fault_detail (SoupSoapMessage *msg);
58void              soup_soap_message_end_fault_detail (SoupSoapMessage *msg);
59void              soup_soap_message_start_header (SoupSoapMessage *msg);
60void              soup_soap_message_end_header (SoupSoapMessage *msg);
61void              soup_soap_message_start_header_element (SoupSoapMessage *msg,
62                                                          const char *name,
63                                                          gboolean must_understand,
64                                                          const char *actor_uri,
65                                                          const char *prefix,
66                                                          const char *ns_uri);
67void              soup_soap_message_end_header_element (SoupSoapMessage *msg);
68void              soup_soap_message_write_int (SoupSoapMessage *msg, long i);
69void              soup_soap_message_write_double (SoupSoapMessage *msg, double d);
70void              soup_soap_message_write_base64 (SoupSoapMessage *msg, const char *string, int len);
71void              soup_soap_message_write_time (SoupSoapMessage *msg, const time_t *timeval);
72void              soup_soap_message_write_string (SoupSoapMessage *msg, const char *string);
73void              soup_soap_message_write_buffer (SoupSoapMessage *msg, const char *buffer, int len);
74void              soup_soap_message_set_element_type (SoupSoapMessage *msg, const char *xsi_type);
75void              soup_soap_message_set_null (SoupSoapMessage *msg);
76void              soup_soap_message_add_attribute (SoupSoapMessage *msg,
77                                                   const char *name,
78                                                   const char *value,
79                                                   const char *prefix,
80                                                   const char *ns_uri);
81void              soup_soap_message_add_namespace (SoupSoapMessage *msg,
82                                                   const char *prefix,
83                                                   const char *ns_uri);
84void              soup_soap_message_set_default_namespace (SoupSoapMessage *msg,
85                                                           const char *ns_uri);
86void              soup_soap_message_set_encoding_style (SoupSoapMessage *msg, const char *enc_style);
87void              soup_soap_message_reset (SoupSoapMessage *msg);
88void              soup_soap_message_persist (SoupSoapMessage *msg);
89
90const char       *soup_soap_message_get_namespace_prefix (SoupSoapMessage *msg, const char *ns_uri);
91
92xmlDocPtr         soup_soap_message_get_xml_doc (SoupSoapMessage *msg);
93
94SoupSoapResponse *soup_soap_message_parse_response (SoupSoapMessage *msg);
95
96G_END_DECLS
97
98#endif
Note: See TracBrowser for help on using the repository browser.