Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3961594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:59:37+00:00 2026-05-20T02:59:37+00:00

What is a good way to create a WCF service layer so that a

  • 0

What is a good way to create a WCF service layer so that a native .Net client application and other client types can talk to the service?

I know, in the future our applicaiton will need to support mobile devices.

We are passing objects into our WCF methods similar to this:

    [DataContract]
    public class User: DomainBase
        {
            [DataMember]        
            public string Username { get; set; }
            [DataMember]
            public string Password { get; set; }
            [DataMember]
            public string FirstName { get; set; }
            [DataMember]
            public string LastName { get; set; }
}  

So there may be a method in our servcie like this:

public bool Save(User item){
   ...do some work
}   

public User GetUserByUsernameAndPassword(string username, string password){
   ...do some work
}    

Now, in .Net I can use the same object library as my services, but with other clients I will not be able to. So, if I don’t want to write a bunch of differnt methods for each type of client what would be the best way to handle this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:59:38+00:00Added an answer on May 20, 2026 at 2:59 am

    I think interoperability with other clients is more dependent on the binding that the actual contracts. If the other clients and client languages that you will support can do SOAP, then sticking with the BasicHttpBinding provides the best support. For example clients using .NET 2 can still interact with a .NET 3.5 WCF server. There area also SOAP libraries for Java and other languages.

    The server can just publish the WSDL, and the clients can then generate all your contract interfaces and types automatically in whatever language from the WSDL. That handles the ‘reuse’ of your data contract types.

    If you want to venture away from SOAP, there are ways to do REST or Plain-old-XML or JSON with WCF, but it gets a lot more complicated from the server side…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a good way to create a form in VB6 that can easily
I'm preparing to create a WCF Service which our customers can use to update
I would like create a web service in ASP.Net 2.0 that will supports JSON.
What is a good way to create and read an OpenOffice spreadsheet in Perl?
Anyone who knows a good way to generate/create a barcode from a String in
I'm trying to create a good way to handle all possible collisions between two
Is there a good way to get the process name that created a file
What is a good way to perform animation using .NET? I would prefer not
Suppose I want to create a (stateless) WCF service with three methods exposed on
I have a WCF service that I consume in my code and generated as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.