Do you know of a good way to pass objects or structs from a winform app to .asmx web service? It seems like this should be really easy in .NET but I'm not seeing it.
Rick Strahl had the same question in 2004 but it looks like what I'm looking for maybe doesn't exist:
http://www.west-wind.com/weblog/posts/2004/Apr/18/Net-Web-Services-and-passing-objects-and-Data
Basically, I just have a simple struct with 10 string or int members. I want to send it to an asmx web service and keep the strong-typing intact. That's it.
I've tried defining the struct on the client and the service. Then I created a DLL with the struct definition in it and included that in both my web service and client. Still had issues b/c the namespaces were different.
I see in posts like the following that it seems people are doing what I'm describing. I just don't know how:
Passing Objects Via Web Service
I could convert the service to WCF if that makes this any easier -- will probably convert it in a few months anyway.