• Uso del Webservice desde C#

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #16830  by diegospano
 
Estamos comenzando a desarrollar algunas integraciones con OpenKM a través de sus werbservices, pero no logramos pasar del primer escalón que es la autenticación. El entorno de desarrollo es C#.

Este es el codigo C# que se ejecuta en el load de un form, se hace referencia al webservice para autenticarme. El error que nos da es: Referencia a objeto no establecida como instancia de un objeto

Ejemplo del mismo:
Code: Select all
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EjemploConsumoWS0oKm.Autenticacion;
using EjemploConsumoWS0oKm.Documento;
using EjemploConsumoWS0oKm.Propiedades;
using EjemploConsumoWS0oKm.ServiceReference1;

namespace EjemploConsumoWS0oKm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
           EjemploConsumoWS0oKm.Autenticacion.OKMAuth Aut = null;
           try
           {
               string Autorizacion = Aut.login("okmAdmin", "admin");
           }
           catch (Exception)
           {
               throw;
           }
        }
    }
}
Si alguien a desarrollado en esta plataforma y nos puede dar una ayuda, estaremos muy agradecidos!.

Saludos

Diego Spano

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.