Objects Passing objects to Webservices
<p>C# ASP.NET</p>

<p>Hi
If you create an object with say 8 properties, if you then instanciated the object do you have to populate and use all properties before you can pass it to a webservices.</p>

<p>I have a program that that needs to collect report parameters from a user then store them in a database table so they can be called again later from a service.  I have 11 reports and they all use different parameters.  So my question is can I create a report parameter object that has 8 properties and only populate 5 of them leaving 3 properties empty for one report and then say populate 4 for another report and leave 4 empty or should I create an object for each set of report paranmeters?  Once I have that object can I then pass it to a webservice that persists the parameter data to the database with properties missing?</p>

<p>Happy to answer questions about this as I appreciate it is not that clear!  </p>

<p>Cheers</p>
