Subject: The mailing list for listmasters using Sympa
List archive
- From: Jobst Schmalenbach <address@concealed>
- To: address@concealed
- Subject: [sympa-users] Struggling with the SOAP interface
- Date: Fri, 16 Jun 2006 21:00:39 +1000
All!
I am having problems getting soap to work with Sympa.
I use soap so often with a lot of stuff that it
became sort of unknown to me to have problems.
But with this one, I am lost!
When I look at the DEBUG output of the nusoap stuff I can see
nusoapclient: In serializeEnvelope length=164 body (max 1000
characters)=<ns6192:login xmlns:ns6192="urn:sympasoap"><email
xsi:type="xsd:string">XXXXXXXXXXXXX</email><password
xsi:type="xsd:string">XXXXXXXXXXXXX</password></ns6192:login> style=rpc
use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
AND:
nusoapclient: call: operation=login, namespace=http://tempuri.org,
soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl
params=array(2) {
[0]=>
string(18) "XXXXXXXXXXXXXXX"
[1]=>
string(8) "XXXXXXXXXXXXXXXXX"
}
so it actually gets it.
But then I get here and that seems to be the error:
2006-06-16 20:25:05.737624 nusoapclient: Error: no transport found, or
selected transport is not yet supported!
The output of the code below
==> ../php <==
[16-Jun-2006 20:58:29] Using NUSOAP
[16-Jun-2006 20:58:29] PHP Notice: Undefined index: sympaEmail in
/home/httpd/www.barrett.com.au/htdocs/soapclient.php on line 44
[16-Jun-2006 20:58:29] LOGIN: 'XXXXXXXXXXXXXXXXXXXXX' and 'XXXXXXXXXXXXXx'
[16-Jun-2006 20:58:29] MD5: ''
==> ../sympa <==
Jun 16 20:58:29 vps881 wwsympa[2682]: do_wsdl ()
The guts of the code:
------------------------------------------------------------------------
require_once('/home/httpd/php/nusoap/nusoap.php');
global $userEmail;
global $md5;
global $soapServer;
$soapServer = "http://www.barrett.com.au/sympa/wsdl";
# because I use PHP5 I need to do this.
if(class_exists("nusoapclient"))
{
error_log("Using NUSOAP");
$soapclient = new nusoapclient($soapServer,'wsdl');
}
else
{
error_log("Using normal SOAP");
$soapclient = new soapclient($soapServer,'wsdl');
}
$soapclient->debug=true;
$soapclient->debug_flag=false;
$soapclient->debugLevel=9;
# LOTS OF IF's deleted.
#
else if ($_POST['email'] && $_POST['pwd'])
{
error_log("LOGIN: '".$_POST['email']."' and '".$_POST['pwd']."'");
# i tried WITH and WITOUT md5
# the passwd itself in the database (stuff deleted!) is:
crypt.XXXXXXXXXXXXXXXXX
$md5 = $soapclient->call('login',array($_POST['email'],$_POST['pwd']));
error_log("MD5: '".$md5."'");
if (gettype($md5) == "string")
{
# never gets here.
$userEmail = $_POST['email'];
setcookie("sympaEmail",$userEmail);
setcookie("sympaMd5",$md5);
}
else
{
error_log("STUFFED!!!!!!!");
}
}
-----------------------------------------------------------------------------------
--
Educational software is like Science Fiction. It doesn't have to work, just
look good.
__, Jobst Schmalenbach, Technical Director
_ _.--'-n_/ Barrett Consulting Group P/L & The Meditation Room P/L
-(_)------(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
-
[sympa-users] Struggling with the SOAP interface,
Jobst Schmalenbach, 06/16/2006
-
Re: [sympa-users] Struggling with the SOAP interface => MORE INFO,
Jobst Schmalenbach, 06/16/2006
-
Re: [sympa-users] Struggling with the SOAP interface => MORE INFO,
Olivier Salaün, 06/17/2006
- Re: [sympa-users] Struggling with the SOAP interface => MORE INFO, Jobst Schmalenbach, 06/19/2006
-
Re: [sympa-users] Struggling with the SOAP interface => MORE INFO,
Olivier Salaün, 06/17/2006
-
Re: [sympa-users] Struggling with the SOAP interface => MORE INFO,
Jobst Schmalenbach, 06/16/2006
Archive powered by MHonArc 2.6.19+.