platform/upstream/libsoup.git
23 years agoDo a g_return_val_if_fail() on the SoupContext being passed in so we don't
Joe Shaw [Thu, 21 Jun 2001 16:53:19 +0000 (16:53 +0000)]
Do a g_return_val_if_fail() on the SoupContext being passed in so we don't

2001-06-21  Joe Shaw  <joe@ximian.com>

* src/soup-core/soup-message.c (soup_message_new): Do a
g_return_val_if_fail() on the SoupContext being passed in so we don't
generate a bad SoupMessage.

23 years agoUse soup_context_uri_hash and soup_context_uri_equal for matching existing
Alex Graveley [Wed, 20 Jun 2001 02:59:55 +0000 (02:59 +0000)]
Use soup_context_uri_hash and soup_context_uri_equal for matching existing

2001-06-19  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-context.c (soup_context_from_uri): Use
soup_context_uri_hash and soup_context_uri_equal for matching
existing server contexts instead of just matching on path.
(soup_context_uri_hash): Added. Returns a hash of the user, authmech,
password, and path of a given SoupUri.
(soup_context_uri_equal): Added. Returns TRUE if the user, authmech,
password, and path of a two SoupUris match.

23 years agoFormatting.
Alex Graveley [Mon, 18 Jun 2001 16:41:46 +0000 (16:41 +0000)]
Formatting.

23 years agoRemove accidental \r's. No more commiting from windows.
Alex Graveley [Mon, 18 Jun 2001 16:34:53 +0000 (16:34 +0000)]
Remove accidental \r's. No more commiting from windows.

23 years agoUn-windozed the unistd check
Dick Porter [Mon, 18 Jun 2001 13:04:10 +0000 (13:04 +0000)]
Un-windozed the unistd check

(there was a ^M at the end of the line, that caused strange messages to
come from configure)

23 years agoadd check for unistd.h
Alex Graveley [Fri, 15 Jun 2001 19:06:05 +0000 (19:06 +0000)]
add check for unistd.h

2001-06-15  Alex Graveley  <alex@ximian.com>

* configure.in: add check for unistd.h

* src/soup-core/soup-apache.c,
  src/soup-core/soup-cgi.c,
  src/soup-core/soup-context.c,
  src/soup-core/soup-digest.c,
  src/soup-core/soup-nss.c,
  src/soup-core/soup-openssl.c,
  src/soup-core/soup-private.h,
  src/soup-core/soup-queue.c,
  src/soup-core/soup-server.c,
  src/soup-core/soup-ssl-proxy.c,
  src/soup-core/soup-ssl.c.
  src/soup-wsdl-runtime/wsdl-typecodes.c: #ifdef protect config.h
  and unistd.h inclusion.

23 years agoreplace 'childs' with 'xmlChildrenNode', 'root' with 'xmlRootNode' and
Dick Porter [Fri, 15 Jun 2001 14:17:42 +0000 (14:17 +0000)]
replace 'childs' with 'xmlChildrenNode', 'root' with 'xmlRootNode' and

2001-06-15  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-schema.h:
* src/soup-wsdl-runtime/wsdl-schema.c:
* src/soup-wsdl-runtime/wsdl-schema-glib.h:
* src/soup-wsdl-runtime/wsdl-schema-glib.c:
* src/soup-wsdl/wsdl-parse.c:
* src/soup-core/soup-serializer.c:
* src/soup-core/soup-parser.c: replace 'childs' with
'xmlChildrenNode', 'root' with 'xmlRootNode' and 'CHAR' with
'xmlChar' for compatibility with both libxml1 and libxml2

* configure.in: Check for either libxml1 or libxml2, favouring
libxml1 but selectable with --with-libxml=[1,2]

23 years agoIf we're passing in NULL (to reset the proxy), don't try to
Joe Shaw [Fri, 15 Jun 2001 00:48:06 +0000 (00:48 +0000)]
If we're passing in NULL (to reset the proxy), don't try to

2001-06-14  Joe Shaw  <joe@ximian.com>

* src/soup-core/soup-misc.c (soup_set_proxy): If we're passing in
NULL (to reset the proxy), don't try to soup_context_ref() it.

23 years agoDon't start from header_len offset. (soup_finish_read): Don't copy the
Alex Graveley [Thu, 14 Jun 2001 22:26:17 +0000 (22:26 +0000)]
Don't start from header_len offset. (soup_finish_read): Don't copy the

2001-06-14  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-queue.c (soup_read_chunk): Don't start from
header_len offset.
(soup_finish_read): Don't copy the recv_buf, just reference
it. Don't free recv_buf.
(soup_queue_read_cb): Handle truncating chunks, also truncate
recv_buf after finishing headers. Make recv_buf contents public
for chunk handlers.

* src/soup-core/soup-message.c (soup_message_cleanup): Don't free
the recv_buf->data, as we no longer copy it.

* src/soup-core/soup-httpd.c: Update to missing header_len field.

* src/soup-core/soup-private.h: change SoupMessage.header_len to a
boolean headers_done. As we now truncate the buffer after
downloading headers.

23 years agoRemove redirect handler if option is removed.
Alex Graveley [Thu, 14 Jun 2001 18:54:04 +0000 (18:54 +0000)]
Remove redirect handler if option is removed.

2001-06-14  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-message.c (soup_message_set_flags): Remove
redirect handler if option is removed.
(soup_message_remove_handler): Added. Remove handler given
function and user_data. Should this be made public?
(soup_message_run_handlers): Remove g_warning. No checks are run
against body handlers.
(soup_message_cleanup): Zero cur_chunk_len and cur_chunk_idx.

23 years agoIf SOUP_SYNC_DNS is in the user's environment, use an old fashioned
Joe Shaw [Wed, 13 Jun 2001 20:04:51 +0000 (20:04 +0000)]
If SOUP_SYNC_DNS is in the user's environment, use an old fashioned

2001-06-13  Joe Shaw  <joe@ximian.com>

* src/soup-core/soup-socket.c (soup_address_new): If SOUP_SYNC_DNS is
in the user's environment, use an old fashioned synchronous DNS lookup
on UNIX.

23 years agoChange msg->priv->flags to msg->priv->msg_flags so it'll build again.
Joe Shaw [Fri, 8 Jun 2001 01:20:58 +0000 (01:20 +0000)]
Change msg->priv->flags to msg->priv->msg_flags so it'll build again.

2001-06-07  Joe Shaw  <joe@ximian.com>

* src/soup-core/soup-message.c (soup_message_redirect): Change
msg->priv->flags to msg->priv->msg_flags so it'll build again.
(soup_message_run_handlers): Add a default case to the switch
statement (for RESPONSE_BODY_HANDLER) to squash a warning.

23 years agoStop processing if a handler requeues the message.
Alex Graveley [Thu, 7 Jun 2001 22:29:03 +0000 (22:29 +0000)]
Stop processing if a handler requeues the message.

2001-06-07  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-message.c (soup_message_run_handlers): Stop
processing if a handler requeues the message.

* src/soup-core/soup-queue.c (soup_process_headers): Allow a
handler to requeue the message without having any more handlers or
callbacks called.
(soup_finish_read): ditto.
(soup_queue_read_cb): ditto.

* src/soup-core/soup-message.c (soup_message_redirect): Requeue
message based on Location header, if response status code is 300,
301, 302, 303, or 305.
(soup_message_set_flags): If SOUP_MESSAGE_FOLLOW_REDIRECT is set,
add a header handler (on Location) which calls
soup_message_redirect ().

23 years agoimplement. (soup_message_add_response_code_handler): ditto.
Alex Graveley [Thu, 7 Jun 2001 00:50:23 +0000 (00:50 +0000)]
implement. (soup_message_add_response_code_handler): ditto.

2001-06-06  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-message.c (soup_message_add_header_handler):
implement.
(soup_message_add_response_code_handler): ditto.
(soup_message_add_body_handler): ditto.
(soup_message_run_handlers): uh-huh.
(soup_message_free): Free allocated handler info.

* src/soup-core/soup-message.h: Change SOUP_MESSAGE_PROCESS_CHUNKS
to SOUP_MESSAGE_OVERWRITE_CHUNKS. This will allow large files to
be processed using a BODY_CHUNK handler, instead of keeping
everything in memory.

* src/soup-core/soup-queue.c (soup_process_headers): Run PRE_BODY
handlers.
(soup_finish_read): Run POST_BODY handlers.
(soup_queue_read_cb): Run BODY_CHUNK handlers.

23 years agoImplement. Sets the HTTP method for a given message. (soup_message_new):
Joe Shaw [Wed, 6 Jun 2001 21:31:55 +0000 (21:31 +0000)]
Implement. Sets the HTTP method for a given message. (soup_message_new):

2001-06-06  Joe Shaw  <joe@ximian.com>

* src/soup-core/soup-message.c (soup_message_set_method,
soup_message_get_method): Implement. Sets the HTTP method for a given
message.
(soup_message_new): Set the default method to SOUP_METHOD_POST.

* src/soup-core/soup-misc.c (soup_substring_index): Make sure we
check the very last possible character (<= instead of <) for substrings.

* src/soup-core/soup-queue.c (soup_get_request_header): Send an HTTP
request for the method set in the message instead of always POST.

* src/soup-core/soup-parser.c: Change the #include to <parser.h> from
<gnome-xml/parser.h>.

* src/soup-core/soup-serializer.h: Change the #include to <tree.h> from
<gnome-xml/tree.h>.

23 years agoAdd these empty Apache method implementations so soup modules built using
Alex Graveley [Tue, 5 Jun 2001 01:26:02 +0000 (01:26 +0000)]
Add these empty Apache method implementations so soup modules built using

2001-06-04  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-httpd.c: (ap_*) Add these empty Apache method
implementations so soup modules built using soup-apache can be
loaded into soup-http.
(main): Pass a SoupHttpdServerSock object representing a listening
server to soup_httpd_conn_accept.
(soup_httpd_finish_read): Return useful error explanations to
client when no SOAPAction header is specified, or no server handler for
the specified SOAPAction is found.
(soup_httpd_message_construct): Lookup content-length
correctly. Free req_method and req_path.

* src/soup-core/soup-message.c (soup_message_set_header): if
overwriting an existing header, be sure
to free the old key and value.

* src/soup-core/soup-queue.c (soup_queue_read_async): rename to
(soup_queue_read_cb): this.
(soup_queue_error_async): rename to
(soup_queue_error_cb): this.
(soup_queue_write_async): rename to
(soup_queue_write_cb): this.
(soup_queue_connect): rename to
(soup_queue_connect_cb): this.

23 years agoA new error message mechanism for reporting schema parse errors to the
Dick Porter [Mon, 4 Jun 2001 11:47:54 +0000 (11:47 +0000)]
A new error message mechanism for reporting schema parse errors to the

2001-06-04  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-schema.c: A new error message
mechanism for reporting schema parse errors to the calling code

* src/soup-wsdl-runtime/wsdl-schema-glib.c
(wsdl_schema_glib_parse_struct, wsdl_schema_glib_start_element,
wsdl_schema_glib_end_element): Use new error message mechanism

* src/soup-wsdl/wsdl-parse.c (wsdl_parse_warning,
wsdl_parse_error, wsdl_parse_fatal): Log messages via wsdl_debug,
so the module selection works

23 years agoCorrectly note copyright for soup_base64_encode() to the FSF, and credit
Alex Graveley [Fri, 1 Jun 2001 18:48:33 +0000 (18:48 +0000)]
Correctly note copyright for soup_base64_encode() to the FSF, and credit

2001-06-01  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-misc.c: Correctly note copyright for
soup_base64_encode() to the FSF, and credit Chris Blizzard as the
actual author.

23 years agoTake soup-cgi.c out of rotation until server/client codepaths merge.
Alex Graveley [Fri, 1 Jun 2001 18:21:44 +0000 (18:21 +0000)]
Take soup-cgi.c out of rotation until server/client codepaths merge.

2001-06-01  Alex Graveley  <alex@ximian.com>

* src/soup-core/Makefile.am (libsoup_la_SOURCES): Take soup-cgi.c
out of rotation until server/client codepaths merge.

* src/soup-core/soup-httpd.c (soup_httpd_finish_read): Don't span
mulptiple lines for content-type header.

23 years agoOnly mark which custom headers are used, and directly g_string_sprintfa()
Alex Graveley [Fri, 1 Jun 2001 18:08:08 +0000 (18:08 +0000)]
Only mark which custom headers are used, and directly g_string_sprintfa()

2001-06-01  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-queue.c (soup_check_used_headers): Only mark
which custom headers are used, and directly g_string_sprintfa()
the custom header.
(soup_get_request_header): Soptimize header writing.

23 years agoAdded.
Alex Graveley [Fri, 1 Jun 2001 12:55:13 +0000 (12:55 +0000)]
Added.

2001-06-01  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-message.c (soup_message_set_method):
(soup_message_add_header_handler):
(soup_message_add_response_code_handler):
(soup_message_add_body_handler): Added.

* src/soup-core/soup-socket.c (soup_address_get_name_sync): Allow
syncronous reverse name lookups.

* TODO (TODO): Updated.

* src/soup-core/Makefile.am (bin_PROGRAMS): Added soup-httpd.

* src/soup-core/soup-httpd.c: Added. Simple httpd server
implementation. This shares a *lot* of code with soup-queue.c, so
some hardc0re refactoring action is planned.

* configure.in (GMODULE_LIBS): Added.

23 years agoPut the generated code into the build directory. Run soup-config through
Dick Porter [Tue, 29 May 2001 10:40:18 +0000 (10:40 +0000)]
Put the generated code into the build directory. Run soup-config through

2001-05-29  Dick Porter  <dick@ximian.com>

* tests/Makefile.am: Put the generated code into the build
directory.  Run soup-config through /bin/sh to work around a
permissions problem.

23 years agoDocumentation
Dick Porter [Fri, 25 May 2001 21:36:34 +0000 (21:36 +0000)]
Documentation

2001-05-25  Dick Porter  <dick@ximian.com>

* Documentation

23 years agoNo need to free priv->recv_buf as it is now done in
Alex Graveley [Fri, 25 May 2001 05:36:36 +0000 (05:36 +0000)]
No need to free priv->recv_buf as it is now done in

2001-05-25  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-queue.c (soup_message_queue): No need to free
priv->recv_buf as it is now done in soup_message_cleanup().
(soup_message_queue): Free response_header keys and values before
destroying the hash table.

* src/soup-core/soup-message.c (soup_message_free): Don't free
priv->recv_buf here.
(soup_message_cleanup): Free priv->recv_buf here instead.

* src/soup-core/soup-queue.c (soup_finish_read): Since we now
g_strdup() all headers, and we already g_memdup the actual body
buffer, free the temporary recv_buf.

* src/soup-core/soup-headers.c (soup_headers_parse_response):
g_strdup() the response reason phrase.

23 years agoUpdate Licensing section for soup-ssl-proxy.
Alex Graveley [Thu, 24 May 2001 23:33:32 +0000 (23:33 +0000)]
Update Licensing section for soup-ssl-proxy.

2001-05-24  Alex Graveley  <alex@ximian.com>

* README: Update Licensing section for soup-ssl-proxy.

23 years agoinclude string.h for strlen and strcmp prototypes. include string.h for
Larry Ewing [Thu, 24 May 2001 20:18:47 +0000 (20:18 +0000)]
include string.h for strlen and strcmp prototypes. include string.h for

001-05-24  Larry Ewing  <lewing@ximian.com>

* src/soup-wsdl-runtime/wsdl-soap-parse.c: include string.h for
strlen and strcmp prototypes.
* src/soup-wsdl-runtime/wsdl-soap-memory.c: include string.h for
memset prototype.

23 years agoFix some typos.
Dick Porter [Thu, 24 May 2001 11:35:28 +0000 (11:35 +0000)]
Fix some typos.

23 years agoreview alex, review
Miguel de Icaza [Thu, 24 May 2001 00:01:01 +0000 (00:01 +0000)]
review alex, review

23 years agoEliminate the extra layer of indirection for list items that are naturally
Dick Porter [Wed, 23 May 2001 22:11:33 +0000 (22:11 +0000)]
Eliminate the extra layer of indirection for list items that are naturally

2001-05-23  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-typecodes-c.c
(wsdl_typecode_write_c_mm_list):
* src/soup-wsdl-runtime/wsdl-soap-parse.c
(wsdl_soap_set_list_param):
* src/soup-wsdl-runtime/wsdl-soap-marshal.c
(wsdl_soap_marshal_list_param): Eliminate the extra layer of
indirection for list items that are naturally pointers.

* tests/test-wsdl-runtime.c: Update list tests

* src/soup-wsdl-runtime/wsdl-typecodes.c:
* src/soup-wsdl-runtime/wsdl-schema.c:
* src/soup-wsdl/wsdl-trace.c:
* src/soup-wsdl/wsdl-soap-emit.c:
* src/soup-wsdl/wsdl-parse.c:
* src/soup-wsdl/wsdl-describe.c:
* docs/reference/soup-sections.txt: Started documenting the code

23 years agoAdded. All release announcements should be prepended here.
Alex Graveley [Wed, 23 May 2001 03:36:35 +0000 (03:36 +0000)]
Added. All release announcements should be prepended here.

2001-05-22  Alex Graveley  <alex@ximian.com>

* RELEASE (ANNOUNCE): Added. All release announcements should be
prepended here.

23 years agonull terminate the buffer
JP Rosevear [Tue, 22 May 2001 20:14:02 +0000 (20:14 +0000)]
null terminate the buffer

2001-05-22  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-apache.c (soup_apache_read_request): null
terminate the buffer

23 years agodon't emit code to add the transport headers to the SoupEnv, which is only
Rodrigo Moya [Tue, 22 May 2001 14:44:18 +0000 (14:44 +0000)]
don't emit code to add the transport headers to the SoupEnv, which is only

2001-05-22  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/wsdl-soap-parse.c: don't emit code to add the
transport headers to the SoupEnv, which is only used for SOAP
request/response headers

23 years agog_strdup the hash table key also (soup_env_set_request_header): ditto
Rodrigo Moya [Tue, 22 May 2001 14:34:18 +0000 (14:34 +0000)]
g_strdup the hash table key also (soup_env_set_request_header): ditto

2001-05-22  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-core/soup-env.c (soup_env_set_response_header):
g_strdup the hash table key also
(soup_env_set_request_header): ditto

23 years agogtk-doc fixups.
Alex Graveley [Tue, 22 May 2001 01:10:47 +0000 (01:10 +0000)]
gtk-doc fixups.

2001-05-21  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-queue.c (soup_message_queue): gtk-doc fixups.

* src/soup-core/soup-socket.c (soup_socket_server_new): New.
(soup_socket_server_accept): New.
(soup_socket_server_try_accept): New.

23 years agouse the correct XML node to get the headers
Rodrigo Moya [Mon, 21 May 2001 14:39:13 +0000 (14:39 +0000)]
use the correct XML node to get the headers

2001-05-18  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl-runtime/wsdl-soap-parse.c (wsdl_soap_headers):
use the correct XML node to get the headers

23 years ago"Subscribe" not "Subject" in soup-list-request@ximian.com message body. :)
Alex Graveley [Fri, 18 May 2001 22:29:45 +0000 (22:29 +0000)]
"Subscribe" not "Subject" in soup-list-request@ximian.com message body. :)

2001-05-18  Alex Graveley  <alex@ximian.com>

* README: "Subscribe" not "Subject" in
soup-list-request@ximian.com message body. :)

23 years agoPrune soup-core internal files.
Alex Graveley [Fri, 18 May 2001 05:59:03 +0000 (05:59 +0000)]
Prune soup-core internal files.

2001-05-18  Alex Graveley  <alex@ximian.com>

* docs/reference/soup-docs.sgml: Prune soup-core internal files.

* configure.in: Add pretty section headers, move gtk-doc section

23 years agodo not free the callback data, or the second time the method gets called,
JP Rosevear [Thu, 17 May 2001 22:29:11 +0000 (22:29 +0000)]
do not free the callback data, or the second time the method gets called,

2001-05-17  JP Rosevear  <jpr@ximian.com>

* src/soup-wsdl/wsdl-soap-skels.c
(wsdl_emit_soap_skels_binding_operation): do not free the callback
data, or the second time the method gets called, *KABOOM*

23 years agoBumping up my commits per week numbers
JP Rosevear [Thu, 17 May 2001 21:44:55 +0000 (21:44 +0000)]
Bumping up my commits per week numbers

23 years agooops
JP Rosevear [Thu, 17 May 2001 21:41:24 +0000 (21:41 +0000)]
oops

23 years agoprevent leak and check for fault straight away (instead of operation name)
JP Rosevear [Thu, 17 May 2001 21:40:58 +0000 (21:40 +0000)]
prevent leak and check for fault straight away (instead of operation name)

2001-05-17  JP Rosevear  <jpr@ximian.com>

* src/soup-wsdl-runtime/wsdl-soap-parse.c (wsdl_soap_operation):
prevent leak and check for fault straight away (instead of
operation name)

* src/soup-core/soup-env.c (soup_env_free): only free the fault if there is one
(soup_env_clear_fault): ditto

* src/soup-wsdl-runtime/wsdl-soap-marshal.c (wsdl_soap_marshal):
use the serializer functions to write out the fault and only write the message return

23 years agofind the end of the value and g_strndup only that as the value, rather
JP Rosevear [Thu, 17 May 2001 18:59:22 +0000 (18:59 +0000)]
find the end of the value and g_strndup only that as the value, rather

2001-05-17  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-headers.c (soup_headers_parse): find the end
of the value and g_strndup only that as the value, rather than the
remainder of the string

* src/soup-core/soup-message.c (soup_message_issue_callback): free
the message only if the callback exists, otherwise send_message is
borked.  New a little more design to fix properly

23 years agoFixed all gtk-doc moans in soup-core documentation
Dick Porter [Thu, 17 May 2001 16:35:18 +0000 (16:35 +0000)]
Fixed all gtk-doc moans in soup-core documentation

2001-05-17  Dick Porter  <dick@ximian.com>

* Fixed all gtk-doc moans in soup-core documentation

23 years agoExtract gtk-doc documentation from the code
Dick Porter [Thu, 17 May 2001 16:03:11 +0000 (16:03 +0000)]
Extract gtk-doc documentation from the code

2001-05-17  Dick Porter  <dick@ximian.com>

* docs/reference: Extract gtk-doc documentation from the code

* tests/test-wsdl-runtime.c:
* tests/stockquote2-server.c:
* tests/stockquote2-client.c: Updated for new API

* tests/stress-test.c:
* tests/simple-test.c: Include installed soup headers

* configure.in: Check for gtk-doc

* tests/Makefile.am: Made example code just plain
"noinst_PROGRAMS", check_PROGRAMS are built as part of "make
dist". Wrestled with automake, automake won :-( I wanted to delete
the built sources from the dist target, and not have automake try
and recreate them with a non-existant soup-wsdl when I type "make
distcheck".

* Makefile.am: Took tests out of SUBDIRS, added a "make examples"
target instead.

23 years agoDocument. Needs more details and descriptions from the SOAP spec.
Alex Graveley [Wed, 16 May 2001 23:43:45 +0000 (23:43 +0000)]
Document. Needs more details and descriptions from the SOAP spec.

2001-05-16  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-serializer.c: Document. Needs more details
and descriptions from the SOAP spec.

* src/soup-core/soup-queue.c: Document.

* src/soup-core/soup-misc.c: Document.
(soup_load_config): Reset security policy to
SOUP_SECURITY_DOMESTIC when reloading config.

* src/soup-core/soup-message.c: Document.

23 years agog_strdup the response headers when adding them to the hash
JP Rosevear [Wed, 16 May 2001 22:08:39 +0000 (22:08 +0000)]
g_strdup the response headers when adding them to the hash

2001-05-16  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-headers.c (soup_headers_parse): g_strdup the
response headers when adding them to the hash

* src/soup-core/soup-context.c (soup_context_get): ditto

* src/soup-core/soup-context.h: constify uri passed to
soup_context_get

* src/soup-core/soup-env.h (soup_env_free): new protos

* src/soup-core/soup-env.c (soup_env_set_address): new accessor to
set url to access for service
(soup_env_get_address): ditto

23 years agoRemove missed conflict
Alex Graveley [Wed, 16 May 2001 20:52:55 +0000 (20:52 +0000)]
Remove missed conflict

23 years agog_strdup headers from the apache headers table.
Alex Graveley [Wed, 16 May 2001 20:52:00 +0000 (20:52 +0000)]
g_strdup headers from the apache headers table.

2001-05-16  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-apache.c (soup_apache_add_header_from_table):
g_strdup headers from the apache headers table.

23 years agochange this to something sensible
JP Rosevear [Wed, 16 May 2001 19:23:31 +0000 (19:23 +0000)]
change this to something sensible

2001-05-16  JP Rosevear  <jpr@ximian.com>

* tests/simple-test.c (main): change this to something sensible

23 years agoRemoved extra ','
Rodrigo Moya [Wed, 16 May 2001 13:06:12 +0000 (13:06 +0000)]
Removed extra ','

23 years agofully adapted to the new SoupEnv stuff
Rodrigo Moya [Wed, 16 May 2001 11:55:40 +0000 (11:55 +0000)]
fully adapted to the new SoupEnv stuff

2001-05-16  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/wsdl-soap-stubs.c: fully adapted to the new
SoupEnv stuff

23 years agoBring up-to-date with new API, and test typecode freeing too.
Dick Porter [Wed, 16 May 2001 09:41:22 +0000 (09:41 +0000)]
Bring up-to-date with new API, and test typecode freeing too.

2001-05-16  Dick Porter  <dick@ximian.com>

* tests/test-wsdl-runtime.c: Bring up-to-date with new API, and
test typecode freeing too.

* tests/stockquote2-server.c:
* tests/stockquote2-client.c: Bring up-to-date with new API

* src/soup-wsdl-runtime/wsdl-soap-memory.c: New file of functions
to zero or free a set of types.

* src/soup-wsdl-runtime/wsdl-typecodes.c
(wsdl_typecode_param_type): Handle adding '*' to certain types
when written as parameters.

* src/soup-wsdl-runtime/wsdl-typecodes-c.c: Add pointers to memory
free functions to typecode structs.
New functions to write those memory free functions.

* src/soup-wsdl-runtime/wsdl-soap-parse.c
(wsdl_soap_set_struct_param): Allocate memory for structs
(wsdl_soap_parse): Use the new function in wsdl-soap-memory.c to
zero the parameters.

* src/soup-wsdl-runtime/wsdl-soap-marshal.c
(wsdl_soap_marshal_struct_param): Structs are now passed as
pointers, so need to add extra indirection here.
(wsdl_soap_marshal_param): Make sure we dont try to marshal NULL
pointers

* src/soup-wsdl/wsdl-soap-skels.c
(wsdl_emit_soap_skels_binding_operation): Zero output args before
calling the callback, and free any memory used by them after
sending the response.

* src/soup-wsdl/wsdl-soap-headers.c
(wsdl_emit_soap_headers_binding_operation): Server callback now
returns 'void'
(wsdl_emit_soap_header_mm): Write memory-management function
prototypes

* src/soup-wsdl/wsdl-soap-emit.c (wsdl_emit_part): Use new
parameter-passing API

* src/soup-wsdl/wsdl-soap-common.c (wsdl_emit_soap_common_mm):
Cause memory-management routines to be written for all
user-defined types

23 years agosoup_env_new needed "()" to be a function call
JP Rosevear [Tue, 15 May 2001 22:53:18 +0000 (22:53 +0000)]
soup_env_new needed "()" to be a function call

2001-05-15  JP Rosevear  <jpr@ximian.com>

* src/soup-wsdl/wsdl-soap-skels.c
(wsdl_emit_soap_skels_binding_operation): soup_env_new needed "()"
to be a function call

* src/soup-core/soup.h: explicitly include soup-fault.h and soup-env.h

* src/soup-wsdl-runtime/wsdl-soap-marshal.h: kludge soup-env.h as
well.  We really should rename the dirs properly

* src/soup-wsdl-runtime/wsdl-soap-parse.h: kludge around include
problem

23 years agoreplace all SoupFault parameter with SoupEnv, and remove "GHashTable
Rodrigo Moya [Tue, 15 May 2001 14:23:56 +0000 (14:23 +0000)]
replace all SoupFault parameter with SoupEnv, and remove "GHashTable

2001-05-15  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/wsdl-soap-stubs.c: replace all SoupFault
parameter with SoupEnv, and remove "GHashTable request_headers"
from list of parameters in server callbacks, because before
calling those callbacks, the stubs take care of adding the
SoupMessage's request headers to the SoupEnv being passed
* src/soup-wsdl-runtime/wsdl-soap-parse.c
(wsdl_soap_parse): replace SoupFault with the new
SoupEnv parameter
(wsdl_soap_headers): new internal function to parse all
the headers in the SOAP message and add them to the SoupEnv
* src/soup-wsdl-runtime/wsdl-soap-marshal.c
(wsdl_soap_marshal): don't access directly SoupFault
struct members.
Replace SoupFault parameter with the new SoupEnv

23 years agomade the SoupFault structure private, and add accessor functions for the
Rodrigo Moya [Mon, 14 May 2001 14:26:38 +0000 (14:26 +0000)]
made the SoupFault structure private, and add accessor functions for the

2001-05-13  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-core/soup-fault.[ch]: made the SoupFault structure
private, and add accessor functions for the struct members
* src/soup-core/soup-env.[ch]: added SoupEnv stuff, to easily
manage SOAP environments (request/response headers list, faults)

23 years agog_strdup name and value. (soup_message_set_response_header): ditto.
Alex Graveley [Sun, 13 May 2001 04:07:30 +0000 (04:07 +0000)]
g_strdup name and value. (soup_message_set_response_header): ditto.

2001-05-12  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-message.c (soup_message_set_request_header):
g_strdup name and value.
(soup_message_set_response_header): ditto.
(soup_message_get_response_header): implement.
(soup_message_get_request_header): implement.

23 years agoFormat cleanups.
Alex Graveley [Sat, 12 May 2001 21:05:00 +0000 (21:05 +0000)]
Format cleanups.

2001-05-12  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-fault.[ch]: Format cleanups.

* src/soup-core/soup-parser.[ch]: Ditto.

23 years agomoved the SoupFault to its own header file, since it will be also used by
Rodrigo Moya [Sat, 12 May 2001 10:01:19 +0000 (10:01 +0000)]
moved the SoupFault to its own header file, since it will be also used by

2001-05-12  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-core/soup-fault.[ch]: moved the SoupFault to its
own header file, since it will be also used by the upcoming
SoupEnv

23 years agohandle SOUP_ERROR_CANT_AUTHENTICATE.
Alex Graveley [Sat, 12 May 2001 00:01:52 +0000 (00:01 +0000)]
handle SOUP_ERROR_CANT_AUTHENTICATE.

2001-05-11  Alex Graveley  <alex@ximian.com>

* tests/stress-test.c (current_temp_cb): handle
SOUP_ERROR_CANT_AUTHENTICATE.

* tests/simple-test.c (current_temp_cb): handle
SOUP_ERROR_CANT_AUTHENTICATE.

23 years agoUse NSS_InitReadWrite(). (soup_nss_get_iochannel): set SSL_BadCertHook().
Alex Graveley [Sat, 12 May 2001 00:00:08 +0000 (00:00 +0000)]
Use NSS_InitReadWrite(). (soup_nss_get_iochannel): set SSL_BadCertHook().

2001-05-11  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-nss.c (soup_nss_init): Use NSS_InitReadWrite().
(soup_nss_get_iochannel): set SSL_BadCertHook().

23 years ago/tmp/cvsmFCOKf
alex [Fri, 11 May 2001 04:23:20 +0000 (04:23 +0000)]
/tmp/cvsmFCOKf

23 years agoPrep for move to GNOME CVS.
alex [Fri, 11 May 2001 03:06:23 +0000 (03:06 +0000)]
Prep for move to GNOME CVS.

23 years agoindent the SoupFault parameter when written to the skels
JP Rosevear [Wed, 9 May 2001 17:37:57 +0000 (17:37 +0000)]
indent the SoupFault parameter when written to the skels

2001-05-09  JP Rosevear  <jpr@ximian.com>

* src/soup-wsdl/wsdl-soap-skels.c
(wsdl_emit_soap_skels_binding_operation): indent the SoupFault
parameter when written to the skels

23 years agoPut the glib namespace prefix back into the typecode struct names
Dick Porter [Wed, 9 May 2001 15:05:15 +0000 (15:05 +0000)]
Put the glib namespace prefix back into the typecode struct names

2001-05-09  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-typecodes.c: Put the glib namespace
prefix back into the typecode struct names
(wsdl_typecode_type): Return a namespace-prefixed type name for
struct and element types
(wsdl_typecode_lookup): Look up typecodes by namespace

* src/soup-wsdl-runtime/wsdl-typecodes-c.c: Typecode struct names
include namespace prefixes

* src/soup-wsdl-runtime/wsdl-schema-glib.c
(wsdl_schema_glib_parse_struct): Typecodes now have namespaces
associated with them.

* src/soup-wsdl/wsdl-soap-headers.c: Deleted all the list
callbacks that printed variations on a parameter theme, call
wsdl_emit_part_list instead.
(wsdl_emit_soap_headers_binding_operation): Don't add a namespace
part for every level of WSDL indirection.
* src/soup-wsdl/wsdl-soap-stubs.c: ditto
* src/soup-wsdl/wsdl-soap-skels.c: ditto

* src/soup-wsdl/wsdl-soap-emit.c: New file of C code emitting helper
functions.

* src/soup-wsdl/wsdl-parse.c (wsdl_parse_message_part_attrs): Look
up typecodes by namespace
(wsdl_start_element): Pass more XML info to the schema parser

* src/soup-core/soup-parser.h: include file wasn't on the search
path at compile time

23 years agoretrieve info about faults when parsing the SOAP messages
Rodrigo Moya [Wed, 9 May 2001 14:22:37 +0000 (14:22 +0000)]
retrieve info about faults when parsing the SOAP messages

2001-05-09  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-core/soup-parser.c: retrieve info about faults
when parsing the SOAP messages

23 years agouse 'fault' and not '&fault' in call to wsdl_soap_parse
Rodrigo Moya [Wed, 9 May 2001 10:39:27 +0000 (10:39 +0000)]
use 'fault' and not '&fault' in call to wsdl_soap_parse

2001-05-09  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/wsdl-soap-stubs.c: use 'fault' and not
'&fault' in call to wsdl_soap_parse

23 years agosome small fixes for compilation
Rodrigo Moya [Wed, 9 May 2001 10:08:50 +0000 (10:08 +0000)]
some small fixes for compilation

2001-05-09  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/: some small fixes for compilation

23 years agoadded a basic SOAP messages parser, which easily lets access to the
Rodrigo Moya [Wed, 9 May 2001 09:34:28 +0000 (09:34 +0000)]
added a basic SOAP messages parser, which easily lets access to the

2001-05-09  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-core/soup-parser.[ch]: added a basic SOAP messages
parser, which easily lets access to the message parameters
and faults

2001-05-05  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl-runtime/wsdl-soap-fault.[ch]: added to manage/retrieve
info from SOAP faults
* src/soup-wsdl-runtime/wsdl-soap-parse.c (wsdl_soap_parse): retrieve
SOAP faults from the message being parsed. Added a wsdl_soap_fault
parameter, which will be returned if there was actually a SOAP fault
in the message
* src/soup-wsdl-runtime/wsdl-soap-marshal.c (wsdl_soap_marhal): add
a wsdl_soap_fault parameter, to be serialized along with the rest
of the SOAP message

23 years agoDecide which schema parser to call for a WSDL <types> section. This
Dick Porter [Fri, 4 May 2001 15:35:22 +0000 (15:35 +0000)]
Decide which schema parser to call for a WSDL <types> section. This

2001-05-04  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-schema.c: Decide which schema parser to
call for a WSDL <types> section. This supercedes the old glib schema
parser in wsdl-parse.c. The WSDL parser is now effectively decoupled
from the schema, which should make it much easier to add new schemas
in the future without having to change the parser.

* src/soup-wsdl-runtime/wsdl-schema-glib.c: Build typecodes from
the simple glib schema

* src/soup-wsdl-runtime/wsdl-typecodes-c.c: Write C code
describing a typecode.

* src/soup-wsdl-runtime/wsdl-soap-parse.c:
* src/soup-wsdl-runtime/wsdl-soap-marshal.c:
* src/soup-wsdl-runtime/wsdl-param.h: Take all instances of 'glib' out
of typecode definitions and function names.

* src/soup-wsdl-runtime/Makefile.am: Build a version of the
runtime library more useful for writing C code (ideally i'd make
this dynamically link the runtime library, but libtool wont let
me)

* src/soup-wsdl/wsdl-thread.c (wsdl_thread_soap_parts): No need to
look up glib types, the message part already holds a pointer to
the typecode.

* src/soup-wsdl/wsdl-soap-stubs.c:
* src/soup-wsdl/wsdl-soap-skels.c: Type names are looked up by
typecode. All checks for custom glib types have been deleted.

* src/soup-wsdl/wsdl-soap-headers.c: All typecode declarations are
now printed using the runtime library.  Type names are looked up
by typecode. All checks for custom glib types have been deleted.

* src/soup-wsdl/wsdl-soap-common.c: All typecode printing is now
done using the runtime library.

* src/soup-wsdl/wsdl-parse.c: Moved wsdl_qnamecmp() and
wsdl_attrnscmp to wsdl-schema.c (in the runtime library)
(wsdl_parse_message_part_attrs): Look up typecodes, not glib types.
(wsdl_parse_types): Call through the runtime schema parser, instead
of the custom glib type parser.

* src/soup-wsdl/wsdl-memory.c (wsdl_free_types): Delete typecodes
rather than glib types.

* src/soup-wsdl/wsdl-describe.c: Replace the type printing
routines with calls to wsdl_typecode_print

* src/soup-wsdl/main.c (main): No need to initialise the glib
types any more.

* src/soup-wsdl/Makefile.am (soup_wsdl_SOURCES): Don't bother to
compile wsdl-types-glib.c, it's been superceded by the typecode
builder

23 years agoWrite synchronous client stubs
Dick Porter [Wed, 2 May 2001 11:57:54 +0000 (11:57 +0000)]
Write synchronous client stubs

2001-05-02  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-soap-stubs.c
(wsdl_emit_soap_stubs_binding_operation): Write synchronous client
stubs

* src/soup-wsdl/wsdl-soap-headers.c
(wsdl_emit_soap_headers_binding_operation): Emit prototypes for
synchronous stubs

23 years agoWrite server skels
Dick Porter [Wed, 2 May 2001 10:28:18 +0000 (10:28 +0000)]
Write server skels

2001-05-02  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-soap-skels.c
(wsdl_emit_soap_skels_binding_operation): Write server skels

* src/soup-wsdl/wsdl-soap-headers.c
(wsdl_emit_soap_headers_binding_operation): Emit prototypes for
skels
(wsdl_emit_soap_headers): Include the right soup headers

* src/soup-wsdl/wsdl-soap-stubs.c (wsdl_emit_soap_stubs): Include
the right soup headers

* src/soup-wsdl-runtime/Makefile.am (INCLUDES):
* src/soup-wsdl-runtime/wsdl-soap-marshal.h: A kludge to work
around include path searching whether compiling or at runtime

23 years agoUse the new marshaller instead of a large printf. Drastically reduced the
Dick Porter [Mon, 30 Apr 2001 11:08:35 +0000 (11:08 +0000)]
Use the new marshaller instead of a large printf. Drastically reduced the

2001-04-30  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-soap-stubs.c: Use the new marshaller instead
of a large printf. Drastically reduced the complexity of both the
wsdl compiler code and the generated stubs. Deleted huge tracts of
now-unused code too.

* src/soup-wsdl/wsdl-types-glib.c: Deleted unused code

23 years agoSome more error checking. Read booleans as "true", "false", "yes", "no" as
Dick Porter [Sun, 29 Apr 2001 10:10:28 +0000 (10:10 +0000)]
Some more error checking. Read booleans as "true", "false", "yes", "no" as

2001-04-29  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-soap-parse.c
(wsdl_soap_set_simple_param): Some more error checking. Read
booleans as "true", "false", "yes", "no" as well as an integer.
(wsdl_soap_set_param): Give the XML child node to
wsdl_soap_set_list_param().

* src/soup-wsdl-runtime/wsdl-soap-marshal.c: A typecode based soap
marshaller

* src/soup-wsdl-runtime/wsdl-param.h: Moved definition of wsdl_param
into a common header

* tests/test-wsdl-runtime.c: Added marshal test

* src/soup-core/soup-serializer.c (soup_serializer_write_time):
Changed name of "time" parameter to not conflict with time(2)

23 years agoget this script working again and add wsdl
JP Rosevear [Wed, 25 Apr 2001 20:39:56 +0000 (20:39 +0000)]
get this script working again and add wsdl

2001-04-25  JP Rosevear  <jpr@ximian.com>

* soup-config.in (lib_soup): get this script working again and add
wsdl

* Makefile.am: create and install new script

* configure.in: create variables for script substitution

* soup_wsdlConf.sh.in: gnome-config script for wsdl compilation
info

23 years agoadded "gpointer user_data" parameter to generated functions ditto & make
Rodrigo Moya [Tue, 24 Apr 2001 15:55:48 +0000 (15:55 +0000)]
added "gpointer user_data" parameter to generated functions ditto & make

2001-04-23  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/wsdl-soap-headers.c
(wsdl_emit_soap_headers_binding_operation): added
"gpointer user_data" parameter to generated functions
* src/soup-wsdl/wsdl-soap-stubs.c
(wsdl_emit_soap_stubs_binding_operation): ditto &
make use of a private structure to be able to pass both
the user callback and a custom parameter to SOUP-generated
callback

23 years agoTypecode support for the simple glib schema, similar in style to CORBA
Dick Porter [Mon, 23 Apr 2001 17:26:53 +0000 (17:26 +0000)]
Typecode support for the simple glib schema, similar in style to CORBA

2001-04-23  Dick Porter  <dick@ximian.com>

* src/soup-wsdl-runtime/wsdl-typecodes-glib.c: Typecode support
for the simple glib schema, similar in style to CORBA typecodes.
The alignment and size routines are based on the ones in ORBit.

* src/soup-wsdl-runtime/wsdl-soap-parse.c: A parser that walks an
XML document, and writes values into memory locations provided

* tests/test-wsdl-runtime.c: Test the typecode support and parser

* src/soup-wsdl/wsdl-soap-stubs.c (wsdl_emit_soap_stubs_params):
Write a list of parameter to typecode bindings for the soap
document parser

* src/soup-wsdl/wsdl-soap-headers.c: Write extern prototypes for
typecode definitions

* src/soup-wsdl/wsdl-soap-common.c: Write typecode definitions
into a common code file

* src/Makefile.am: Build new soup-wsdl-runtime directory before
soup-wsdl

* configure.in: Added test to discover alignments

* acconfig.h: Added defines for alignments

23 years agoSoupSocketConnectFn no longer takes a SoupAddress argument, as it can be
Alex Graveley [Mon, 23 Apr 2001 07:57:45 +0000 (07:57 +0000)]
SoupSocketConnectFn no longer takes a SoupAddress argument, as it can be

2001-04-23  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-socket.h: SoupSocketConnectFn no longer takes
a SoupAddress argument, as it can be fetched from the SoupSocket
correctly now.

* src/soup-core/soup-socket.c: lots of rewrites. Cache existing
SoupAddresses to avoid duplicate lookups. Handles multiple
simultaneous requests for the same address. Add syncronous
versions of calls which just run the main loop until completion or
request. Make SoupContext use a SoupAddress instead of sockaddr.

* src/soup-core/soup-uri.h: Add query_elems to SoupUri. Contains a
list of query string elements, as delimited by a
'&'. SoupUri.protocol is now a SoupProtocol.

* src/soup-core/soup-uri.c (soup_uri_new): convert uri_string
protocol to SoupProtocol equivalent.

* src/soup-core/soup-private.h: remove protocol from
SoupContext. Use a SoupAddress instead of a sockaddr in SoupSocket.

* src/soup-core/soup-misc.c (soup_load_config_internal): kill
tiny (8 byte) mem leak.

* src/soup-core/soup-message.h: add SoupOwnership
SOUP_BUFFER_STATIC.
add SoupErrorCode SOUP_ERROR_CANT_AUTHENTICATE.

* src/soup-core/soup-context.h: move SoupProtocol to soup-uri.h.

* src/soup-core/soup-context.c (soup_context_new):
removed. Protocol is now held only in uri.
(soup_context_from_uri): added.
(soup_context_get): just calls soup_context_from_uri() after
creating uri.
(soup_context_unref): don't evaluate a post-decremented refcount.
(soup_context_connect_cb): no longer take a SoupAddress arg.
(soup_context_get_protocol): removed, use uri.

* src/soup-core/soup-apache.c (soup_apache_message_create): use
SOUP_BUFFER_STATIC for request buffer.

* src/soup-core/md5-utils.c: initial commit. MD5 encryption.

* src/soup-core/soup-digest.c: initial commit. no worky.

* src/soup-core/Makefile.am (libsoup_la_SOURCES): add md5-utils.h,
md5-utils.c, soup-digest.h, soup-digest.c.

* tests/stress-test.c (main): handle ugly refcount bug causing
extra unrefs of the context.

23 years agoOops.
alex [Wed, 18 Apr 2001 22:13:03 +0000 (22:13 +0000)]
Oops.

23 years agoAdded SoupServerBasicToken, SoupServerDigestToken,
Alex Graveley [Wed, 18 Apr 2001 22:12:34 +0000 (22:12 +0000)]
Added SoupServerBasicToken, SoupServerDigestToken,

2001-04-18  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-server.h: Added SoupServerBasicToken,
SoupServerDigestToken, SoupServerAnonymousToken structs, all with
a SoupServerAuthType as the first element. Added
SoupServerAuthToken which is a union of all three auth types.

* src/soup-core/soup-server.c (soup_server_register_full):
Added. Accept method authentication callback and allowed auth types.

* src/soup-core/soup-apache.c (soup_apache_handler): Use a
SoupServerAuthToken. Log to apache only in error conditions.

* src/soup-core/soup-server.c (soup_server_authorize): Accept a
SoupServerAuthToken instead of username/pass/realm.

23 years ago#include <soup/soup-*> and not soup-* #include <soup/soup-message.h> and
Rodrigo Moya [Tue, 10 Apr 2001 19:09:13 +0000 (19:09 +0000)]
#include <soup/soup-*> and not soup-* #include <soup/soup-message.h> and

2001-04-04  Rodrigo Moya <rodrigo@ximian.com>

* src/soup-wsdl/wsdl-soap-stubs.c (wsdl_emit_soap_stubs):
#include <soup/soup-*> and not soup-*
* src/soup-wsdl/wsdl-soap-headers.c (wsdl_emit_soap_headers):
#include <soup/soup-message.h> and not soup-message.h, to match
with the output given by `gnome-config --cflags soup`

23 years agoRewrote much of the glib schema code to handle structs with child structs,
Dick Porter [Fri, 30 Mar 2001 15:58:07 +0000 (15:58 +0000)]
Rewrote much of the glib schema code to handle structs with child structs,

2001-03-30  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-types-glib.c,
src/soup-wsdl/wsdl-soap-headers.c,
src/soup-wsdl/wsdl-soap-stubs.c: Rewrote much of the glib schema
code to handle structs with child structs, and lists.

* src/soup-wsdl/wsdl-thread.c (wsdl_thread_soap_parts): treat
message part "type" and "element" attributes as the same.
(wsdl_thread_soap_binding_operation): insist that soap:body elements
exist in operations.

* src/soup-wsdl/wsdl-parse.c (wsdl_parse_types): Moved more glib
schema logic to wsdl-types-glib.c

* src/soup-wsdl/wsdl-locate.c: Removed the glib schema locate
functions.

* src/soup-wsdl/wsdl-describe.c: Removed most of the glib schema
describe functions

* src/soup-wsdl/main.c: const-ified option string pointers.
(main): Call glib schema init helper functions. Moved "show doc"
option handler out of wsdl-parse.c to here.

* src/soup-core/soup-private.h, src/soup-core/soup-queue.c: fixed
prototype for soup_queue_shutdown to avoid warning

* configure.in: Went wild with gcc warning options, found
surprisingly few problems.

23 years agoadd CFLAGS to apxs parameters, to output the correct compilation flags
Rodrigo Moya [Thu, 29 Mar 2001 22:31:15 +0000 (22:31 +0000)]
add CFLAGS to apxs parameters, to output the correct compilation flags

2001-03-29  Rodrigo Moya <rodrigo@ximian.com>

* configure.in: add CFLAGS to apxs parameters, to output the
correct compilation flags

23 years agoremove hack to look at internals of GNET by using the new forked GNET :)
Alex Graveley [Thu, 22 Mar 2001 00:32:40 +0000 (00:32 +0000)]
remove hack to look at internals of GNET by using the new forked GNET :)

2001-03-21  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-socks.c: remove hack to look at internals of
GNET by using the new forked GNET :)

* tests/stress-test.c: use soup_message_queue ().

* tests/simple-test.c: use soup_message_queue ().

* src/soup-core/soup-private.h: Added SoupAddress and SoupSocket.

* src/soup-core/soup-misc.c (soup_shutdown): Added, just calls
soup_queue_shutdown.

* src/soup-core/soup-queue.h: Removed. Added to soup-message.h.

* src/soup-core/soup-queue.c (soup_queue_message): rename to
(soup_message_queue): this.

* src/soup-core/soup-message.h: move SoupErrorCode,
SoupCallbackFn, and soup_message_queue() here.

* src/soup-core/soup-message.c (soup_message_free): Free
msg->response if buffer is system owned.
(soup_message_issue_callback): set msg->priv->errorcode so
syncronous soup_message_send can check for completion.
(soup_message_send): Added: Synchronous message send. Queues the
message as per usual, then call g_main_iteration() until them
essage returns.

* src/soup-core/soup-context.c: API Document. Switch gnet calls to
their soup-socket replacement.
(soup_context_get_connection): Remove environment check for
syncronous connect method.

* src/soup-core/Makefile.am (INCLUDES): replace GNET_CFLAGS with
GLIB_CFLAGS.
(libsoup_la_LIBADD): replace GNET_LIBS with GLIB_LIBS.
(soupinclude_HEADERS): Remove soup-queue.h. Add soup-socket.h.
(libsoup_la_SOURCES): Add soup-socket.c.

* soup.spec.in (Requires): remove GNET. Add libxml.

* soup.pc.in (Libs): remove GNET.
(Cflags): ditto.

* soup-config.in (depend_libs): remove GNET.
(depend_cflags): ditto.

* configure.in: remove gnet references, look for libnsl and
libresolv, add checking to determine gethostbyname_r possibility.

* acconfig.h: Add undefs for all the gethostbyname_r variants.

* src/soup-core/soup-socket.[ch]: Fork of GNET, minus synchronous
bits. Removes dependency on GNET; we now only rely on Glib and
libXml.

23 years agoParse a simple glib schema.
Dick Porter [Tue, 20 Mar 2001 16:51:08 +0000 (16:51 +0000)]
Parse a simple glib schema.

2001-03-20  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-types-glib.c: Parse a simple glib schema.

Handle describe and free operations on the glib schema structures
here too.

* src/soup-wsdl/wsdl-thread.c (wsdl_thread_soap_parts): Locate
references to types defined in the glib schema.

* src/soup-wsdl/wsdl-soap-stubs.c: Handle references to types
defined in the glib schema.

Handle output operation parameters.

* src/soup-wsdl/wsdl-soap-headers.c: Emit typedefs for glib schema
elements and structs.

Handle output operation parameters.

* src/soup-wsdl/wsdl-parse.c: (wsdl_parse_types): Parse glib schemas

(wsdl_parse_warning): (wsdl_parse_error): (wsdl_parse_fatal): Made
non-static, so that glib schema parsing can be separated.

All attributes called "xmlns" or "xmlns:..." are ignored by the
WSDL part of the XML parser.

All g_slist_prepend()s have been turned into g_slist_append()s, to
keep operation arguments in the expected order.

* src/soup-wsdl/wsdl-memory.c (wsdl_free_types): Free glib type
schemas

* src/soup-wsdl/wsdl-locate.c: New functions to look up glib
schema element or struct definitions

* src/soup-wsdl/wsdl-describe.c (indent): Made non-static, so that
glib type describing can be separated.
(wsdl_describe_types): Describe glib type schemas

23 years agoThread WSDL structures together.
Dick Porter [Sat, 17 Mar 2001 11:50:11 +0000 (11:50 +0000)]
Thread WSDL structures together.

2001-03-17  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-thread.c: Thread WSDL structures together.

* src/soup-wsdl/wsdl-soap-stubs.c:
* src/soup-wsdl/wsdl-soap-headers.c: Most of the element matching
has been moved in the new threading routings.

* src/soup-wsdl/wsdl-parse.h: WSDL elements have extra pointers to
thread structures together.

* src/soup-wsdl/wsdl-memory.c: Free GSLists. WSDL elements have
extra pointers to thread structures together, and some of these
are GSLists that need freeing too.

* src/soup-wsdl/wsdl-locate.c: Some more lookup functions.

* src/soup-wsdl/main.c (main): Call the WSDL element threader, and
only proceed to write files if it succeeds.

23 years agouse the HTTP_OK macro for the response code rather than hard coding 200
JP Rosevear [Thu, 15 Mar 2001 16:32:27 +0000 (16:32 +0000)]
use the HTTP_OK macro for the response code rather than hard coding 200

001-03-15  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-apache.c (soup_apache_message_create): use
the HTTP_OK macro for the response code rather than hard coding
200
(soup_apache_handler): return should be OK or !OK rather than the
http response code value (ie 200)

* src/soup-core/soup-serializer.c (soup_serializer_reset): Make a
blank doc when resetting

23 years agooops, deleted too much
JP Rosevear [Wed, 14 Mar 2001 15:39:16 +0000 (15:39 +0000)]
oops, deleted too much

2001-03-14  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-apache.c (soup_apache_read_request): oops,
deleted too much

23 years agoSupport for simple glib types
Dick Porter [Wed, 14 Mar 2001 11:52:39 +0000 (11:52 +0000)]
Support for simple glib types

2001-03-14  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-parse.h: Support for simple glib types

* src/soup-wsdl/wsdl-parse.c (wsdl_attrnscmp): Check the namespace
prefix of a string.
(wsdl_parse_types): Add a placeholder for parsing glib schemas
(wsdl_parse_message): Add support for simple glib types in part
elements

* src/soup-wsdl/wsdl-describe.c (wsdl_describe_message_part): Show
glib types, if appropriate

23 years agodon't escape the SoapAction header, this makes things work on the server
JP Rosevear [Tue, 13 Mar 2001 21:35:27 +0000 (21:35 +0000)]
don't escape the SoapAction header, this makes things work on the server

2001-03-13  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-queue.c (soup_get_request_header): don't
escape the SoapAction header, this makes things work on the server
side but need to check if this breaks the spec

* src/soup-core/soup-message.c (soup_message_free): don't try to
free the request body twice

* src/soup-core/soup-apache.c (soup_apache_message_create): The
buffer is user owned. Use ap_contruct_url since the uri function
did not include happy things like hostname - will this get the
password properly though?
(soup_apache_read_request): don't adjust read_left twice
(soup_apache_handler): log some stuff to the apache log

23 years agodon't chmod the files. soup-config become executable on install by
JP Rosevear [Tue, 13 Mar 2001 18:09:03 +0000 (18:09 +0000)]
don't chmod the files. soup-config become executable on install by

2001-03-13  JP Rosevear  <jpr@ximian.com>

* configure.in: don't chmod the files.  soup-config become
executable on install by bin_SCRIPTS and *Conf.sh never need to be
executable, fix my apache cflags blunder

23 years agoavoid leading and trailing quotes. If an exact match is not found, lookup
Alex Graveley [Tue, 13 Mar 2001 04:01:53 +0000 (04:01 +0000)]
avoid leading and trailing quotes. If an exact match is not found, lookup

2001-03-12  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-server.c (soup_server_get_handler): avoid
leading and trailing quotes. If an exact match is not found,
lookup based only on methodname not uri#methodnmae.

* src/soup-core/soup-apache.c (soup_apache_handler): compile
without warnings.

* configure.in (AC_OUTPUT): chmod +x soup_apacheConf.sh

23 years agoDidn't commit b4.
alex [Fri, 9 Mar 2001 18:37:11 +0000 (18:37 +0000)]
Didn't commit b4.

23 years agodemonstrate correct behavior here by unref'ing the context after message
Alex Graveley [Fri, 9 Mar 2001 18:28:00 +0000 (18:28 +0000)]
demonstrate correct behavior here by unref'ing the context after message

2001-03-09  Alex Graveley  <alex@ximian.com>

* tests/simple-test.c (main): demonstrate correct behavior here by
unref'ing the context after message creation.

* tests/stress-test.c (main): ditto.

* src/soup-core/soup-queue.c (soup_queue_message): set
req->priv->recv_buf = NULL here, as the media continues to barrate
dangling pointers.

* src/soup-core/soup-server.h: make SoupServerAuthorizeFn typedef
const correct

* src/soup-core/soup-server.c (soup_server_authorize): make const
correct.

* src/soup-core/soup-message.c (soup_message_cleanup): don't free
response phrase. Don't set req->priv->recv_buf = NULL here, as
leaking memory continues to be considered "bad".

* src/soup-core/soup-headers.c (soup_headers_parse_response):
don't alloc status_phrase, just point into buffer.

* src/soup-core/soup-cgi.c (soup_cgi_read_cb): deal with response
phrase now being const.

* src/soup-core/soup-apache.c (soup_apache_message_create): action
is already strdup'd in soup_message_new (). response_phrase
is now a const string. Remove unneeded content-type header.
(soup_apache_read_request): slight reorg, also use ap_palloc()
instead of ap_calloc().
(soup_apache_handler): initial authentication handling, only basic
auth at this point.

23 years agoEach WSDL struct has a pointer into the XML tree document
Dick Porter [Fri, 9 Mar 2001 12:26:36 +0000 (12:26 +0000)]
Each WSDL struct has a pointer into the XML tree document

2001-03-09  Dick Porter  <dick@ximian.com>

* src/soup-wsdl/wsdl-parse.h: Each WSDL struct has a pointer into
the XML tree document

* src/soup-wsdl/wsdl-parse.c (wsdl_qnamecmp): A function for
comparing element names and namespaces.

Use wsdl_qnamecmp instead of strcmp to make parsing
namespace-aware.

(wsdl_end_element): Maintain a pointer into the XML tree for each
WSDL node.

* src/soup-wsdl/wsdl-memory.c (wsdl_free_definitions): Free the
XML document

* src/soup-wsdl/main.c (main): Move the xml doc dump to here, for
better modularity

23 years agoafter failing an explicit path execution, use execlp (instead of execl) to
Alex Graveley [Fri, 9 Mar 2001 00:48:48 +0000 (00:48 +0000)]
after failing an explicit path execution, use execlp (instead of execl) to

2001-03-08  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-ssl.c (soup_ssl_get_iochannel): after failing
an explicit path execution, use execlp (instead of execl) to
search the path for soup-ssl-proxy.

* configure.in: set the default openssl library prefix to /usr/lib
to fix weird linking problems when compiling with both openssl and
nss.

23 years agosend the apache info to the config script
JP Rosevear [Fri, 9 Mar 2001 00:14:49 +0000 (00:14 +0000)]
send the apache info to the config script

2001-03-08  JP Rosevear  <jpr@ximian.com>

* configure.in: send the apache info to the config script

* src/soup-core/soup-apache.c (soup_apache_handler): upon further
reading, content_type is for the outgoing document
(soup_apache_read_request): if ap_should_client_block != 0 we
want to keep going

23 years agoscript to provide soup-apache config info through gnome-config
JP Rosevear [Thu, 8 Mar 2001 18:02:43 +0000 (18:02 +0000)]
script to provide soup-apache config info through gnome-config

2001-03-08  JP Rosevear  <jpr@ximian.com>

* soup_apacheConf.sh.in: script to provide soup-apache config info
through gnome-config

* Makefile.am: subst in the soup_apache config script

* configure.in: create vars for soup-apache config foo

* src/soup-core/soup-apache.c (soup_apache_handler): check for
null because content type can be null

23 years agosoup_server_init should be an extern function
JP Rosevear [Wed, 7 Mar 2001 20:04:11 +0000 (20:04 +0000)]
soup_server_init should be an extern function

2001-03-07  JP Rosevear  <jpr@ximian.com>

* src/soup-core/soup-server.h: soup_server_init should be an
extern function

23 years agoadd allowable authentication types mask. (soup_server_set_method_auth):
Alex Graveley [Wed, 7 Mar 2001 19:12:48 +0000 (19:12 +0000)]
add allowable authentication types mask. (soup_server_set_method_auth):

2001-03-07  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-server.c (soup_server_set_global_auth): add
allowable authentication types mask.
(soup_server_set_method_auth): ditto. NOTE: This server auth stuff
may be removed altogether, so don't rely on it.

* src/soup-core/soup-server.h: added SoupServerAuthType, a mask of
allowable authentication types. Make soup_server_init an extern
declaration instead of a function pointer.

* src/soup-core/soup-apache.c (soup_apache_read_request): move
chunked data checking to here from soup_apache_handler.

23 years agouse configure.in vars for subst
JP Rosevear [Wed, 7 Mar 2001 17:21:12 +0000 (17:21 +0000)]
use configure.in vars for subst

2001-03-07  JP Rosevear  <jpr@ximian.com>

* soupConf.sh.in: use configure.in vars for subst

* configure.in: create variables for config script

* Makefile.am: generate the soupConf.sh script in the makefile for
proper substitution