>I've a webservices but when i Try consumer that webservices the next line code not execute. mi code is this:
>
>EnvioSMS.CellMessage mensaje = new logs.EnvioSMS.CellMessage();
>Resultado=mensaje.EnviaMensaje("B","3162324246",Mensaje);
>MessageBox.Show("error"); // This code not execute.
>
>if (Resultado==null)
> {
> MessageBox.Show("Fallo el Envio de mensajes");
> }
In a Web Service, MessageBox is not available. You would have to use:
Throw New System.Exception("Message")
You might want to adjust for C# syntax.