Webservices (soap,rest,...) - Problema al usar un servicio web de Navision

 
Vista:
sin imagen de perfil
Val: 1
Ha disminuido su posición en 4 puestos en Webservices (soap,rest,...) (en relación al último mes)
Gráfica de Webservices (soap,rest,...)

Problema al usar un servicio web de Navision

Publicado por Aitor (1 intervención) el 17/04/2018 11:32:53
Buenos dias,

Tengo una aplicacion web que tira de servcios web de navision. Funcionaba correctaemnte en un servidor antiguo, pero al realizar la migracion a un nuevo servidor, me encuentro con el siguiente problema.

He cambiado las referencias a lso servicios web en Visual Studio. Ahora apuntan a los servicios web del nuevo navision.

He alojado el sitio web en el IIS del nuevo servidor, y consigo acceder a la aplicacion sin problema. Pero, al realizar las llamada a los servicios web, em encuentro con el siguiente error, sacado del visior de eventos del servidor:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Event code: 3005
Event message: Excepción no controlada.
Event time: 17/04/2018 9:33:56
Event time (UTC): 17/04/2018 7:33:56
Event ID: 1377ba09b69b4676912727c7c2a74b71
Event sequence: 12
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/2/ROOT/Picking-1-131684240033263190
    Trust level: Full
    Application Virtual Path: /Picking
    Application Path: C:\Websites\Picking\
    Machine name: SRV-DC01
 
Process information:
    Process ID: 4724
    Process name: w3wp.exe
    Account name: IIS APPPOOL\Website
 
Exception information:
    Exception type: WebException
    Exception message: Error de la solicitud con el código de estado HTTP 401: Unauthorized.
   en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   en WebService.PDAMgt.ExistePicking(String numPicking)
   en Picking.Entrada.txtCodigo_TextChanged(Object sender, EventArgs e)
   en System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
   en System.Web.UI.Page.RaiseChangedEvents()
   en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
 
Request information:
    Request URL: http://srv-dc01:8090/Picking/Entrada.aspx 
    Request path: /Picking/Entrada.aspx
    User host address: 192.168.2.140
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: IIS APPPOOL\Website
 
Thread information:
    Thread ID: 7
    Thread account name: IIS APPPOOL\Website
    Is impersonating: False
    Stack trace:    en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   en WebService.PDAMgt.ExistePicking(String numPicking)
   en Picking.Entrada.txtCodigo_TextChanged(Object sender, EventArgs e)
   en System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
   en System.Web.UI.Page.RaiseChangedEvents()
   en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:

He intentado varias cosas con eprmisos y usuarios, pero ninguna funciona, y ya estoy un poco desesperado... Alguna idea de por dodne podria tirar?

Muchas gracias!
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