<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>I succeeded via Plack::Middleware::Auth::Basic<br>How I did it:

<br><br>...<br>my $daemon = XML::Compile::SOAP::Daemon::PSGI-&gt;new(...);<br>...<br>$daemon-&gt;operationsFromWSDL(<br>&nbsp;&nbsp;&nbsp; $wsdl,<br>&nbsp;&nbsp;&nbsp; callbacks =&gt; {...}<br>);<br><br># Set up PSGI app<br>#$daemon-&gt;to_app;<br>my %map = ( admin =&gt; "password" );<br>builder {<br>&nbsp;&nbsp;&nbsp; enable "Auth::Basic", authenticator =&gt; \&amp;cb;<br>&nbsp;&nbsp;&nbsp; $daemon;<br>};<br><br>sub cb {<br>&nbsp;&nbsp;&nbsp; my ( $username, $password ) = @_;<br>&nbsp;&nbsp;&nbsp; return $map{$username} &amp;&amp; $password eq $map{$username};<br>}<br><br><br><br><div><hr id="stopSpelling">From: dogma28@hotmail.com<br>To: xml-compile@lists.scsys.co.uk<br>Date: Tue, 17 Nov 2015 11:25:41 +0000<br>Subject: [Xml-compile] XML::Compile::SOAP::Daemon / Basic Real Auth<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hi,
<br><br>I have created&nbsp; webservice with "XML::Compile::SOAP::Daemon::PSGI.<br>Now, I must set up a HTTP Basic authentication, but I do not see how, would you give me a idea to do this ?<br><br>Thanks.                                               </div>
<br>_______________________________________________
Xml-compile mailing list
Xml-compile@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile</div>                                               </div></body>
</html>