I can not invoke class from my web reference

0

I have a project in which I am adding improvements but I have the following problem:

  • My WS is in a C # project and my desktop application in vb. which calls and consumes my ws.

  • I just created some new classes as an example "beAuditors" in my ws in the entity layer where I define parameters of the variables: properly encapsulated

    public class beAyudantes
    {
    
        private String sCodigo = " ";
        private String sNombres = " ";
        private String sApellidos = " ";.
    
    .
    
    .
    
        public String Codigo
        {
            get
            { return this.sCodigo; }
            set
            { this.sCodigo = value; }
    
        }
    

Then I update the web reference in my desktop application (after compiling and executing the ws locally) but I can not call the class beAyudantes tells me that class of my reference.vb located in the reference web is not defined.

    Dim oWS As New localhost.Service
    Dim oBeAyud As New localhost.beAyudante (aquí sale el error no encuentra beAyudante)

Who can help me find out why I can not invoke the new class I created to be able to use it in my application.

I attach images

link

link

    
asked by Pedro 24.10.2018 в 23:34
source

1 answer

-1

Validate that you use that class as a response or parameter in a WebMethod that exposes the service

If so, you can verify that the intellisense of the Visual Studio when using

var result = oWS.NombreWebMetod(...)

shows you the use of that class

If you only define it but it does not intervene as part of the service, it is not updated in the client, so it validates that not only you declare you must use it in the service

    
answered by 25.10.2018 в 01:42