logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Authentication problem using SOAP: msg#00039

Subject: Re: Authentication problem using SOAP
Can you add

echo '<h2>Debug</h2><pre>' . htmlspecialchars($s->getDebug(), ENT_QUOTES) . 
'</pre>';

to the client and post all the client output (request, response and debug)?

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "George Pitcher" <george.pitcher@xxxxxxxxxxx>
To: <Nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, November 10, 2005 8:24 AM
Subject: [Nusoap-general] Authentication problem using SOAP


> Hi,
> 
> This is my first posting to this list.
> 
> I have successfully used nusoap to build a client for an external SOAP-based
> service (the Copyright Clearance Center's Academic Gateway). I'm now trying
> to build a server on my development machine (Win XP laptop with IIS5.1).
> 
> Startin with a really basic demo:
> =================================
> Server:
> <?php
>   function taxCalc ($rate=0, $sub=0){
>     return (($rate / 100) * $sub) + $sub;
>   }
>   require_once('nusoap.php');
>   $server = new nusoap_server;
>   $server->register('taxCalc');
>   $server->service($_SERVER['HTTP_RAW_POST_DATA']);
>   exit();
> ?>
> Client:
> <?php
>   require('nusoap.php');
>   $myString = 'George Pitcher';
>   $parameters = array($myString);
>   $username= 'ccsgep';
>   $password = 'LtPnr212';
>   $s = new nusoapclient('http://localhost/testsite/echoStringServer.php');
>   $result = $s->call('echoString', $parameters);
>   if (!$err = $s->getError()){
>   echo 'Result: '.$result;
>   } else {
>   echo 'Error: '.$err;
>   }
>   echo '<xmp>'.$s->request.'</xmp>';
>   echo '<xmp>'.$s->response.'</xmp>';
> ?>
> =======================================================
> This generates a HTTP 1.1 401 error.
> 
> I've tried using setCredentials() with no improvement.
> 
> I have no problem with any other apps I have in my 'testsite' directory.
> 
> I know that this is a SOAP problem, rather than a nusoap one as I get a
> similar response when I use the soap extension.
> 
> I'm using PHP5.1.0RC1 and have encountered no problems with it apart from
> having to rename soapclient to nusoapclient (in nusoap.php).
> 
> Any suggestions?
> 
> Cheers
> 
> George in Oxford
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>