Ask a Question related to ASP.NET Web Services, Design and Development.
-
Kerry Matt #1
Problem accessing webservices
Hi All,
We have problems in accessing a WebService which is
running on a remote server from a ASPX application. It
gives us Un Authorized Exception. The Webservice is
using "Basing Authentication". Any idea of how to get it
work?.
Thanks in Advance.
Kerry Matt
Kerry Matt Guest
-
accessing webservices
Hi, I have a Flash minisite that connects to an asp.net based webservice using a webservice component. My AS 2.0 code triggers a WS method,... -
problem about webservices
hello,kind people. there is one problem about WebServices from me,i thought over and over,but no result. it looks not the FMS case,but as you... -
Problem with WebServices
Hello, I' ve created a new webService Project and run with "Hello World" example. It run fine. After it, i created a Winform project and included... -
webservices: simple question, accessing webservice members
Hi, (new to webservices here) Is it possible to access a class instance variable defined in a webservice? I want to access this variable, in... -
Accessing WebServices from a web app hosted inside Outlook XP
Ok, it turns out that "outlook:" moniker is actually causing our problem. When you first load a page into Outlook XP, the document.URL value is... -
Jan Tielens #2
Re: Problem accessing webservices
Probably you didn't set the PreAuthenticate property to true, and passed the
current credentials:
Dim eng As New myWebservice.Service
eng.PreAuthenticate = True
eng.Credentials = System.Net.CredentialCache.DefaultCredentials
'This will pass the credentials of the currently logged on user
eng.DoSomething
--
Greetz
Jan Tielens
________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Kerry Matt" <anonymous@discussions.microsoft.com> wrote in message
news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...> Hi All,
> We have problems in accessing a WebService which is
> running on a remote server from a ASPX application. It
> gives us Un Authorized Exception. The Webservice is
> using "Basing Authentication". Any idea of how to get it
> work?.
>
> Thanks in Advance.
>
> Kerry Matt
Jan Tielens Guest
-
Kerry Matt #3
Re: Problem accessing webservices
Thanks for your reply,
I need some clarifications, by
setting the Preauthenticate property are we sending the
credentials of the Web Service or the credentials of the
ASPX application. Since we run the ASPX application and
the Web Service on different systems i am having this
confusion.
Thanks in Advance,
KerryMatt
true, and passed the>-----Original Message-----
>Probably you didn't set the PreAuthenticate property toSystem.Net.CredentialCache.DefaultCredentials>current credentials:
>
>Dim eng As New myWebservice.Service
>eng.PreAuthenticate = True
>eng.Credentials =on user>'This will pass the credentials of the currently loggedin message>eng.DoSomething
>
>--
>Greetz
>
>Jan Tielens
>________________________________
>Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>
>
>"Kerry Matt" <anonymous@discussions.microsoft.com> wroteis>news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...>> Hi All,
>> We have problems in accessing a WebService which>>> running on a remote server from a ASPX application. It
>> gives us Un Authorized Exception. The Webservice is
>> using "Basing Authentication". Any idea of how to get it
>> work?.
>>
>> Thanks in Advance.
>>
>> Kerry Matt
>
>.
>Kerry Matt Guest
-
Jan Tielens #4
Re: Problem accessing webservices
You are sending the credentials of the user that is using your
website/application if you have checked Integrated Windows Security in IIS
management. Otherwise you're sending the credentials of the account your
asp.net site is running under.
--
Greetz
Jan Tielens
________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Kerry Matt" <anonymous@discussions.microsoft.com> wrote in message
news:079501c3c454$2a31ce70$a101280a@phx.gbl...> Thanks for your reply,
> I need some clarifications, by
> setting the Preauthenticate property are we sending the
> credentials of the Web Service or the credentials of the
> ASPX application. Since we run the ASPX application and
> the Web Service on different systems i am having this
> confusion.
>
> Thanks in Advance,
>
> KerryMatt
>> true, and passed the> >-----Original Message-----
> >Probably you didn't set the PreAuthenticate property to> System.Net.CredentialCache.DefaultCredentials> >current credentials:
> >
> >Dim eng As New myWebservice.Service
> >eng.PreAuthenticate = True
> >eng.Credentials => on user> >'This will pass the credentials of the currently logged> in message> >eng.DoSomething
> >
> >--
> >Greetz
> >
> >Jan Tielens
> >________________________________
> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
> >
> >
> >"Kerry Matt" <anonymous@discussions.microsoft.com> wrote> is> >news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...> >> Hi All,
> >> We have problems in accessing a WebService which> >> >> running on a remote server from a ASPX application. It
> >> gives us Un Authorized Exception. The Webservice is
> >> using "Basing Authentication". Any idea of how to get it
> >> work?.
> >>
> >> Thanks in Advance.
> >>
> >> Kerry Matt
> >
> >.
> >
Jan Tielens Guest
-
Kerry Matt #5
Re: Problem accessing webservices
Thanks for your reply,
I am using Basic Authentication in IIS. Should i send
the credentials for the Remote WebServer or the
credentials of my local ASPX application.
Thanks in Advance
Kerry Matt
your>-----Original Message-----
>You are sending the credentials of the user that is usingWindows Security in IIS>website/application if you have checked Integratedthe account your>management. Otherwise you're sending the credentials ofin message>asp.net site is running under.
>
>--
>Greetz
>
>Jan Tielens
>________________________________
>Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>
>
>"Kerry Matt" <anonymous@discussions.microsoft.com> wrotewrote>news:079501c3c454$2a31ce70$a101280a@phx.gbl...>> Thanks for your reply,
>> I need some clarifications, by
>> setting the Preauthenticate property are we sending the
>> credentials of the Web Service or the credentials of the
>> ASPX application. Since we run the ASPX application and
>> the Web Service on different systems i am having this
>> confusion.
>>
>> Thanks in Advance,
>>
>> KerryMatt
>>>> true, and passed the>> >-----Original Message-----
>> >Probably you didn't set the PreAuthenticate property to>> System.Net.CredentialCache.DefaultCredentials>> >current credentials:
>> >
>> >Dim eng As New myWebservice.Service
>> >eng.PreAuthenticate = True
>> >eng.Credentials =>> on user>> >'This will pass the credentials of the currently logged>> >eng.DoSomething
>> >
>> >--
>> >Greetz
>> >
>> >Jan Tielens
>> >________________________________
>> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>> >
>> >
>> >"Kerry Matt" <anonymous@discussions.microsoft.com>which>> in message>> >news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...
>> >> Hi All,
>> >> We have problems in accessing a WebServiceIt>> is>> >> running on a remote server from a ASPX application.get it>> >> gives us Un Authorized Exception. The Webservice is
>> >> using "Basing Authentication". Any idea of how to>>> >> work?.
>> >>
>> >> Thanks in Advance.
>> >>
>> >> Kerry Matt
>> >
>> >
>> >.
>> >
>
>.
>Kerry Matt Guest
-
Jan Tielens #6
Re: Problem accessing webservices
you should send the credentials of an account that has sufficient rights on
the remote server.
--
Greetz
Jan Tielens
________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Kerry Matt" <anonymous@discussions.microsoft.com> wrote in message
news:099f01c3c486$bbb4b5b0$a101280a@phx.gbl...> Thanks for your reply,
>
> I am using Basic Authentication in IIS. Should i send
> the credentials for the Remote WebServer or the
> credentials of my local ASPX application.
>
> Thanks in Advance
> Kerry Matt
>> your> >-----Original Message-----
> >You are sending the credentials of the user that is using> Windows Security in IIS> >website/application if you have checked Integrated> the account your> >management. Otherwise you're sending the credentials of> in message> >asp.net site is running under.
> >
> >--
> >Greetz
> >
> >Jan Tielens
> >________________________________
> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
> >
> >
> >"Kerry Matt" <anonymous@discussions.microsoft.com> wrote> wrote> >news:079501c3c454$2a31ce70$a101280a@phx.gbl...> >> Thanks for your reply,
> >> I need some clarifications, by
> >> setting the Preauthenticate property are we sending the
> >> credentials of the Web Service or the credentials of the
> >> ASPX application. Since we run the ASPX application and
> >> the Web Service on different systems i am having this
> >> confusion.
> >>
> >> Thanks in Advance,
> >>
> >> KerryMatt
> >>
> >> >-----Original Message-----
> >> >Probably you didn't set the PreAuthenticate property to
> >> true, and passed the
> >> >current credentials:
> >> >
> >> >Dim eng As New myWebservice.Service
> >> >eng.PreAuthenticate = True
> >> >eng.Credentials =
> >> System.Net.CredentialCache.DefaultCredentials
> >> >'This will pass the credentials of the currently logged
> >> on user
> >> >eng.DoSomething
> >> >
> >> >--
> >> >Greetz
> >> >
> >> >Jan Tielens
> >> >________________________________
> >> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
> >> >
> >> >
> >> >"Kerry Matt" <anonymous@discussions.microsoft.com>> which> >> in message
> >> >news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...
> >> >> Hi All,
> >> >> We have problems in accessing a WebService> It> >> is
> >> >> running on a remote server from a ASPX application.> get it> >> >> gives us Un Authorized Exception. The Webservice is
> >> >> using "Basing Authentication". Any idea of how to> >> >> >> work?.
> >> >>
> >> >> Thanks in Advance.
> >> >>
> >> >> Kerry Matt
> >> >
> >> >
> >> >.
> >> >
> >
> >.
> >
Jan Tielens Guest
-
Kerry Matt #7
Re: Problem accessing webservices
Does it means i have to hard code the User Name and
Password for the Remote Server.
Thanks in Advance
Kerry Matt.
sufficient rights on>-----Original Message-----
>you should send the credentials of an account that hasin message>the remote server.
>
>--
>Greetz
>
>Jan Tielens
>________________________________
>Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>
>
>"Kerry Matt" <anonymous@discussions.microsoft.com> wroteusing>news:099f01c3c486$bbb4b5b0$a101280a@phx.gbl...>> Thanks for your reply,
>>
>> I am using Basic Authentication in IIS. Should i send
>> the credentials for the Remote WebServer or the
>> credentials of my local ASPX application.
>>
>> Thanks in Advance
>> Kerry Matt
>>>> >-----Original Message-----
>> >You are sending the credentials of the user that iswrote>> your>> Windows Security in IIS>> >website/application if you have checked Integrated>> the account your>> >management. Otherwise you're sending the credentials of>> >asp.net site is running under.
>> >
>> >--
>> >Greetz
>> >
>> >Jan Tielens
>> >________________________________
>> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>> >
>> >
>> >"Kerry Matt" <anonymous@discussions.microsoft.com>the>> in message>> >news:079501c3c454$2a31ce70$a101280a@phx.gbl...
>> >> Thanks for your reply,
>> >> I need some clarifications, by
>> >> setting the Preauthenticate property are we sendingthe>> >> credentials of the Web Service or the credentials ofand>> >> ASPX application. Since we run the ASPX applicationproperty to>> >> the Web Service on different systems i am having this
>> >> confusion.
>> >>
>> >> Thanks in Advance,
>> >>
>> >> KerryMatt
>> >>
>> >> >-----Original Message-----
>> >> >Probably you didn't set the PreAuthenticatelogged>> >> true, and passed the
>> >> >current credentials:
>> >> >
>> >> >Dim eng As New myWebservice.Service
>> >> >eng.PreAuthenticate = True
>> >> >eng.Credentials =
>> >> System.Net.CredentialCache.DefaultCredentials
>> >> >'This will pass the credentials of the currentlyapplication.>> wrote>> >> on user
>> >> >eng.DoSomething
>> >> >
>> >> >--
>> >> >Greetz
>> >> >
>> >> >Jan Tielens
>> >> >________________________________
>> >> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>> >> >
>> >> >
>> >> >"Kerry Matt" <anonymous@discussions.microsoft.com>>> which>> >> in message
>> >> >news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...
>> >> >> Hi All,
>> >> >> We have problems in accessing a WebService>> >> is
>> >> >> running on a remote server from a ASPXis>> It>> >> >> gives us Un Authorized Exception. The Webservice>>> get it>> >> >> using "Basing Authentication". Any idea of how to>> >> >> work?.
>> >> >>
>> >> >> Thanks in Advance.
>> >> >>
>> >> >> Kerry Matt
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >
>
>.
>Kerry Matt Guest
-
Jan Tielens #8
Re: Problem accessing webservices
Or you can put them in a config file, database, ... yes.
--
Greetz
Jan Tielens
________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Kerry Matt" <anonymous@discussions.microsoft.com> wrote in message
news:03ef01c3c4a3$bf7a6a10$a001280a@phx.gbl...> Does it means i have to hard code the User Name and
> Password for the Remote Server.
>
> Thanks in Advance
>
> Kerry Matt.
>> sufficient rights on> >-----Original Message-----
> >you should send the credentials of an account that has> in message> >the remote server.
> >
> >--
> >Greetz
> >
> >Jan Tielens
> >________________________________
> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
> >
> >
> >"Kerry Matt" <anonymous@discussions.microsoft.com> wrote> using> >news:099f01c3c486$bbb4b5b0$a101280a@phx.gbl...> >> Thanks for your reply,
> >>
> >> I am using Basic Authentication in IIS. Should i send
> >> the credentials for the Remote WebServer or the
> >> credentials of my local ASPX application.
> >>
> >> Thanks in Advance
> >> Kerry Matt
> >>
> >> >-----Original Message-----
> >> >You are sending the credentials of the user that is> wrote> >> your
> >> >website/application if you have checked Integrated
> >> Windows Security in IIS
> >> >management. Otherwise you're sending the credentials of
> >> the account your
> >> >asp.net site is running under.
> >> >
> >> >--
> >> >Greetz
> >> >
> >> >Jan Tielens
> >> >________________________________
> >> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
> >> >
> >> >
> >> >"Kerry Matt" <anonymous@discussions.microsoft.com>> the> >> in message
> >> >news:079501c3c454$2a31ce70$a101280a@phx.gbl...
> >> >> Thanks for your reply,
> >> >> I need some clarifications, by
> >> >> setting the Preauthenticate property are we sending> the> >> >> credentials of the Web Service or the credentials of> and> >> >> ASPX application. Since we run the ASPX application> property to> >> >> the Web Service on different systems i am having this
> >> >> confusion.
> >> >>
> >> >> Thanks in Advance,
> >> >>
> >> >> KerryMatt
> >> >>
> >> >> >-----Original Message-----
> >> >> >Probably you didn't set the PreAuthenticate> logged> >> >> true, and passed the
> >> >> >current credentials:
> >> >> >
> >> >> >Dim eng As New myWebservice.Service
> >> >> >eng.PreAuthenticate = True
> >> >> >eng.Credentials =
> >> >> System.Net.CredentialCache.DefaultCredentials
> >> >> >'This will pass the credentials of the currently> application.> >> >> on user
> >> >> >eng.DoSomething
> >> >> >
> >> >> >--
> >> >> >Greetz
> >> >> >
> >> >> >Jan Tielens
> >> >> >________________________________
> >> >> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
> >> >> >
> >> >> >
> >> >> >"Kerry Matt" <anonymous@discussions.microsoft.com>
> >> wrote
> >> >> in message
> >> >> >news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...
> >> >> >> Hi All,
> >> >> >> We have problems in accessing a WebService
> >> which
> >> >> is
> >> >> >> running on a remote server from a ASPX> is> >> It
> >> >> >> gives us Un Authorized Exception. The Webservice> >> >> >> >> using "Basing Authentication". Any idea of how to
> >> get it
> >> >> >> work?.
> >> >> >>
> >> >> >> Thanks in Advance.
> >> >> >>
> >> >> >> Kerry Matt
> >> >> >
> >> >> >
> >> >> >.
> >> >> >
> >> >
> >> >
> >> >.
> >> >
> >
> >.
> >
Jan Tielens Guest
-
Kerry Matt #9
Re: Problem accessing webservices
Hi Jan,
Thanks very much for the clarification. It was a timely
help which means lot to us.
in message>-----Original Message-----
>Or you can put them in a config file, database, ... yes.
>
>--
>Greetz
>
>Jan Tielens
>________________________________
>Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>
>
>"Kerry Matt" <anonymous@discussions.microsoft.com> wrotewrote>news:03ef01c3c4a3$bf7a6a10$a001280a@phx.gbl...>> Does it means i have to hard code the User Name and
>> Password for the Remote Server.
>>
>> Thanks in Advance
>>
>> Kerry Matt.
>>>> sufficient rights on>> >-----Original Message-----
>> >you should send the credentials of an account that has>> >the remote server.
>> >
>> >--
>> >Greetz
>> >
>> >Jan Tielens
>> >________________________________
>> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>> >
>> >
>> >"Kerry Matt" <anonymous@discussions.microsoft.com>send>> in message>> >news:099f01c3c486$bbb4b5b0$a101280a@phx.gbl...
>> >> Thanks for your reply,
>> >>
>> >> I am using Basic Authentication in IIS. Should icredentials of>> using>> >> the credentials for the Remote WebServer or the
>> >> credentials of my local ASPX application.
>> >>
>> >> Thanks in Advance
>> >> Kerry Matt
>> >>
>> >> >-----Original Message-----
>> >> >You are sending the credentials of the user that is>> >> your
>> >> >website/application if you have checked Integrated
>> >> Windows Security in IIS
>> >> >management. Otherwise you're sending theclarifications, by>> wrote>> >> the account your
>> >> >asp.net site is running under.
>> >> >
>> >> >--
>> >> >Greetz
>> >> >
>> >> >Jan Tielens
>> >> >________________________________
>> >> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>> >> >
>> >> >
>> >> >"Kerry Matt" <anonymous@discussions.microsoft.com>>> >> in message
>> >> >news:079501c3c454$2a31ce70$a101280a@phx.gbl...
>> >> >> Thanks for your reply,
>> >> >> I need somesending>> >> >> setting the Preauthenticate property are weof>> the>> >> >> credentials of the Web Service or the credentialsapplication>> the>> >> >> ASPX application. Since we run the ASPXthis>> and>> >> >> the Web Service on different systems i am having<anonymous@discussions.microsoft.com>>> property to>> >> >> confusion.
>> >> >>
>> >> >> Thanks in Advance,
>> >> >>
>> >> >> KerryMatt
>> >> >>
>> >> >> >-----Original Message-----
>> >> >> >Probably you didn't set the PreAuthenticate>> logged>> >> >> true, and passed the
>> >> >> >current credentials:
>> >> >> >
>> >> >> >Dim eng As New myWebservice.Service
>> >> >> >eng.PreAuthenticate = True
>> >> >> >eng.Credentials =
>> >> >> System.Net.CredentialCache.DefaultCredentials
>> >> >> >'This will pass the credentials of the currently>> >> >> on user
>> >> >> >eng.DoSomething
>> >> >> >
>> >> >> >--
>> >> >> >Greetz
>> >> >> >
>> >> >> >Jan Tielens
>> >> >> >________________________________
>> >> >> >Read my weblog: [url]http://weblogs.asp.net/jan[/url]
>> >> >> >
>> >> >> >
>> >> >> >"Kerry Matt"WebService>> >> wrote
>> >> >> in message
>> >> >> >news:09f501c3c3c9$7f4fe0d0$a301280a@phx.gbl...
>> >> >> >> Hi All,
>> >> >> >> We have problems in accessing aWebservice>> application.>> >> which
>> >> >> is
>> >> >> >> running on a remote server from a ASPX>> >> It
>> >> >> >> gives us Un Authorized Exception. Theto>> is>> >> >> >> using "Basing Authentication". Any idea of how>>> >> get it
>> >> >> >> work?.
>> >> >> >>
>> >> >> >> Thanks in Advance.
>> >> >> >>
>> >> >> >> Kerry Matt
>> >> >> >
>> >> >> >
>> >> >> >.
>> >> >> >
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >
>
>.
>Kerry Matt Guest
-
Dan Campbell #10
Re: Problem accessing webservices
WOW! So that what I have been doing wrong. Thanks.
eng.PreAuthenticate = True> >> >eng.Credentials =
> >> System.Net.CredentialCache.DefaultCredentials
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Dan Campbell Guest



Reply With Quote

