help-debbugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/8] Download WSDL for SOAP services from servers


From: Felix Lechner
Subject: [PATCH v3 0/8] Download WSDL for SOAP services from servers
Date: Mon, 18 Mar 2024 06:07:01 -0700

On Sat, Mar 16 2024, Michael Albinus wrote:

> I don't expect that debbugs.gnu.org or bugs.debian.org will offer a WSDL
> file any time soon. We must accept this, and use a local file instead
> for these two servers.

Since you said that the specifications of the two servers diverged [1]
I split them into two local files.  Either one could be deployed when
the time is right, independent of the other.

The two files were modified according to your instructions. [1]

> I don't believe we need caching for the WSDL file. It is stable per
> server (compared with the life time of an Emacs session)

That's not true for me.  As an EXWM user with a stable base system, my
Emacs sessions often last two months.  In a compromise, I implemented
caching, which I think is superior to the "defconst debbugs-wsdl", but
set the defaul expiration to "never."  You should see no change in
behavior in your use case.

> please ensure that line lengths do not exceed the 80 char width

Thank you for that pointer.  I did, and also took the liberty to
adjust the code in other places where it did not comply.

> Both not needed.
> Not needed.

As mentioned above, I need caching.  It is more flexible than the
current defconst at startup, so I am hoping you might be inclined to
accept it.  The default is "no expiry," which is similar to loading it
only once.

> In debbugs-servers, replace the :wsdl entry for the two predefined
> servers with the URL of the local WSDL file.

That's a great idea, but I think there are two hurdles.  First, the
path in the local file is currently computed in Elisp and may not be
the same in all client installation.  Second, the SOAP client library
does not accept the "file://" URI method (although it does accept a
plain string.)

[1] https://lists.gnu.org/archive/html/help-debbugs/2024-03/msg00038.html



Felix Lechner (8):
  Enforce standard line length of 80 characters.
  Don't hardcode gnu.org as debbugs-port for Gnus interface.
  Fix docstring for :affects.
  Fix description in docstring for debbugs-ports.
  Bring labels for debbugs-cache-expiry in line with docstring.
  Offer cache facility for WSDL specification; default to no expiry.
  Split the WSDL file into two that could be served remotely.
  Download WSDL specification dynamically from selected server.

 Debbugs-debian.wsdl              | 319 +++++++++++++++++++++++++++++++
 Debbugs.wsdl => Debbugs-gnu.wsdl |  13 +-
 debbugs-gnu.el                   |   4 +-
 debbugs.el                       | 123 +++++++++---
 4 files changed, 427 insertions(+), 32 deletions(-)
 create mode 100644 Debbugs-debian.wsdl
 rename Debbugs.wsdl => Debbugs-gnu.wsdl (97%)


base-commit: 5bc4ec9dbde38f0a142fd81e7f54e309069b24b4
-- 
2.41.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]