Hello
Just looking for some feedback on best-practices regarding Web Service interface design.
I have two options:
Option 1
public string GetSomeData(SomeCriteriaClass criteria);
where SomeCriteriaClass is defined as:
public int ID;
public string Name;
public string Property2; etc.
Option 2
public string GetSomeData(int id, string name, string property2)
Which is the preferred option? It seems like a conflict of design patterns - 1 is to wrap up parameters in a class, but the other is keeping the web service interface flexible and open.
The second question is - if we choose Option1 - how do you call this via a URL?
Thanks