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

2004-06-07 Thread KiOrKY
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 
-


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread Richard Torkar
On Mon, 2004-06-07 at 09:28 +0200, KiOrKY wrote:
*SNIP*
 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  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread KiOrKY
sorry, it was so simple ;) 
thanks, thanks, thanks, thanks, thanks, thanks, thanks, thanks !!!

Richard Torkar [EMAIL PROTECTED] 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  -  [EMAIL PROTECTED]
 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 
-


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread KiOrKY

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 [EMAIL PROTECTED] 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  -  [EMAIL PROTECTED]
 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 
-


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread Jonathan Stowe
On Mon, 2004-06-07 at 08:38, KiOrKY wrote:
 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:

Is the IIS configured to use Basic Authentication or the windows
integrated authentication?  If the latter I think you will find it will
work if you use the former.

/J\

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread KiOrKY
i had tried both. Whats Former?
Jonathan Stowe [EMAIL PROTECTED] a écrit :

 On Mon, 2004-06-07 at 08:38, KiOrKY wrote:
 gt; but for:
 gt; 
 gt; does mono implement credentials because when i want to use a distant
 webservice on an IIS server i get ann  401 (access refused) error.
 gt; But when i accept anonymous request this 401 error disappear!
 gt; the code of the webservice:
 
 Is the IIS configured to use Basic Authentication or the windows
 integrated authentication?  If the latter I think you will find it will
 work if you use the former.
 
 /J\

-- 

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


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread Cory Nelson
Former == first of two things, Latter == second.  In this case Basic
Authentication and Windows Authentication.

On Mon,  7 Jun 2004 11:38:16 +0200, KiOrKY [EMAIL PROTECTED] wrote:
 
 i had tried both. Whats Former?
 Jonathan Stowe [EMAIL PROTECTED] a écrit :
 
  On Mon, 2004-06-07 at 08:38, KiOrKY wrote:
  gt; but for:
  gt;
  gt; does mono implement credentials because when i want to use a distant
  webservice on an IIS server i get ann  401 (access refused) error.
  gt; But when i accept anonymous request this 401 error disappear!
  gt; the code of the webservice:
 
  Is the IIS configured to use Basic Authentication or the windows
  integrated authentication?  If the latter I think you will find it will
  work if you use the former.
 
  /J\
 
 
 
 --
 
 - 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
 -
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread Black Fox
KiOrKY said the following:
Is the IIS configured to use Basic Authentication or the windows
integrated authentication?  If the latter I think you will find it will
work if you use the former.
i had tried both. Whats Former?
Jonathan Stowe [EMAIL PROTECTED] a écrit :
http://dictionary.cambridge.org/define.asp?key=former*2+0
Sa phrase se traduit ainsi : Si tu utilise la seconde méthode je pense 
que tu t'appercevras que ça fonctionne avec le première.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread KiOrKY
thanks, it works. Is there a mean to make it work witjh windows integrated 
authentification System?
regards
Cory Nelson [EMAIL PROTECTED] a écrit :

 Former == first of two things, Latter == second.  In this case Basic
 Authentication and Windows Authentication.
 
 On Mon,  7 Jun 2004 11:38:16 +0200, KiOrKY lt;[EMAIL PROTECTED]gt;
 wrote:
 gt; 
 gt; i had tried both. Whats Former?
 gt; Jonathan Stowe lt;[EMAIL PROTECTED]gt;
 a écrit :
 gt; 
 gt; gt; On Mon, 2004-06-07 at 08:38, KiOrKY wrote:
 gt; gt; amp;gt; but for:
 gt; gt; amp;gt;
 gt; gt; amp;gt; does mono implement credentials because when i want to use a
 distant
 gt; gt; webservice on an IIS server i get ann  401 (access refused) error.
 gt; gt; amp;gt; But when i accept anonymous request this 401 error
 disappear!
 gt; gt; amp;gt; the code of the webservice:
 gt; gt;
 gt; gt; Is the IIS configured to use Basic Authentication or the windows
 gt; gt; integrated authentication?  If the latter I think you will find it
 will
 gt; gt; work if you use the former.
 gt; gt;
 gt; gt; /J\
 gt; 
 gt; 
 gt; 
 gt; --
 gt; 
 gt; - Gloire au monde libre-
 gt; 
 gt;I{ i () r |{ Y
 gt;Debian User
 gt; -
 gt; -- Mathieu PASQUET
 gt; -- Testeur Debian SID
 gt; -- irc: #debian-fr / irc.freenode.net port: 6667
 gt; -- Site: www.fr.debian.org
 gt; -
 gt; 
 gt; ___
 gt; Mono-list maillist  -  [EMAIL PROTECTED]
 gt; http://lists.ximian.com/mailman/listinfo/mono-list
 gt;

-- 

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


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


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

2004-06-07 Thread Jonathan Stowe
On Mon, 2004-06-07 at 12:34, KiOrKY wrote:
 thanks, it works. Is there a mean to make it work witjh windows integrated 
 authentification System?

At a guess I would say supplying a patch that implemented NTLM Challenge
Response authentication would do it :-)

/J\
 regards
 Cory Nelson [EMAIL PROTECTED] a crit :
 
  Former == first of two things, Latter == second.  In this case Basic
  Authentication and Windows Authentication.
  
  On Mon,  7 Jun 2004 11:38:16 +0200, KiOrKY lt;[EMAIL PROTECTED]gt;
  wrote:
  gt; 
  gt; i had tried both. Whats Former?
  gt; Jonathan Stowe lt;[EMAIL PROTECTED]gt;
  a crit :
  gt; 
  gt; gt; On Mon, 2004-06-07 at 08:38, KiOrKY wrote:
  gt; gt; amp;gt; but for:
  gt; gt; amp;gt;
  gt; gt; amp;gt; does mono implement credentials because when i want to use a
  distant
  gt; gt; webservice on an IIS server i get ann  401 (access refused) error.
  gt; gt; amp;gt; But when i accept anonymous request this 401 error
  disappear!
  gt; gt; amp;gt; the code of the webservice:
  gt; gt;
  gt; gt; Is the IIS configured to use Basic Authentication or the windows
  gt; gt; integrated authentication?  If the latter I think you will find it
  will
  gt; gt; work if you use the former.
  gt; gt;
  gt; gt; /J\
  gt; 
  gt; 
  gt; 
  gt; --
  gt; 
  gt; - Gloire au monde libre-
  gt; 
  gt;I{ i () r |{ Y
  gt;Debian User
  gt; -
  gt; -- Mathieu PASQUET
  gt; -- Testeur Debian SID
  gt; -- irc: #debian-fr / irc.freenode.net port: 6667
  gt; -- Site: www.fr.debian.org
  gt; -
  gt; 
  gt; ___
  gt; Mono-list maillist  -  [EMAIL PROTECTED]
  gt; http://lists.ximian.com/mailman/listinfo/mono-list
  gt;

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list