Visual Basic - 401.2 - Unauthorized: Access is denied

Life is soft - evento anual de software empresarial
 
Vista:

401.2 - Unauthorized: Access is denied

Publicado por ;David (1 intervención) el 13/03/2008 11:46:26
Buenos dias y gracias de antemano,

Estoy intentando llamar a un Servicio Web desde un componente COM con el objeto MSXML2.ServerXMLHTTP40

'/* Abrimos la conexión con el método POST, ya que estamos enviando una petición. */
xmlHTTP.Open HTTP_POST, strUrl

'/* Agregamos encabezados HTTP requeridos por el WebService */
xmlHTTP.setRequestHeader HTTP_MAN, HTTP_POST & " " & strUrl & " " & HTTP_VER
xmlHTTP.setRequestHeader HTTP_CONTENTTYPE, DEF_HTTP_CONTENTTYPE
xmlHTTP.setRequestHeader HTTP_SOAPACTION, strSOAPAction

'/* Enviamos la petición */
xmlHTTP.send (strXMLSoap)

... y me da el siguiente error:

You are not authorized to view this page.

You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.

Please try the following:
Contact the Web site administrator if you believe you should be able to view this directory or page try again with different credentials.

HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Internet Information Services (IIS).

... ALGUIEN SABE COMO PUEDO SOLUCIONAR ESTO?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:401.2 - Unauthorized: Access is denied

Publicado por GabrielDR (11 intervenciones) el 23/03/2008 05:18:06
Me parece que no hay definido los accesos correctos para la aplicaòn (servicio web)
Yo opinaria que uses el asistente SOAP para definir los permisos en la aplicaicon (SOAP TOOLKIT) servidora.
Prueba agregar tu usuario (de maquina) a los permisos de acceso del IIS.

Por aqui mas
http://www.revista.unam.mx/vol.3/num1/art3/
y aqui otro poco
http://technet.microsoft.com/es-es/library/ms190399.aspx
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar