[Mono-list] webservices / error401 / credentials / modmono

KiOrKY KiOrKY <kiorky@goddess-gate.com>
Mon, 7 Jun 2004 09:28:17 +0200


does mono implement credentials because when i want to use a distant webservice on an IIS server i get ann  401 (access refused) error.
But when i accept anonymous request this 401 error disappear!
the code of the webservice:
	try{	
        Websrvcl.localhost.Service1 srv =  new Websrvcl.localhost.Service1();
        srv.Credentials = new System.Net.NetworkCredential("kiorky","*******");
	srv.PreAuthenticate = true;				
	smachaine = ""+ srv.HelloWorld();		
	Label1.Text=smachaine;
	}
	catch (System.Exception ex)
	{
	Response.Write(ex.Message);
        }
}

and is there an util like wsdl.exe on mono?
regards
-- 
----------------------------
- Gloire au monde libre    -
----------------------------
    I{ i () r |{ Y
    Debian User
---------------------------------------------
-- Mathieu PASQUET     
-- Testeur Debian SID
-- irc: #debian-fr / irc.freenode.net port: 6667 
-- Site: www.fr.debian.org 
---------------------------------------------