This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Zugriff auf Webservice: Authentication Failed

Wenn ich die URL http://data.wien.gv.at/daten/OGDAddressService.svc/GetAddressInfo?Address=Engerthstraße%20163/1.Sto/19-20&crs=EPSG:4326 aus meinem Browser heraus aufrufe, funktioniert es. (Das ist ein Webservice der JSON Resultate zurückgibt), da mein Active Directory Benutzername für das SingleSignOn mitgegeben wird.

Wenn ich aus meinem C#-Programm diesen Webservice aufrufe, versucht er es allerdings offensichtlich mit anonymous authentication und ich erhalte statt dem JSON-Resultat eine Sophos-Website mit der Meldung "Authentication Failed"

Hier der Auszug aus dem Log:

2018:05:09-10:35:10 utm1-1 httpproxy[30326]: id="0003" severity="info" sys="SecureWeb" sub="http" name="http access" action="pass" method="GET" srcip="192.168.1.37" dstip="" user="" group="" ad_domain="" statuscode="407" cached="0" profile="REF_DefaultHTTPProfile (Default Web Filter Profile)" filteraction=" ()" size="2516" request="0xb55dd600" url="http://data.wien.gv.at/daten/OGDAddressService.svc/GetAddressInfo?Address=Engerthstra%C3%9Fe%20163/1.Sto/19-20&crs=EPSG:4326" referer="" error="" authtime="1" dnstime="0" cattime="0" avscantime="0" fullreqtime="131" device="0" auth="2" ua="" exceptions="cache"

Was kann ich unternehmen dass entweder die anonymous-Authentifizierung für diese URL durchgeht, oder hat vielleicht jemand Erfahrung mit HttpClient.GetAsync() und wie man da die Authentifizierung mitschicken kann?

Dankeschön!
Anne



This thread was automatically locked due to age.