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

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


but for:

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);
        }
}

any idea???
regards
-- 

Richard Torkar <richard.torkar@htu.se> a écrit :

> On Mon, 2004-06-07 at 09:28 +0200, KiOrKY wrote:
> *SNIP*
> &gt; and is there an util like wsdl.exe on mono?
> 
> Yes.
> 
> tux ~$ ls /usr/bin/wsdl*
> /usr/bin/wsdl  /usr/bin/wsdl.exe
> 
> 
> /Richard
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

-- 
----------------------------
- 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 
---------------------------------------------