First, download the code you can find here. It's a very basic sample I wrote a while ago on building webservices with spring.net.
Run the sample, your service will start and you'll get a form. Close the application. So far so good.
However, consider yourself doomed from this point on . The two methods in the service will now and forever, have a parameter of type RetrieveProductsRequest or SearchProductsRequest respectively.
If you dare changing or removing them you'll get this exception:
public interface IProductService
RetrieveProductsResponse RetrieveProducts(RetrieveProductsRequest request);
SearchProductsResponse SearchProducts(SearchProductsRequest request);
"The XML element 'SearchProductsResponse' from namespace ' ' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute."
Which is odd.
Adding more parameters to the methdos and removing them is no problem at all. Even adding new methods works fine, just these original two don't want to change.
If anyone can shed some light on this....