HttpChannel im Form

Mantra 1 Reputation point
2021-06-20T19:25:26.83+00:00
  public partial class Form1 : Form
    {
        CatDao catdao;



   public Form1()
    {
        HttpChannel channel = new HttpChannel();
        ChannelServices.RegisterChannel(channel, false);
        InitializeComponent();
        catdao = (CatDao)Activator.GetObject(typeof(CatDao), "http://localhost:8090/CatDao.soap");
        DataSet catdata = catdao.getCatDataSet();
        comboBox1.DisplayMember = "catName";
        comboBox1.ValueMember = "catPictureUrl";
        comboBox1.DataSource = catdata.Tables["cat"];            
    }

This is my code, somethings wrong, I can feel it

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
{count} votes