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

  • Home
  • SEARCH
  • 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 7537695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:55:15+00:00 2026-05-30T06:55:15+00:00

I was recently asked to connect to a third party web service (*.asmx). I

  • 0

I was recently asked to connect to a third party web service (*.asmx). I created a new ASP.NET website, and used the wizard to create the Service reference. When I went to call the service, the code complained that it did not know which endpoint to use.

I looked in the Web.config, and sure enough, the wizard created TWO bindings, and thus two end-points. By adding either endpoint to the service call, everything works perfectly.

My question then is simply meant to help me understand why I have two bindings, and if there is some reason that I should use one over the other? Or should I remove one, and if so, which?

The bindings look totally different to me, and I am assuming that two different protocols are being used (but they are both labeled SOAP, so..). I am very “front end focused” and don’t get involved in the back end mechanics very often, which is why I am asking. I’ll post the bindings below.

    <bindings>
  <basicHttpBinding>
    <binding name="ServiceSoap" closeTimeout="00:01:00"
      openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
      allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
      maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
      useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
  </basicHttpBinding>
  <customBinding>
    <binding name="ServiceSoap12">
      <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
        messageVersion="Soap12" writeEncoding="utf-8">
        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      </textMessageEncoding>
      <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
        maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
        bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
        keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
        realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
        useDefaultWebProxy="true" />
    </binding>
  </customBinding>
</bindings>
<client>
  <endpoint address="http://someURL.asmx" binding="basicHttpBinding"
    bindingConfiguration="ServiceSoap" contract="ServiceReference.ServiceSoap"
    name="ServiceSoap" />
  <endpoint address="http://someURL.asmx" binding="customBinding"
    bindingConfiguration="ServiceSoap12" contract="ServiceReference.ServiceSoap"
    name="ServiceSoap12" />
</client>
  • 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-30T06:55:16+00:00Added an answer on May 30, 2026 at 6:55 am

    I believe the service offers both SOAP 1.1 and SOAP 1.2. You will need to specify the client configuration to use in the constructor of the service reference class:

    var client = new MyClient("ServiceSoap12");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was recently asked to create a web page using a static website generator,
I was recently asked if I knew anything about Dynamic Assemblies in .Net. The
Someone recently asked me the difference between a C++ standard operator (e.g. new,delete,sizeof) and
I recently asked a question about using Fluent NHibernate with .NET 4 - I
I recently had an interview where I was asked to connect to the companies
I recently asked a question about committing a new file but now I am
I recently asked a question about formatting JavaScript code in Vim. And I've also
I recently asked the question Is the behavior of return x++; defined? The result
I recently asked about functional programs having no side effects, and learned what this
I recently asked this question: MS SQL share identity seed amongst tables (Many people

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.