Results 1 to 3 of 3

Thread: Consuming WCF service for development in advance?

  1. #1

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    41

    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

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width