|
-
Nov 26th, 2009, 12:50 AM
#1
Thread Starter
Member
Consuming WCF service for development in advance?
Hi
I was asked this question - How do you start consuming a WCF service in advance (read before being implemented/deployed)?
I couldn't think of a very convincing answer and said probably we can generate a proxy and provide some stubs ..etc... you got the idea. Even I was not convinced with myself. The question do make sense as presentation and services are different tiers. One should not be waiting on other in development at least.
Anyways, so I have been thinking since then and need some pointers on this from experts out there. Any suggestions / aproaches?.
Thanks
AJ
-
Nov 26th, 2009, 02:07 AM
#2
Re: Consuming WCF service for development in advance?
Hey,
I haven't started playing with WCF yet, but from what I understand, your approach does seem valid. Basically, stub out the contract that will be exposed by the WCF Endpoint, and from there, you can develop against it.
There is more information on this here:
http://aspalliance.com/1154_Start_De...n_Foundation.2
Hope that helps!!
Gary
-
Nov 26th, 2009, 02:37 AM
#3
Re: Consuming WCF service for development in advance?
OK, let's mince words here. Before deployment I understand, but did you actually mean to say before implementation as well? Because if you then create a stub for this non-existent WCF service, you're essentially dictating the contract. That's for the developer to decide. Hey, I'm all for contract-first design, but that's going a bit too far 
To do it before it's been deployed, I'd generate a proxy from the WSDL and use it. Even if it isn't fully available, at least a contract can be available for us to use.
To do it before it's been implemented, I won't bother with a proxy or any sort of a service reference, just create a DummyMethod() that returns hardcoded values until the service is ready.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|