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 | |
---|
14 | G_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 | |
---|
23 | typedef struct _SoupSoapMessagePrivate SoupSoapMessagePrivate; |
---|
24 | |
---|
25 | typedef struct { |
---|
26 | SoupMessage parent; |
---|
27 | SoupSoapMessagePrivate *priv; |
---|
28 | } SoupSoapMessage; |
---|
29 | |
---|
30 | typedef struct { |
---|
31 | SoupMessageClass parent_class; |
---|
32 | } SoupSoapMessageClass; |
---|
33 | |
---|
34 | GType soup_soap_message_get_type (void); |
---|
35 | |
---|
36 | SoupSoapMessage *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); |
---|
39 | SoupSoapMessage *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 | |
---|
43 | void soup_soap_message_start_envelope (SoupSoapMessage *msg); |
---|
44 | void soup_soap_message_end_envelope (SoupSoapMessage *msg); |
---|
45 | void soup_soap_message_start_body (SoupSoapMessage *msg); |
---|
46 | void soup_soap_message_end_body (SoupSoapMessage *msg); |
---|
47 | void soup_soap_message_start_element (SoupSoapMessage *msg, |
---|
48 | const char *name, |
---|
49 | const char *prefix, |
---|
50 | const char *ns_uri); |
---|
51 | void soup_soap_message_end_element (SoupSoapMessage *msg); |
---|
52 | void soup_soap_message_start_fault (SoupSoapMessage *msg, |
---|
53 | const char *faultcode, |
---|
54 | const char *faultstring, |
---|
55 | const char *faultfactor); |
---|
56 | void soup_soap_message_end_fault (SoupSoapMessage *msg); |
---|
57 | void soup_soap_message_start_fault_detail (SoupSoapMessage *msg); |
---|
58 | void soup_soap_message_end_fault_detail (SoupSoapMessage *msg); |
---|
59 | void soup_soap_message_start_header (SoupSoapMessage *msg); |
---|
60 | void soup_soap_message_end_header (SoupSoapMessage *msg); |
---|
61 | void 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); |
---|
67 | void soup_soap_message_end_header_element (SoupSoapMessage *msg); |
---|
68 | void soup_soap_message_write_int (SoupSoapMessage *msg, long i); |
---|
69 | void soup_soap_message_write_double (SoupSoapMessage *msg, double d); |
---|
70 | void soup_soap_message_write_base64 (SoupSoapMessage *msg, const char *string, int len); |
---|
71 | void soup_soap_message_write_time (SoupSoapMessage *msg, const time_t *timeval); |
---|
72 | void soup_soap_message_write_string (SoupSoapMessage *msg, const char *string); |
---|
73 | void soup_soap_message_write_buffer (SoupSoapMessage *msg, const char *buffer, int len); |
---|
74 | void soup_soap_message_set_element_type (SoupSoapMessage *msg, const char *xsi_type); |
---|
75 | void soup_soap_message_set_null (SoupSoapMessage *msg); |
---|
76 | void soup_soap_message_add_attribute (SoupSoapMessage *msg, |
---|
77 | const char *name, |
---|
78 | const char *value, |
---|
79 | const char *prefix, |
---|
80 | const char *ns_uri); |
---|
81 | void soup_soap_message_add_namespace (SoupSoapMessage *msg, |
---|
82 | const char *prefix, |
---|
83 | const char *ns_uri); |
---|
84 | void soup_soap_message_set_default_namespace (SoupSoapMessage *msg, |
---|
85 | const char *ns_uri); |
---|
86 | void soup_soap_message_set_encoding_style (SoupSoapMessage *msg, const char *enc_style); |
---|
87 | void soup_soap_message_reset (SoupSoapMessage *msg); |
---|
88 | void soup_soap_message_persist (SoupSoapMessage *msg); |
---|
89 | |
---|
90 | const char *soup_soap_message_get_namespace_prefix (SoupSoapMessage *msg, const char *ns_uri); |
---|
91 | |
---|
92 | xmlDocPtr soup_soap_message_get_xml_doc (SoupSoapMessage *msg); |
---|
93 | |
---|
94 | SoupSoapResponse *soup_soap_message_parse_response (SoupSoapMessage *msg); |
---|
95 | |
---|
96 | G_END_DECLS |
---|
97 | |
---|
98 | #endif |
---|