Subject: The mailing list for listmasters using Sympa
List archive
- From: "Engels, Jan" <address@concealed>
- To: Graham Pearson <address@concealed>
- Cc: sympa-users <address@concealed>
- Subject: Re: [sympa-users] Sympa SOAP
- Date: Thu, 22 Mar 2018 10:34:31 +0100 (CET)
Hi everyone,
since we've updated to 6.2.24 (from version 6.2.16) we're also facing the same problem as Graham using the soap interface.
The following php script was working fine with version 6.2.16:
<?php
$wsdl = 'https://sympa-test.desy.de/sympa/wsdl';
$user = 'address@concealed';
$password = 'xxxxx';
$wsdl = 'https://sympa-test.desy.de/sympa/wsdl';
$user = 'address@concealed';
$password = 'xxxxx';
$client = new SoapClient($wsdl, [
'cache_wsdl' => WSDL_CACHE_NONE,
]);
//login
$client->__setCookie("sympa_session", $client->login($user, $password));
//try to delete user
$client->__soapCall('del', ['testlist', 'address@concealed', true]);
Now it is throwing the following error:
PHP Fatal error: Uncaught SoapFault exception: [soap:Server] bug in logic. Ask developer at /usr/share/sympa/lib/Sympa/Spindle/AuthorizeRequest.pm line 66.
in /tmp/sympa_test.php:15
Stack trace:
#0 /tmp/sympa_test.php(15): SoapClient->__soapCall('del', Array)
#1 {main}
thrown in /tmp/sympa_test.php on line 15
in /tmp/sympa_test.php:15
Stack trace:
#0 /tmp/sympa_test.php(15): SoapClient->__soapCall('del', Array)
#1 {main}
thrown in /tmp/sympa_test.php on line 15
Anyone has an idea what is going wrong or how to fix this?
Cheers
Jan
From: "Graham Pearson" <address@concealed>
To: "sympa-users" <address@concealed>
Sent: Wednesday, 14 February, 2018 15:39:17
Subject: Re: [sympa-users] Sympa SOAP
As I struggle through the SOAP stuff in Sympa I am to the point now of another error message as I have been able to work out the details of the sympa_soap_client.pl scriptI am now trying to POST to /sympasoap with the same variables and values from the sympa_soap_client.pl script which I am receiving the followingApplication failed during request deserialization:not well-formed (invalid token) at line 1, column 7, byte 7 at /usr/lib64/perl5/vendor_perl/XML/Parser.pm line 187.Not sure how to debug thisFrom: "gpearson" <address@concealed>
To: "sympa-users" <address@concealed>
Sent: Tuesday, February 6, 2018 8:14:27 AM
Subject: [sympa-users] Sympa SOAPI am trying to connect a CMS to Sympa with SOAP to allow administrators the ability to add and remove subscribers with ease instead of logging into the Sympa Website.I am able to get a list of mailing lists with soap and that part works.My issue is with adding a new subscriber, right now I am doing this command line until I can get all of the necessary parameters configured then I will configure the CMS to do a http request based on the information passed/usr/share/sympa/bin/sympa_soap_client.pl --soap_url=http://{WEBSITE_URL}/sympasoap --service=add --trusted_application={TrustedAppWebiteName} --trusted_application_password={TrustedAppWebsitePassword} --proxy_vars=''USER_EMAIL={Email Address of Admin}'' --service_parameters=test,{Email Address of new Subscriber},'',trueWhen I do this I get the followingSoap error :faultcode = soap:Serverfaultstring = bug in logic. Ask developer at /usr/share/sympa/lib/Sympa/Spindle/AuthorizeRequest.pm line 66Line 66my $context = $self->{scenario_context}or die 'bug in logic. Ask developer';Any Insight that can help
--
This message has been scanned for viruses and dangerous content by
E.F.A. Project, and is believed to be clean.
Click here to report this message as spam.
- Re: [sympa-users] Sympa SOAP, Engels, Jan, 03/22/2018
Archive powered by MHonArc 2.6.19+.