Wednesday, January 25, 2006

{"The request failed with HTTP status 401: Unauthorized."}

while trying to use the BamQueryService web service to create a custom BAM interface in BizTalk 2006 i ran into:

{"The request failed with HTTP status 401: Unauthorized."}

I tried giving IUSR_*** permissions to the BAM site but that did not work for me.
I found out that the web user credentials have to be given to the service before.
To fix this I added:


localhost.BamQueryService oBQS = new localhost.BamQueryService();

THIS LINE: oBQS.UseDefaultCredentials = true;

oBQS.GetInstanceData("ManagerView", "Watch Cert", query, 60);

I just wanted to add a solution to this other than the ones I've seen online, just in case someone runs into it.
g'luck

0 Comments:

Post a Comment

<< Home