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!