Ver Mensaje Individual
  #2  
Antiguo 20-10-2007
JuanErasmo JuanErasmo is offline
Miembro
 
Registrado: ago 2005
Posts: 544
Reputación: 19
JuanErasmo Va por buen camino
en este tema,,,,,,,,

Miren aqui esta la solucion amigos.

Gracias.

En el WebService esto:
Código:
 
[WebMethod(Description="Servicio de prueba 2")]
public string Mensajito(string param1,string param2,out string [] H )
{
H = new string[3]; //{"s","ss","sss"};
H[0] = "ws";
H[1] = "ws1";
H[2] = "ws2";
// intente asi, pero no// return String.Format("{0} {1} {2}", H[0], H[1], H[2]);
return null;
}
y en la aplicacion cliente, el consumidor del web service, esto:
Código:
 
 
private void button3_Click(object sender, EventArgs e)
{
localhostPut.Service Str = new PruebaWS.localhostPut.Service();
string[] arreglo = new string[3];


Str.Mensajito("D", "D", out arreglo);

label2.Text = arreglo[2];
}
si alguien lo necesita!
Gracias!
Responder Con Cita