friends i am trying to pass an array to asp webservice method from my console application the error is that "The best overloaded method has some invalid arguments "
Below is console side in which function i am passing array is giving error.
int[] t = new int[6];
ServiceReference1.WebService1SoapClient client=new ServiceReference1.WebService1SoapClient();
for (int i = 0; i < 7; i++)
{
t[i] = Convert.ToInt32(Console.ReadLine());
}
client.bublesort(t); //Here is the error in passing to webservice method
On other hand my WEBSERVICE method code is that int temp = 0;
[WebMethod]
public int[] bublesort(int[] arr)
{
for (int i = 0; i < 5; i++)
{
for (int j = i + 1; j < 6; j++)
{
if (arr[i] > arr[j])
{
temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
}
}
return arr;
}