Skip to Content.
Sympa Menu

en - Re: [en@sympa] Description with SOAP

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Antonio Casado <address@concealed>
  • To: address@concealed
  • Subject: Re: [en@sympa] Description with SOAP
  • Date: Tue, 22 Nov 2022 19:58:57 +0100

Hi,

The solution is:
a) Extend <complexType name="listType"> in /etc/sympa/sympa.wsdl
b) Extend "SOAP type listType" in /usr/share/sympa/lib/Sympa/WWW/SOAP.pm
c) Extend "sub info" in /usr/share/sympa/lib/Sympa/WWW/SOAP.pm
d) Use $list->get_info
e) systemctl restart sympasoap

Bye.

El mar, 22 nov 2022 a las 9:50, Antonio Casado (<address@concealed>) escribió:
Hi all.

Is it complicated to extend the SOAP "info" command to show the description?
What would be the strategy to follow?

Steps:
a) Extend <complexType name="listType"> in /etc/sympa/sympa.wsdl
b) Extend "SOAP type listType" in /usr/share/sympa/lib/Sympa/WWW/SOAP.pm
c) Extend "sub info" in /usr/share/sympa/lib/Sympa/WWW/SOAP.pm
d) Where is list description? In  $list->{'admin'}{'description'}  or in a function like Sympa::get_description($list) ??
e) systemctl restart wwsympa

Is it correct?

Thanks you

El lun, 21 nov 2022 a las 12:58, Antonio Casado (<address@concealed>) escribió:
Hi David,

info command show "subject" too.
        <complexType name="listType">
           <all>
                <element name="listAddress" minOccurs="1" type="string"/>
                <element name="homepage" minOccurs="0" type="string"/>
                <element name="isSubscriber" minOccurs="0" type="boolean"/>
                <element name="isOwner" minOccurs="0" type="boolean"/>
                <element name="isEditor" minOccurs="0" type="boolean"/>
                <element name="subject" minOccurs="0" type="string"/>
                <element name="firstBounceDate"  minOccurs="0"  type="int"/>
                <element name="lastBounceDate"  minOccurs="0"  type="int"/>
                <element name="bounceCount"  minOccurs="0"  type="int"/>
                <element name="bounceCode" minOccurs="0"  type="string"/>
                <element name="bounceScore" minOccurs="0"  type="int"/>
           </all>
        </complexType>


Thanks you

El lun, 21 nov 2022 a las 12:47, David Verdin (<address@concealed>) escribió:

Hi,

The "lists", "which" and "complexlists" SOAP command return the list's subject (the short list description).

But that's all.

HOWEVER, once you got the list name, you can call the "info" SOAP command which will return the detailed list description. Note that there is no way to get the "web" list description. Only the plain text description.

See the following link for a detailed commands description:

https://www.sympa.community/manual/customize/soap-api.html

Regards,

David

On 21/11/2022 12:22, Antonio Casado (via en Mailing List) wrote:
Hi.

Is there a way to query the list description with SOAP? I only see the subject.

Thank you

-- 
"Mieux vaut viser la perfection et la rater que viser la médiocrité et l'atteindre."
- Francis Blanche

David Verdin
Chef de Projet Collaboratif
Département PROduits NUMériques
Direction des Services Applicatifs
RENATER - Rennes

Attachment: SOAP.pm.patch
Description: Binary data

Attachment: sympa.wsdl.patch
Description: Binary data




Archive powered by MHonArc 2.6.19+.

Top of Page