locked
Error consuming WS that sends a digitally signed xml from C# RRS feed

  • Question

  • Hi people. I am needing your help to solve my problem.

    I created an C# Windows Form app proyect. Then I add a service reference

    I add a button and coded it to consume that WS. I received in response "Error al consumir Web Service"

    PLEASE help me, what am I doing wrong?
    This is my code

    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 System.IO;
    using fg= EnviarWS_3.Servicio;
    using System.Web.Services;
    using System.Web.Services.Description;
    using gh= System.ServiceModel.Description;
    //
    namespace EnviarWS_3
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                EnviarWS_3.Servicio.WS_eFacturaSoapPortClient x1 = new EnviarWS_3.Servicio.WS_eFacturaSoapPortClient();
                fg.EFACRECEPCIONSOBRERequest x11 = new fg.EFACRECEPCIONSOBRERequest();
                EnviarWS_3.Servicio.Data xEnviar = new EnviarWS_3.Servicio.Data();
                EnviarWS_3.Servicio.Data xRecibir = new EnviarWS_3.Servicio.Data();
                
                String Sobre_cCFE = @"C:\Users\Ruben\Documents\Visual Studio 2010\Projects\eDocums\eDocums\bin\Debug\Sobre17_07_24T18_34.xml";
    
                xEnviar.xmlData = Sobre_cCFE;
    
                try
                {
                    xRecibir = x1.EFACRECEPCIONSOBRE(xEnviar);
    
               }
                catch (Exception ElErr)
                {
                    MessageBox.Show(ElErr.Message);
                }
            }
    
        }
    }

    I could not insert the reference but I think is not capital.
    Thanks for your help. Greetings

       Chiquito

    Friday, August 4, 2017 4:39 PM

All replies

  • If this is a 3rd party Web service or not, then why can't you contact them for support?

    Anyway, you should post to the Web service forum.

    https://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services

    Friday, August 4, 2017 5:20 PM