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 5955981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:11:29+00:00 2026-05-22T18:11:29+00:00

There is a web service written with WCF that I’m adding as reference. Proxy

  • 0

There is a web service written with WCF that I’m adding as reference. Proxy class generator works flawlessly when I add it to as service reference but it generates a slightly different class when I add it as web reference using service.svc?WSDL. Here’s are the differences:

//service reference
public partial class TestServicesClient : ... // correct class name
{
    public int TestMethod(string serviceID, int dealID) // correct method signature
    { ... }
}

//web reference
public partial class TestServices: ... //different class name
{
    public void TestMethod(string serviceID, int dealID, bool dealIDSpecified, out int TestMethodResult, out bool TestMethodResultSpecified) // different method signature
    { ... }
}

I tried using wsdl.exe for generating web reference class, didn’t help.

What is wrong here?

  • 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-22T18:11:30+00:00Added an answer on May 22, 2026 at 6:11 pm

    Nothing is wrong here. Service Reference is the “new” way to use a WCF Service, it removes overhead such as the “Specified”-parameter, “Result”-parameter and “Result Specificed”-parameter.

    You can still use other properties/methods to check if a parameter is specified or if there is a result. But before WCF, it changed the method signature.

    You use a Service Reference and a Web Reference a bit different and that’s just the way it is.

    Here’s some additional reading:

    • Difference between web reference and service reference?
    • The Difference Between “Add Web Reference” and “Add Service Reference”

    And to quote from a reply to “What is the difference between WCF service and web service”

    WCF “web services” are part of a much
    broader spectrum of remote
    communication enabled through WCF. You
    will get a much higher degree of
    flexibility and portability doing
    things in WCF than through traditional
    ASMX because WCF is designed, from the
    ground up, to summarize all of the
    different distributed programming
    infrastructures offered by MS. An
    endpoint in WCF can be communicated
    with just as easily over SOAP/XML as
    it can over TCP/binary and to change
    this medium is simply a configuration
    file mod. In theory this reduces the
    amount of new code needed when porting
    or changing business needs, targets,
    etc.

    ASMX is older than WCF, and anything
    ASMX can do so can WCF (and more).
    Basically you can see WCF as trying to
    logically group together all the
    different ways of getting two apps to
    communicate in the world of MS; ASMX
    was just one of these many ways and so
    is now grouped under the WCF umbrella
    of capabilities.

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

Sidebar

Related Questions

Is there a public/government web service that I can call to find out what
Is there a public, free web service that generates tag clouds? I'm looking for
I have written a java axis2 1.4.1 web service and .net 3.5 WCF client
I'm talking with a web service with a generated proxy that uses System.Web.Services.Protocols.SoapHttpClientProtocol ,
Is there a web service of some sort (or any other way) to pull
Is there a straightforward way to query a web service to see which messages
Is there a way to consume a web service using JavaScript? I'm Looking for
Is there anybody who has successfully accessed a Web service from an Oracle stored
Is there an easy way to return data to web service clients in JSON
Are there any known how-tos or best practices for web service REST API versioning?

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.