Just find some best practice reviews 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 your preferred option? It seems that the conflict of design patterns - 1 - is the completion of parameters in the class, and the other is the flexibility and openness of the web service interface.
Second question: if we choose Option1 - what do you call it using the URL?
thanks
source
share