Servidores distribuidos usando AIF, se obtiene el siguiente mensaje de error: "A call to SSPI failed, see inner exception." en Dynamics AX 2012

 

Hola -

Recién tuvimos una incidencia con AIF cuando se intenta probar  en una arquitectura de servidores distribuidos, es decir, por un lado tenemos el AOS y por el otro tenemos al AIF.

Mensaje de error: A call to SSPI failed, see inner exception. Press any key to continue. There is no inner exception. And no error in the AIF exception log.

 

Escenario.

  • Servidor A con: IIS, SQL y Web Services en el IIS instalado
  • Servidor B con: AOS y un cliente de AX y el servicio de AOS como una cuenta del dominio.

 

Pasos de Reproducción.

    1. Crear un puerto Inbound llamado Test en: System Administration > Setup > Services and Application > Integration Framework > Inbound ports

    2. Escoger HTTP como adaptador.

    3. Seleccionar la operación de SalesSalesOrderService.read bajo el monitor de operación del servicio.

    4. Activar el puerto

    5. Crear una nueva consola de proyecto en Visual Studio en el servidor B

    6. Consumir el web service que fue creado conforme el paso 1

    7. Reemplaza tu *.cs con lo siguiente:

    8. using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
      using ConsoleApplication1.orders;

      namespace ConsoleApplication1
      {
      class Program
      {
      static void Main(string[] args)
      {

      SalesOrderServiceClient client = new SalesOrderServiceClient();
      CallContext context = new CallContext();

      EntityKey key = new EntityKey();
      KeyField field = new KeyField();
      field.Field = "SalesId";
      field.Value = "CERW000749";
      key.KeyData = new KeyField[1] { field };

      try
      {

      AxdSalesOrder order = client.read(context, new EntityKey[] { key });
      Console.WriteLine("Got a result. Press any key to continue");
      Console.Read();
      }
      catch (Exception ex)
      {
      Console.WriteLine(ex.Message);
      //Console.WriteLine(ex.InnerException.Message);
      Console.WriteLine("Press any key to continue");
      Console.Read();
      }

      }
      }
      }

    9. Ejecuta el código.

    10. Resultado:  

    11. A call to SSPI failed, see inner exception. Press any key to continue. There is no inner exception. And no error in the AIF exception log.

    12. La solución a este tema, te recomendamos descargar el KB 2795022

 

  • Como obtener el KB?

  • En partnersource o bien contacta a soporte y con gusto alguno de mis compañeros te lo enviará a la brevedad posible.

 

Espero te sirva...

 

 

 

 Microsoft Disclaimer:  

"Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. This mail message assumes that you are familiar with the programming language that is being demonstrated and the tools that are used to create and debug procedures"