Commerce Server General - HTTP status 401: Unauthorized. From ProfilesWebService

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2006 > HTTP status 401: Unauthorized. From ProfilesWebService





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author HTTP status 401: Unauthorized. From ProfilesWebService
Vince Cooper

2006-09-21, 7:24 pm

I am attempting to call the ProfilesWebService from a Pipeline component
using the following lines of code.

ProfilesWebService pws = new ProfilesWebService();
pws.Credentials = System.Net.CredentialCache.DefaultCredentials;
XmlElement addrProfile = pws.GetProfile(shippingAddressId,
"Address");


Everything else in my application seems to be working just fine, and the
Business Tools are also working as advertised which leads me to believe the
the web service is configured correctly (azman.msc, etc.)

Does anyone have any idea what I need to do to get around this issue? I'm
sure it is configuration related in some manner.

Thanks!
-Vince


Colin Bowern

2006-09-21, 7:24 pm

Vince,

Check out the following: http://support.microsoft.com/?id=907273

Are there any events in the event log on the server? Do you know what the
401 sub-status is (e.g. 401.1, etc..)?

Cheers,
Colin


"Vince Cooper" <vcooper@oakwoodsys.com> wrote in message
news:2818355946b28c8ab9c757b4500@msnews.microsoft.com...
>I am attempting to call the ProfilesWebService from a Pipeline component
>using the following lines of code.
>
> ProfilesWebService pws = new ProfilesWebService();
> pws.Credentials =
> System.Net.CredentialCache.DefaultCredentials;
> XmlElement addrProfile =
> pws.GetProfile(shippingAddressId, "Address");
>
>
> Everything else in my application seems to be working just fine, and the
> Business Tools are also working as advertised which leads me to believe
> the the web service is configured correctly (azman.msc, etc.)
>
> Does anyone have any idea what I need to do to get around this issue? I'm
> sure it is configuration related in some manner.
>
> Thanks!
> -Vince
>
>



Vince Cooper

2006-09-23, 1:32 am

Hello Colin,

Thanks for the response. I have already reviewed that document and still
havent found my answer. I've run AuthMon and it's not really telling me
anything either. I believe this may have something to do with the DefaultCredentials,
but that is just a shot in the dark. Any more help anyone can provide would
be most appreciated.

-Vince

[vbcol=seagreen]
> Vince,
>
> Check out the following: http://support.microsoft.com/?id=907273
>
> Are there any events in the event log on the server? Do you know what
> the 401 sub-status is (e.g. 401.1, etc..)?
>
> Cheers,
> Colin
> "Vince Cooper" <vcooper@oakwoodsys.com> wrote in message
> news:2818355946b28c8ab9c757b4500@msnews.microsoft.com...
>


David Messner [MSFT]

2006-09-23, 1:32 am


Vince,

Are the two applications on the same machine? What account is the IIS
application pool (for the calling app) running under - a local account or a
domain account? If you're using LocalSystem or NetworkService, you
probably need to change it to run under a specific user account.

Thanks
-David
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.

--------------------
From: Vince Cooper <vcooper@oakwoodsys.com>
Subject: Re: HTTP status 401: Unauthorized. From ProfilesWebService

Hello Colin,

Thanks for the response. I have already reviewed that document and still
havent found my answer. I've run AuthMon and it's not really telling me
anything either. I believe this may have something to do with the
DefaultCredentials,
but that is just a shot in the dark. Any more help anyone can provide
would
be most appreciated.

-Vince

[vbcol=seagreen]
> Vince,
>
> Check out the following: http://support.microsoft.com/?id=907273
>
> Are there any events in the event log on the server? Do you know what
> the 401 sub-status is (e.g. 401.1, etc..)?
>
> Cheers,
> Colin
> "Vince Cooper" <vcooper@oakwoodsys.com> wrote in message
> news:2818355946b28c8ab9c757b4500@msnews.microsoft.com...
>



Vince Cooper

2006-09-26, 7:23 pm

Hello David Messner [MSFT],

Everything is running on the same machine. I am attempting to call the ProfileWebService
from a Pipeline component. The App Pool is running as "RunTmeUser". Since
this is a development environment I have even gone to the extreme of putting
RunTimeUser in the local admin group. The machine is not a domain member
so all accounts are local. This thing has really murdered my productivity.
I can access the profile web service from a browser and from the business
tools, it is just this call that seems to have problems. What credentials
are passed when you use "Default Credentials"? Could this be the issue?

-Vince

> Vince,
>
> Are the two applications on the same machine? What account is the IIS
> application pool (for the calling app) running under - a local account
> or a domain account? If you're using LocalSystem or NetworkService,
> you probably need to change it to run under a specific user account.
>
> Thanks
> -David
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All
> rights
> reserved.
> --------------------
> From: Vince Cooper <vcooper@oakwoodsys.com>
> Subject: Re: HTTP status 401: Unauthorized. From ProfilesWebService
> Hello Colin,
>
> Thanks for the response. I have already reviewed that document and
> still havent found my answer. I've run AuthMon and it's not really
> telling me anything either. I believe this may have something to do
> with the DefaultCredentials, but that is just a shot in the dark. Any
> more help anyone can provide would be most appreciated.
>
> -Vince
>
> & #123;\rtf1\ansi\ansicpg1252\deff0\deflan
g1033{\fonttbl{\f0\fnil\fprq2\fcha
> rset0 MS Sans Serif;}}
>
> \viewkind4\uc1\pard\f0\fs20
>
> \par Vince,
>
> \par
>
> \par Are the two applications on the same machine? What account is
> the IIS application pool (for the calling app) running under - a local
> account or a domain account? If you're using LocalSystem or
> NetworkService, you probably need to change it to run under a specific
> user account.
>
> \par
>
> \par Thanks
>
> \par -David
>
> \par --
>
> \par This posting is provided "AS IS" with no warranties, and confers
> no rights.
>
> \par You assume all risk for your use. 'a9 2006 Microsoft
> Corporation. All rights
>
> \par reserved.
>
> \par
>
> \par \pard\li720 --------------------
>
> \par From: Vince Cooper <vcooper@oakwoodsys.com>
>
> \par Subject: Re: HTTP status 401: Unauthorized. From
> ProfilesWebService
>
> \par
>
> \par Hello Colin,
>
> \par
>
> \par Thanks for the response. I have already reviewed that document
> and still
>
> \par havent found my answer. I've run AuthMon and it's not really
> telling me
>
> \par anything either. I believe this may have something to do with
> the DefaultCredentials,
>
> \par but that is just a shot in the dark. Any more help anyone can
> provide would
>
> \par be most appreciated.
>
> \par
>
> \par -Vince
>
> \par
>
> \par
>
> \par > Vince,
>
> \par >
>
> \par > Check out the following:
> http://support.microsoft.com/?id=907273
>
> \par >
>
> \par > Are there any events in the event log on the server? Do you
> know what
>
> \par > the 401 sub-status is (e.g. 401.1, etc..)?
>
> \par >
>
> \par > Cheers,
>
> \par > Colin
>
> \par > "Vince Cooper" <vcooper@oakwoodsys.com> wrote in message
>
> \par > news:2818355946b28c8ab9c757b4500@msnews.microsoft.com...
>
> \par >
>
> \par >> I am attempting to call the ProfilesWebService from a Pipeline
>
> \par >> component using the following lines of code.
>
> \par >>
>
> \par >> ProfilesWebService pws = new ProfilesWebService();
> pws.Credentials =
>
> \par >> System.Net.CredentialCache.DefaultCredentials; XmlElement
> addrProfile
>
> \par >> = pws.GetProfile(shippingAddressId, "Address");
>
> \par >>
>
> \par >> Everything else in my application seems to be working just
> fine, and
>
> \par >> the Business Tools are also working as advertised which leads
> me to
>
> \par >> believe the the web service is configured correctly
> (azman.msc, etc.)
>
> \par >>
>
> \par >> Does anyone have any idea what I need to do to get around this
> issue?
>
> \par >> I'm sure it is configuration related in some manner.
>
> \par >>
>
> \par >> Thanks!
>
> \par >> -Vince
>
> \par
>
> \par \pard
>
> \par
>
> \par
>
> \par }
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com