Skip to Content.
Sympa Menu

en - Re: [sympa-users] Problem with soap and external application

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Sérgio Afonso <address@concealed>
  • To: Jobst Schmalenbach <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Problem with soap and external application
  • Date: Mon, 15 Jun 2009 12:33:24 +0100

Hello Jobst,

I have a similar config and its working without problems.

I would try to change the proxy_for_variables in trusted_applications.conf inside /home/sympa/etc to:
---
proxy_for_variables USER_EMAIL,remote_host
---

And then restart sympa and try again.

HTH,

Sérgio Afonso

Jobst Schmalenbach wrote:
Hi.

I have a problem using the soap interface from an external application.
For starters I tried the things that are explained in the FAQ
(http://www.sympa.org/manual/soap) using the soap_client

I placed the "trusted_applications.conf" into [just to be sure ;-) i always
do this to lower errors]

* /etc
* /home/sympa/etc
* /home/sympa/bin/etc/

with the following content:

trusted_application
# name of the trusted application. This is the appname soap element
name soaptest
#
md5password d8578edf8458ce06fbc5bb76a58c5ca4
# the md5 digest of the application pasword. You can get it with sympa.pl
--md5_digest=<the password>
#
proxy_for_variables USER_EMAIL,remote_host,createList,add
# the comma separated list of vars the trusted application can set.

and then I tried the following commands to test this setup:


[/home/sympa/bin/etc] #>/home/sympa/bin/sympa_soap_client.pl
--soap_url=http://lists.barrett.com.au/sympasoap --service=add
+--trusted_application=soaptest --trusted_application_password=qwerty
--address@concealed'
+--service_parameters="test,address@concealed,myname"
calling authenticateRemoteAppAndRun( soaptest, qwerty,
address@concealed,add,test,address@concealed,myname)
Soap error :
detail = Authentication failed for application soaptest
faultcode = SOAP-ENV:Server
faultstring = Authentification failed


"address@concealed" is an existing user whom I made priviledged for now, all
passwords are the same (the users password in the
+database, the md5 one and the one on the command line only for the testing)


This one works (so this means I have access to the server, username and
password):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sympa/bin/sympa_soap_client.pl
--soap_url=http://lists.barrett.com.au/sympasoap
--address@concealed
+--user_password=qwerty
LOGIN....
0
'87eba6b9'
AuthenticateAndRun simple which....
0

'isOwner=1;homepage=http://lists.barrett.com.au/sympa/info/test;subject=Barrett's
+Testing;address@concealed;isEditor=0;isSubscriber=0'



Any ideas?
Jobst












Archive powered by MHonArc 2.6.19+.

Top of Page