---
title: "Problem med Web Service"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/131703-problem-med-web-service"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "niels"
published: "2005-07-21T06:07:34.000Z"
updated: "2005-07-21T06:07:34.000Z"
replies: 0
views: 254
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/131703-problem-med-web-service"
---

# Problem med Web Service

## #1 — niels, 2005-07-21T06:07Z

Tja!
Har ett problem som jag hemst gärna skulle vilja ha hjälp med...
(skrivet på engelska för posting i engelsk forum...)

I've created a Webservice and an small application that consumes this webservice. When hosting the webservice on my computer everything works fine. But now I tried to install the webservice on the computer that's going to act as my server and I get some problems with access control.

(In the installation process I just copied the files needed and made some minor changes in IIS).

First I get the exception (when running the client application)

An exception occured while executing TPUpdater.DoTPUpdate(): 

System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: 

<http://10.96.1.104/TPEGBUWebService/DoTPUpdate.>

at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()

at System.Web.Services.Protocols.SoapServerProtocol.Initialize()

at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest 

request, HttpResponse response, Boolean& abortProcessing)

Then if I change in ISS, properties for my WebService-\>Directory Security-\>Edit(under Anonymous Access 

and...)-\> uncheck Anonymous Access. I get the following Exception instead:

An exception occured while executing TPUpdater.DoTPUpdate(): The request failed with HTTP status 

401: Access Denied.

So...can anyone explain to me how to setup the access for an application to call an webservice?

(By the way... the Web service works if I go to <http://10.96.1.104/TPEGBUWebService/> (or on localhost) without any problem.)

Thank you for your help! Best Regards!
/Niels

Permalänk: https://www.webforum.nu/p/131703

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/131703-problem-med-web-service
