WCF: Stop VS2008 generating message contracts

Discussion in 'ASP .Net Web Services' started by James Holak, Jan 14, 2008.

  1. James Holak

    James Holak Guest

    Suddenly, Visual Studio 2008 decided to start generating the Message
    Contracts for my WCF Services. I was using a shared Contract Assembly for
    the data contracts and request/response messages. I had a proper service
    reference in my Windows Forms application that communicated using the shared
    assembly objects with the web site hosted in IIS 7 on Vista.

    I changed the Security Mode from "Transport" to
    "TransportWithMessageCredential" because I want my services protect by SSL
    and my Membership/Roles provider. When I told VS to update the service
    reference, it changed the calls from using the shared assembly into the
    automatically generated message contracts (Request/Response) generated by VS
    within the Reference.cs file in the given service reference directory.

    Can anyone point me in the right direction to stop visual studio from using
    the generated classes and go back to using the shared project's classes? I
    chose to enable "Always generate message contracts" on a previous service to
    see what it did, but I could never undo that action. Then I decided to
    create a new service, a new client reference and that would let me use the
    shared objects. However, now I'm back to the beginning with it generating
    unwanted objects. I can change the file by hand and it might work, but I
    don't want to have to do that each time I change the surface of the service.

    Thanks.
    James Holak, Jan 14, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. infoTEAM, inc.
    Replies:
    2
    Views:
    559
  2. Roel Korsten

    Example of end user agreements/contracts

    Roel Korsten, Feb 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    359
    Roel Korsten
    Feb 9, 2005
  3. Simon
    Replies:
    0
    Views:
    1,008
    Simon
    Oct 13, 2009
  4. Cindy Lee
    Replies:
    1
    Views:
    2,102
    Mr. Arnold
    Mar 19, 2010
  5. Jerry Nettleton

    how to create VS2008 project and/or deploy WCF service on localhos

    Jerry Nettleton, Dec 9, 2008, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    825
    Jerry Nettleton
    Dec 9, 2008
Loading...

Share This Page