You are here: Re: Http 401 Unauthorised « PHP Programming Language « IT news, forums, messages
Re: Http 401 Unauthorised

Posted by Iain Adams on 10/04/06 14:37

In Addition the actual error message is

A SoapException occurred: Message: The request failed with HTTP status
401: Unauthorized. Exception: System.Net.WebException: The request
failed with HTTP status 401: Unauthorized.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at CRMWebService.CRMWebService.CrmService.Execute(Request Request)
in \\MYCOMPUTER\\wwwroot\CRMWebService\Web
References\CRMWebService\Reference.cs:line 48
at CRMWebService.GetMultipleEntities.GetData(String[] fieldsToGet)
in \\mycomputer\\wwwroot\crmwebservice\getmultipleentities.cs:line 48

the Code this error refers to is actually Visual C# but is pretty
normal.


I just cant work out why sometimes it works and sometimes not


Iain Adams wrote:
> I currently have a web service set that returns data. When I use these
> services through a browser, everything works fine and the resulting xml
> is displayed. However sometimes when I connect to the scripts using a
> php script I get the error message Http 401: Unauthorised. This usually
> happens after a short time, when the webservices have not been used. I
> am connecting to the webservices using Http Post and cURL.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация