[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 8/8] Download WSDL specification dynamically from selected ser
From: |
Felix Lechner |
Subject: |
[PATCH v3 8/8] Download WSDL specification dynamically from selected server. |
Date: |
Mon, 18 Mar 2024 06:07:09 -0700 |
Implements caching, but sets the default expiration to "never."
* debbugs.el: Download WSDL specification dynamically from selected
server.
---
debbugs.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/debbugs.el b/debbugs.el
index 5804752d77..0dae52509b 100644
--- a/debbugs.el
+++ b/debbugs.el
@@ -98,6 +98,13 @@ This corresponds to the Debbugs server to be accessed, either
(file-name-directory load-file-name)
default-directory))))
+(defun debbugs-download-soap-wsdl ()
+ "Download the WSDL object describing the SOAP interface."
+ (let* ((selected-server (alist-get debbugs-port debbugs-servers
+ nil nil #'equal))
+ (wsdl-url (plist-get selected-server :wsdl)))
+ (soap-load-wsdl wsdl-url)))
+
(defvar debbugs-wsdl-cache-alist nil
"Cache of WSDL objects for SOAP access.")
@@ -124,8 +131,6 @@ t or 0 disables caching, nil disables expiring."
'integer)))
(< age debbugs-wsdl-cache-expiry)))))
-;; It would be nice if we could retrieve it from the debbugs server.
-;; Not supported yet.
(defun debbugs-get-soap-wsdl ()
"Return the cached WSDL object describing the SOAP interface, or
reload it if the cache expired."
@@ -142,8 +147,7 @@ reload it if the cache expired."
((string= "debian.org" debbugs-port)
(debbugs-read-soap-wsdl-file
"Debbugs-debian.wsdl"))
- (error "Unknown Debbugs port %s"
- debbugs-port)))))
+ (t (debbugs-download-soap-wsdl))))))
(if (or (eq debbugs-wsdl-cache-expiry t)
(eq debbugs-wsdl-cache-expiry 0))
(progn
--
2.41.0
- [PATCH v2 0/5] Download WSDL for SOAP services from servers, Felix Lechner, 2024/03/15
- [PATCH v2 1/5] Don't hardcode gnu.org as debbugs-port for Gnus interface., Felix Lechner, 2024/03/15
- [PATCH v2 2/5] Fix docstring for :affects., Felix Lechner, 2024/03/15
- [PATCH v2 3/5] Fix description in docstring for debbugs-ports., Felix Lechner, 2024/03/15
- [PATCH v2 5/5] Download WSDL specification dynamically from selected server., Felix Lechner, 2024/03/15
- [PATCH v2 4/5] Bring labels for debbugs-cache-expiry in line with docstring., Felix Lechner, 2024/03/15
- Re: [PATCH v2 0/5] Download WSDL for SOAP services from servers, Michael Albinus, 2024/03/16
- [PATCH v3 0/8] Download WSDL for SOAP services from servers, Felix Lechner, 2024/03/18
- [PATCH v3 1/8] Enforce standard line length of 80 characters., Felix Lechner, 2024/03/18
- [PATCH v3 3/8] Fix docstring for :affects., Felix Lechner, 2024/03/18
- [PATCH v3 8/8] Download WSDL specification dynamically from selected server.,
Felix Lechner <=
- [PATCH v3 4/8] Fix description in docstring for debbugs-ports., Felix Lechner, 2024/03/18
- [PATCH v3 5/8] Bring labels for debbugs-cache-expiry in line with docstring., Felix Lechner, 2024/03/18
- [PATCH v3 7/8] Split the WSDL file into two that could be served remotely., Felix Lechner, 2024/03/18
- [PATCH v3 6/8] Offer cache facility for WSDL specification; default to no expiry., Felix Lechner, 2024/03/18
- [PATCH v3 2/8] Don't hardcode gnu.org as debbugs-port for Gnus interface., Felix Lechner, 2024/03/18
- [PATCH] Enforce standard line length of 80 characters., Felix Lechner, 2024/03/18
- Re: [PATCH] Enforce standard line length of 80 characters., Michael Albinus, 2024/03/19
- Re: [PATCH v3 0/8] Download WSDL for SOAP services from servers, Michael Albinus, 2024/03/19
- Re: [PATCH v3 0/8] Download WSDL for SOAP services from servers, Felix Lechner, 2024/03/20
- Re: [PATCH v3 0/8] Download WSDL for SOAP services from servers, Michael Albinus, 2024/03/21