Tech Off Thread

2 posts

WCF Contract first

Back to Forum: Tech Off
  • User profile image
    NMarker

    Hello I am new to WCF development.

     Please suggest the correct approach.

    1. We have been provided an WSDL file by customer.
    2. We are required to implement the WSDL contract and expose the service for the customer.
    3. Customer is requesting the end points from us.
    4. We need to implement using .NET

     Questions

    1. Would this be an WCF service? Any other choice?
    2. How to implement the contract on our side?
    3. How to add the data passed via the contract in our DB?

     

    Would appreciate is anyone who has done this to answer the above questions.

  • User profile image
    myefforts2

    WCF can do this and is probably the best choice given your requirements.

    See http://stackoverflow.com/questions/950150/how-to-use-a-wsdl-file-to-create-a-wcf-service-not-make-a-call for how to generate C# classes from the WSDL you have. That should give you a contract interface. To 'implement the contract' you create a service class implementing the generated interface and host that as a service.

    You'll likely need to use BasicHttpBinding as a binding type.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.