I have a need to pass a custom object to a remote web service. I have read that it may be necessary to implement ISerializable, but I\'ve done that and I\'m encountering difficu
The objects you provide as arguments as part of the service request must be marked with [Serializable] and based on some of the answers posted before mine you also need to make sure your custom object does not contain any parameters in the constructor.
Also keep in mind any logic you have inside your class will not get created in the proxy class that gets created on the client side. All you will see on the client side is a default constructor and properties. So if you add methods to your custom objects keep in mind that the client will not see them or be able to use them.
Same thing goes for any logic you might put into any of the properties.
Example
[Serializable]
public class Customer
{
public int Id { get; set; }
public string Name { get; set; }
}