(Yes, I'm disgruntled, irritated and argumentative, OK I'm venting a bit here at the top, but my actual question is objective, I promise <g>
)
Venting
I've just spent the last 2 weeks touring many aspect of WCF and now ASP.NET web service. This was done via. the Get Error/Google Error/Fix Error (maybe)/Repeat cycle. After hours of that (mostly in the configuration section) I'm somewhat surprised that anyone even bothers using them. Enough Venting...
The Question
I need to have a client app call code on a web server over the internet. I want the Server side code to look something like this
interface I
{
string GetFoo(int i);
SomeType GetBar(OtherType ot);
}
[HostAsService<I>]
class Foo : I
{
....
}
and the client side to look something like this this
I i = new ServiceProxy<I>(new Uri("http://my.domain.com/some/path"));
the important bit is that the configuration for this is minimal and direct: no including the service name in 12 different places, no wizards generating code and web.config entries, no hidden URLs that I need to change when I switch from testing on my local machine to testing on out server. I just want it simple
Is there anything like that?
Note: I'd actually prefer a simpler, less flexible, fewer things to break model than a more complex, more flexible model. As long as I can stuff any serializable type down the pipe that's all the flexibility I need
note2: I'm not asking how to use WCF or ASMX services (if either can be made to work like I want/need, that's good, but I don't really care what's used at this point as long as it works)